From 3884725bfd28c50792ecf542a97b95c1430c861a Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Wed, 20 Mar 2013 18:08:25 +0100 Subject: [PATCH] Added build product test files --- tests/jobs/build-product-simple.sh | 5 +++++ tests/jobs/build-product-with-spaces.sh | 5 +++++ tests/jobs/build-products.nix | 14 ++++++++++++++ 3 files changed, 24 insertions(+) create mode 100755 tests/jobs/build-product-simple.sh create mode 100755 tests/jobs/build-product-with-spaces.sh create mode 100644 tests/jobs/build-products.nix 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; + }; +}