mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-16 07:09:57 +00:00
tests: Add a test for the binfmt package
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
12
test/cases/040_packages/002_binfmt/check.sh
Executable file
12
test/cases/040_packages/002_binfmt/check.sh
Executable 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
|
Reference in New Issue
Block a user