aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/dependencies.builder0.sh3
-rw-r--r--tests/dependencies.nix6
2 files changed, 6 insertions, 3 deletions
diff --git a/tests/dependencies.builder0.sh b/tests/dependencies.builder0.sh
index ea4116d90..b02108fe6 100644
--- a/tests/dependencies.builder0.sh
+++ b/tests/dependencies.builder0.sh
@@ -1,3 +1,6 @@
+[ "${input1: -2}" = /. ]
+[ "${input2: -2}" = /. ]
+
mkdir $out
echo $(cat $input1/foo)$(cat $input2/bar) > $out/foobar
diff --git a/tests/dependencies.nix b/tests/dependencies.nix
index 6f6a7e46f..687237add 100644
--- a/tests/dependencies.nix
+++ b/tests/dependencies.nix
@@ -9,14 +9,14 @@ let {
input2 = mkDerivation {
name = "dependencies-input-2";
- builder = ./dependencies.builder2.sh;
+ builder = "${./dependencies.builder2.sh}";
};
body = mkDerivation {
name = "dependencies";
- builder = ./dependencies.builder0.sh + "/FOOBAR/../.";
+ builder = ./dependencies.builder0.sh + "/FOOBAR/../.";
input1 = input1 + "/.";
- inherit input2;
+ input2 = "${input2}/.";
meta.description = "Random test package";
};