test.nix 583 Bytes
Newer Older
1
{ pkgs ? import <nixpkgs> {},
2 3 4 5
  testName ? "base",
  nrm-override ? null,
  containers-override ? null,
  libnrm-override ? null
6 7 8
}:
let
  testEnv = spec: (import spec.argotest.src {
9 10 11
        nrm-src        = if (isNull nrm-override)        then spec.nrm.src        else nrm-override;
        libnrm-src     = if (isNull libnrm-override)     then spec.libnrm.src     else libnrm-override;
        containers-src = if (isNull containers-override) then spec.containers.src else containers-override;
12
      });
13 14
  allTests = import ./tests/default.nix {};
in testEnv allTests."${testName}"