aboutsummaryrefslogtreecommitdiff
path: root/tests/build-hook.hook.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/build-hook.hook.sh')
-rw-r--r--tests/build-hook.hook.sh16
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/build-hook.hook.sh b/tests/build-hook.hook.sh
index 7176315d9..bbf423017 100644
--- a/tests/build-hook.hook.sh
+++ b/tests/build-hook.hook.sh
@@ -1,17 +1,21 @@
+#! /bin/sh
+
set -x
-drv=$1
+drv=$4
-echo "HOOK for $drv"
+echo "HOOK for $drv" >&2
outPath=$(sed 's/Derive(\[\"\([^\"]*\)\".*/\1/' $drv)
-echo "output path is $outPath"
+echo "output path is $outPath" >&2
if $(echo $outPath | grep -q input-1); then
+ echo "accept" >&3
+ read x <&4
+ echo "got $x"
mkdir $outPath
echo "BAR" > $outPath/foo
- exit 100
+else
+ echo "decline" >&3
fi
-
-exit 101 \ No newline at end of file