mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-12 21:21:49 +00:00
Beginning of a proper test suite, using qemu. Test just runs docker for now, will add further integration tests. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
26 lines
315 B
Plaintext
Executable File
26 lines
315 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
depend()
|
|
{
|
|
need docker
|
|
}
|
|
|
|
start()
|
|
{
|
|
cat /proc/cmdline | grep -q 'mobytest' || exit 0
|
|
|
|
ebegin "Running tests"
|
|
|
|
if mobytest
|
|
then
|
|
printf "Moby test suite PASSED\n"
|
|
else
|
|
printf "Moby test suite FAILED\n"
|
|
fi
|
|
|
|
eend "Tests completed"
|
|
|
|
# now terminate with extreme prejudice
|
|
poweroff -f
|
|
}
|