liminix

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

test.nix (476B)


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