diff options
author | Graham Christensen <graham@grahamc.com> | 2018-09-16 18:38:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-16 18:38:47 -0400 |
commit | 4c7f0714c9a1ee7d2ace50e36e71ef50a80f1a6f (patch) | |
tree | dfa19093548b1e3894eb994f767fa86f9bae48fb /lib/tests | |
parent | 8ceaf29f3b97399121c069e3a9699ed7d8be3618 (diff) | |
parent | f1eb2f35a6c06c22d5299eb39ab9ce5b88008605 (diff) |
Merge pull request #36287 from shlevy/lib-tests-default
lib/tests: Add check-eval.nix to run simple tests.
Diffstat (limited to 'lib/tests')
-rw-r--r-- | lib/tests/check-eval.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/tests/check-eval.nix b/lib/tests/check-eval.nix new file mode 100644 index 000000000000..8bd7b605a39b --- /dev/null +++ b/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) |