Added build product test files
This commit is contained in:
parent
03189bf62b
commit
3884725bfd
5
tests/jobs/build-product-simple.sh
Executable file
5
tests/jobs/build-product-simple.sh
Executable file
|
@ -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
|
5
tests/jobs/build-product-with-spaces.sh
Executable file
5
tests/jobs/build-product-with-spaces.sh
Executable file
|
@ -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
|
14
tests/jobs/build-products.nix
Normal file
14
tests/jobs/build-products.nix
Normal file
|
@ -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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue