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:
Justin Cormack
2016-07-08 15:44:04 +01:00
parent b3cfed22f4
commit 44d68b268a
6 changed files with 45 additions and 1 deletions

View 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
View File

@@ -0,0 +1,5 @@
#!/bin/sh
set -e
docker ps