mirror of
https://github.com/NixOS/nix
synced 2025-07-12 14:55:09 +02:00
* Add a test for importing derivations.
This commit is contained in:
parent
330df4b4db
commit
4c9fdd2cd6
3 changed files with 37 additions and 1 deletions
12
tests/import-derivation.sh
Normal file
12
tests/import-derivation.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
source common.sh
|
||||
|
||||
clearStore
|
||||
|
||||
if nix-instantiate --readonly-mode ./import-derivation.nix; then
|
||||
echo "read-only evaluation of an imported derivation unexpectedly failed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
outPath=$(nix-build ./import-derivation.nix)
|
||||
|
||||
[ "$(cat $outPath)" = FOO579 ]
|
Loading…
Add table
Add a link
Reference in a new issue