mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 23:36:16 +02:00
24 lines
494 B
Bash
24 lines
494 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
source common/test-root.sh
|
||
|
source common/paths.sh
|
||
|
|
||
|
set -o pipefail
|
||
|
|
||
|
source characterisation/framework.sh
|
||
|
|
||
|
badDiff=0
|
||
|
badExitCode=0
|
||
|
|
||
|
store="$TEST_ROOT/store"
|
||
|
|
||
|
for nixFile in derivation/*.nix; do
|
||
|
drvPath=$(nix-instantiate --store "$store" --pure-eval --expr "$(< "$nixFile")")
|
||
|
testName=$(basename "$nixFile" .nix)
|
||
|
got="${store}${drvPath}"
|
||
|
expected="derivation/$testName.drv"
|
||
|
diffAndAcceptInner "$testName" "$got" "$expected"
|
||
|
done
|
||
|
|
||
|
characterisationTestExit
|