summary refs log tree commit diff
path: root/lib/tests/check-eval.nix
blob: 8bd7b605a39bdad6d8ad632591a571b31ae30b95 (plain) (blame)
1
2
3
4
5
6
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)