mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
Test nix build --json
return output paths in floating CA case
Adding a test to ensure there is no regression. The tests that are split out of `tests/build.sh` are ones that don't yet work with CA derivation. I have not yet evaluated whether they should or not. This behavior, reported missing in issue #4661, already got fixed in PR #4818, but didn't get a test case then.
This commit is contained in:
parent
c184566046
commit
55016b6fcd
6 changed files with 73 additions and 61 deletions
9
tests/output-normalization.sh
Normal file
9
tests/output-normalization.sh
Normal file
|
@ -0,0 +1,9 @@
|
|||
source common.sh
|
||||
|
||||
testNormalization () {
|
||||
clearStore
|
||||
outPath=$(nix-build ./simple.nix --no-out-link)
|
||||
test "$(stat -c %Y $outPath)" -eq 1
|
||||
}
|
||||
|
||||
testNormalization
|
Loading…
Add table
Add a link
Reference in a new issue