add tests for scm inputs
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
{ input }:
|
||||
{
|
||||
empty_dir =
|
||||
derivation {
|
||||
|
9
tests/jobs/bzr-checkout-input.nix
Normal file
9
tests/jobs/bzr-checkout-input.nix
Normal 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
9
tests/jobs/bzr-input.nix
Normal 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
9
tests/jobs/git-input.nix
Normal 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
9
tests/jobs/hg-input.nix
Normal file
@ -0,0 +1,9 @@
|
||||
{ src }:
|
||||
{
|
||||
copy =
|
||||
derivation {
|
||||
name = "hg-input";
|
||||
system = builtins.currentSystem;
|
||||
builder = ./scm-builder.sh;
|
||||
};
|
||||
}
|
2
tests/jobs/scm-builder.sh
Normal file
2
tests/jobs/scm-builder.sh
Normal file
@ -0,0 +1,2 @@
|
||||
mkdir $out
|
||||
cp -v $src/* $out/
|
9
tests/jobs/svn-checkout-input.nix
Normal file
9
tests/jobs/svn-checkout-input.nix
Normal 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
9
tests/jobs/svn-input.nix
Normal file
@ -0,0 +1,9 @@
|
||||
{ src }:
|
||||
{
|
||||
copy =
|
||||
derivation {
|
||||
name = "svn-input";
|
||||
system = builtins.currentSystem;
|
||||
builder = ./scm-builder.sh;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user