test.nix (500B)
1 let 2 img = 3 (import <liminix> { 4 device = import <liminix/devices/qemu-armv7l>; 5 liminix-config = ./configuration.nix; 6 }).outputs.default; 7 pkgs = import <nixpkgs> { overlays = [ (import ../../overlay.nix <nixpkgs>) ]; }; 8 in 9 pkgs.runCommand "check" 10 { 11 nativeBuildInputs = with pkgs; [ 12 expect 13 socat 14 ]; 15 } 16 '' 17 . ${../test-helpers.sh} 18 19 mkdir vm 20 ${img}/run.sh --background ./vm 21 expect ${./wait-for-wlan.expect} |tee output && mv output $out 22 ''