From b08f4b0da98d0a2534626c01cbb0c3c3eb4713a1 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 17 Oct 2013 01:12:43 +0200 Subject: [PATCH] Test string semantics a bit more --- tests/dependencies.builder0.sh | 3 +++ tests/dependencies.nix | 6 +++--- 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"; };