add tests for scm inputs

This commit is contained in:
Rob Vermaas
2011-03-17 08:48:27 +00:00
parent 98c8a86886
commit 369b2ef0aa
10 changed files with 100 additions and 6 deletions

View File

@ -1,4 +1,3 @@
{ input }:
{
empty_dir =
derivation {

View File

@ -0,0 +1,9 @@
{ src }:
{
copy =
derivation {
name = "bzr-checkout-input";
system = builtins.currentSystem;
builder = ./scm-builder.sh;
};
}

9
tests/jobs/bzr-input.nix Normal file
View File

@ -0,0 +1,9 @@
{ src }:
{
copy =
derivation {
name = "bzr-input";
system = builtins.currentSystem;
builder = ./scm-builder.sh;
};
}

9
tests/jobs/git-input.nix Normal file
View File

@ -0,0 +1,9 @@
{ src }:
{
copy =
derivation {
name = "git-input";
system = builtins.currentSystem;
builder = ./scm-builder.sh;
};
}

9
tests/jobs/hg-input.nix Normal file
View File

@ -0,0 +1,9 @@
{ src }:
{
copy =
derivation {
name = "hg-input";
system = builtins.currentSystem;
builder = ./scm-builder.sh;
};
}

View File

@ -0,0 +1,2 @@
mkdir $out
cp -v $src/* $out/

View File

@ -0,0 +1,9 @@
{ src }:
{
copy =
derivation {
name = "bzr-checkout-input";
system = builtins.currentSystem;
builder = ./scm-builder.sh;
};
}

9
tests/jobs/svn-input.nix Normal file
View File

@ -0,0 +1,9 @@
{ src }:
{
copy =
derivation {
name = "svn-input";
system = builtins.currentSystem;
builder = ./scm-builder.sh;
};
}