From c4ae499f3d12b0b25fb01b918b64bae945ccfcea Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 10 Mar 2010 22:51:53 +0000 Subject: [PATCH] svn path=/nixos/trunk/; revision=20545 --- lib/testing.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/testing.nix b/lib/testing.nix index f9e275e5c8d..5e6b20e7514 100644 --- a/lib/testing.nix +++ b/lib/testing.nix @@ -83,6 +83,8 @@ rec { echo "report coverage $out/coverage" >> $out/nix-support/hydra-build-products ''; # */ + + # !!! Rename these functions to something more sensible. call = f: f { inherit pkgs nixpkgs system; }; apply = testFun: complete (call testFun); @@ -96,5 +98,7 @@ rec { test = runTests vms t.testScript; report = makeReport test; }; - + + simpleTest = as: (apply ({ ... }: as)).test; + }