Fix run-in-machine testcase + add it to the tests
This commit is contained in:
parent
afdae66335
commit
1c58fbe4a9
@ -241,7 +241,7 @@ in {
|
||||
let
|
||||
testsFor = system:
|
||||
mapAttrsRecursiveCond (x: !x ? test) (n: v: listToAttrs [(nameValuePair system v.test)])
|
||||
(import ./tests { inherit system; });
|
||||
(import ./tests { inherit nixpkgs system; });
|
||||
in fold recursiveUpdate {} (map testsFor systems);
|
||||
|
||||
}
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ system ? builtins.currentSystem, minimal ? false }:
|
||||
{ nixpkgs ? <nixpkgs>
|
||||
, system ? builtins.currentSystem
|
||||
, minimal ? false
|
||||
}:
|
||||
|
||||
with import ../lib/testing.nix { inherit system minimal; };
|
||||
|
||||
@ -30,4 +33,5 @@ with import ../lib/testing.nix { inherit system minimal; };
|
||||
tomcat = makeTest (import ./tomcat.nix);
|
||||
trac = makeTest (import ./trac.nix);
|
||||
xfce = makeTest (import ./xfce.nix);
|
||||
run-in-machine = import ./run-in-machine.nix { inherit nixpkgs system; };
|
||||
}
|
||||
|
@ -5,6 +5,6 @@
|
||||
with import ../lib/testing.nix { inherit system; };
|
||||
|
||||
runInMachine {
|
||||
drv = (import nixpkgs { }).aterm;
|
||||
drv = (import nixpkgs { inherit system; }).aterm;
|
||||
machine = { config, pkgs, ... }: { services.sshd.enable = true; };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user