mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-12 17:51:34 +00:00
- 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>
26 lines
354 B
Plaintext
Executable File
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
|
|
}
|