diff options
Diffstat (limited to 'tests/check.sh')
-rw-r--r-- | tests/check.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/check.sh b/tests/check.sh new file mode 100644 index 000000000000..3efcef044921 --- /dev/null +++ b/tests/check.sh @@ -0,0 +1,18 @@ +source common.sh + +clearStore + +nix-build dependencies.nix --no-out-link +nix-build dependencies.nix --no-out-link --check + +nix-build check.nix -A nondeterministic --no-out-link +(! nix-build check.nix -A nondeterministic --no-out-link --check 2> $TEST_ROOT/log) +grep 'may not be deterministic' $TEST_ROOT/log + +clearStore + +nix-build dependencies.nix --no-out-link --repeat 3 + +(! nix-build check.nix -A nondeterministic --no-out-link --repeat 1 2> $TEST_ROOT/log) +grep 'differs from previous round' $TEST_ROOT/log + |