diff --git a/tests/jobs/build-product-simple.sh b/tests/jobs/build-product-simple.sh new file mode 100755 index 00000000..9cb0f784 --- /dev/null +++ b/tests/jobs/build-product-simple.sh @@ -0,0 +1,5 @@ +#! /bin/sh + +mkdir -p $out/nix-support +echo "Hello" > $out/text.txt +echo "doc none $out/text.txt" > $out/nix-support/hydra-build-products diff --git a/tests/jobs/build-product-with-spaces.sh b/tests/jobs/build-product-with-spaces.sh new file mode 100755 index 00000000..1eb9482e --- /dev/null +++ b/tests/jobs/build-product-with-spaces.sh @@ -0,0 +1,5 @@ +#! /bin/sh + +mkdir -p $out/nix-support +echo "Hello" > "$out/some text.txt" +echo "doc none \"$out/some text.txt\"" > $out/nix-support/hydra-build-products diff --git a/tests/jobs/build-products.nix b/tests/jobs/build-products.nix new file mode 100644 index 00000000..43c52db3 --- /dev/null +++ b/tests/jobs/build-products.nix @@ -0,0 +1,14 @@ +with import ./config.nix; +{ + simple = + mkDerivation { + name = "build-product-simple"; + builder = ./build-product-simple.sh; + }; + + with_spaces = + mkDerivation { + name = "build-product-with-spaces"; + builder = ./build-product-with-spaces.sh; + }; +}