* Fix the tests.

This commit is contained in:
Eelco Dolstra 2007-08-13 13:15:02 +00:00
parent 3757ee589f
commit 550ba9ebb4
12 changed files with 67 additions and 63 deletions

View file

@ -1,10 +1,19 @@
#! /bin/sh -ex
echo $*
case $* in
*)
mkdir $1
echo $3 $4 > $1/hello
;;
esac
#! /bin/sh -e
echo substituter args: $* >&2
if test $1 = "--query-paths"; then
cat $TEST_ROOT/sub-paths
elif test $1 = "--query-info"; then
shift
for i in in $@; do
echo $i
echo "" # deriver
echo 0 # nr of refs
done
elif test $1 = "--substitute"; then
mkdir $2
echo "Hallo Wereld" > $2/hello
else
echo "unknown substituter operation"
exit 1
fi