diff options
Diffstat (limited to 'tests/functional/placeholders.sh')
-rw-r--r-- | tests/functional/placeholders.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/functional/placeholders.sh b/tests/functional/placeholders.sh new file mode 100644 index 000000000..cd1bb7bc2 --- /dev/null +++ b/tests/functional/placeholders.sh @@ -0,0 +1,20 @@ +source common.sh + +clearStore + +nix-build --no-out-link -E ' + with import ./config.nix; + + mkDerivation { + name = "placeholders"; + outputs = [ "out" "bin" "dev" ]; + buildCommand = " + echo foo1 > $out + echo foo2 > $bin + echo foo3 > $dev + [[ $(cat ${placeholder "out"}) = foo1 ]] + [[ $(cat ${placeholder "bin"}) = foo2 ]] + [[ $(cat ${placeholder "dev"}) = foo3 ]] + "; + } +' |