liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

run.sh (445B)


      1 set -e
      2 NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1 nix-build '<liminix>' -I liminix-config=../smoke/configuration.nix --arg device "import <liminix/devices/$DEVICE>" -A outputs.kernel -o vmlinux $*
      3 
      4 TESTS=$(cat <<"EOF"
      5 
      6 trap 'echo "command $(eval echo $BASH_COMMAND) failed with exit code $?"; exit 1' ERR
      7 test -f vmlinux
      8 file -L vmlinux | grep ' ELF 32-bit MSB executable, MIPS'
      9 EOF
     10      )
     11 
     12 
     13 nix-shell -p s6-rc -p squashfsTools --run "$TESTS" || exit 1