tests: Add a test for the binfmt package

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
Rolf Neugebauer
2017-05-28 11:44:29 +01:00
parent 9efac10874
commit 885e6a7f0a
3 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#!/bin/sh
function failed {
printf "binfmt test suite FAILED\n" >&1
exit 1
}
[ -e /binfmt_misc/qemu-aarch64 ] || failed
[ -e /binfmt_misc/qemu-arm ] || failed
[ -e /binfmt_misc/qemu-ppc64le ] || failed
printf "binfmt test suite PASSED\n" >&1