aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/lib/tests/check-eval.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/lib/tests/check-eval.nix')
-rw-r--r--nixpkgs/lib/tests/check-eval.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixpkgs/lib/tests/check-eval.nix b/nixpkgs/lib/tests/check-eval.nix
new file mode 100644
index 00000000000..8bd7b605a39
--- /dev/null
+++ b/nixpkgs/lib/tests/check-eval.nix
@@ -0,0 +1,7 @@
+# Throws an error if any of our lib tests fail.
+
+let tests = [ "misc" "systems" ];
+ all = builtins.concatLists (map (f: import (./. + "/${f}.nix")) tests);
+in if all == []
+ then null
+ else throw (builtins.toJSON all)