Files
linuxkit/alpine/packages/test/etc/init.d/test
Justin Cormack f3e3a4029b Containerize test suite
- run test suite under containerd
- in future this should be converted to Go not shell see #860
- test suite is now in its own initrd, can be run on any platform not just qemu

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-12-09 17:13:16 -08:00

26 lines
354 B
Plaintext
Executable File

#!/sbin/openrc-run
depend()
{
need docker containerd
}
start()
{
[ -d /test ] || exit 0
ebegin "Running tests"
if containerd-ctr containers start --no-pivot --attach test /test
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
}