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