Files
linuxkit/alpine/packages/test/etc/init.d/test
Justin Cormack ede5a0ea6f Initial test hooks
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>
2016-07-08 15:44:04 +01:00

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
}