2022-09-20 19:54:27 +02:00
|
|
|
set -e
|
2022-09-23 18:21:43 +02:00
|
|
|
NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1 nix-build '<liminix>' -I liminix-config=../smoke/configuration.nix --arg device "import <liminix/devices/$DEVICE.nix>" -A outputs.kernel.vmlinux -o vmlinux $*
|
2022-09-20 19:54:27 +02:00
|
|
|
|
|
|
|
TESTS=$(cat <<"EOF"
|
|
|
|
|
|
|
|
trap 'echo "command $(eval echo $BASH_COMMAND) failed with exit code $?"; exit 1' ERR
|
|
|
|
test -f vmlinux
|
|
|
|
file -L vmlinux | grep ' ELF 32-bit MSB executable, MIPS'
|
|
|
|
EOF
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
nix-shell -p s6-rc -p squashfsTools --run "$TESTS" || exit 1
|