mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-05-05 17:56:48 +00:00
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>
This commit is contained in:
25
alpine/packages/test/etc/init.d/test
Executable file
25
alpine/packages/test/etc/init.d/test
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/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
|
||||
}
|
||||
5
alpine/packages/test/mobytest
Executable file
5
alpine/packages/test/mobytest
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
docker ps
|
||||
Reference in New Issue
Block a user