liminix

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

test.nix (416B)


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