lib/tests: Add check-eval.nix to run simple tests.
This can be used by evaluation-only tools to validate tests are stillworking.
Shea Levy 7 years ago f1eb2f35 2069a2a0
··· 1 1 + # Throws an error if any of our lib tests fail. 2 2 + 3 3 + let tests = [ "misc" "systems" ]; 4 4 + all = builtins.concatLists (map (f: import (./. + "/${f}.nix")) tests); 5 5 + in if all == [] 6 6 + then null 7 7 + else throw (builtins.toJSON all)