forked from lix-project/lix
tests: grep for string in nix log for remote-builds
This commit is contained in:
parent
6a8f1b548f
commit
697d1dac01
|
@ -17,7 +17,7 @@ let
|
||||||
input1 = mkDerivation {
|
input1 = mkDerivation {
|
||||||
shell = busybox;
|
shell = busybox;
|
||||||
name = "build-remote-input-1";
|
name = "build-remote-input-1";
|
||||||
buildCommand = "echo hi; echo FOO > $out";
|
buildCommand = "echo hi-input1; echo FOO > $out";
|
||||||
requiredSystemFeatures = ["foo"];
|
requiredSystemFeatures = ["foo"];
|
||||||
outputHash = "sha256-FePFYIlMuycIXPZbWi7LGEiMmZSX9FMbaQenWBzm1Sc=";
|
outputHash = "sha256-FePFYIlMuycIXPZbWi7LGEiMmZSX9FMbaQenWBzm1Sc=";
|
||||||
};
|
};
|
||||||
|
@ -34,7 +34,7 @@ let
|
||||||
shell = busybox;
|
shell = busybox;
|
||||||
name = "build-remote-input-3";
|
name = "build-remote-input-3";
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
echo hi
|
echo hi-input3
|
||||||
read x < ${input2}
|
read x < ${input2}
|
||||||
echo $x BAZ > $out
|
echo $x BAZ > $out
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -15,7 +15,7 @@ let
|
||||||
input1 = mkDerivation {
|
input1 = mkDerivation {
|
||||||
shell = busybox;
|
shell = busybox;
|
||||||
name = "build-remote-input-1";
|
name = "build-remote-input-1";
|
||||||
buildCommand = "echo hi; echo FOO > $out";
|
buildCommand = "echo hi-input1; echo FOO > $out";
|
||||||
requiredSystemFeatures = ["foo"];
|
requiredSystemFeatures = ["foo"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ let
|
||||||
shell = busybox;
|
shell = busybox;
|
||||||
name = "build-remote-input-3";
|
name = "build-remote-input-3";
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
echo hi
|
echo hi-input3
|
||||||
read x < ${input2}
|
read x < ${input2}
|
||||||
echo $x BAZ > $out
|
echo $x BAZ > $out
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -57,8 +57,7 @@ nix path-info --store $TEST_ROOT/machine3 --all \
|
||||||
|
|
||||||
if [[ -z "$CONTENT_ADDRESSED" ]]; then
|
if [[ -z "$CONTENT_ADDRESSED" ]]; then
|
||||||
for i in input1 input3; do
|
for i in input1 input3; do
|
||||||
drv="$(nix-instantiate $file -A passthru.$i --store $TEST_ROOT/machine0 --arg busybox $busybox)"
|
nix log --store $TEST_ROOT/machine0 --file "$file" --arg busybox $busybox passthru."$i" | grep hi-$i
|
||||||
nix log --store $TEST_ROOT/machine0 "$drv"
|
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue