1{ system ? builtins.currentSystem,
2 config ? {},
3 pkgs ? import ../.. { inherit system config; }
4}:
5
6with import ../lib/testing-python.nix { inherit system pkgs; };
7
8let
9 output = runInMachine {
10 drv = pkgs.hello;
11 machine = { ... }: { /* services.sshd.enable = true; */ };
12 };
13
14 test = pkgs.runCommand "verify-output" { inherit output; } ''
15 if [ ! -e "$output/bin/hello" ]; then
16 echo "Derivation built using runInMachine produced incorrect output:" >&2
17 ls -laR "$output" >&2
18 exit 1
19 fi
20 "$output/bin/hello" > "$out"
21 '';
22
23in test // { inherit test; } # To emulate behaviour of makeTest