aboutsummaryrefslogtreecommitdiff
path: root/tests/aux
diff options
context:
space:
mode:
Diffstat (limited to 'tests/aux')
-rwxr-xr-xtests/aux/in.test22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/aux/in.test b/tests/aux/in.test
new file mode 100755
index 0000000..4a98763
--- /dev/null
+++ b/tests/aux/in.test
@@ -0,0 +1,22 @@
1#! /bin/sh
2
3FILE=${1:?}
4IFS='
5'
6while read COMMAND ARG
7do
8 echo $COMMAND $ARG >> $FILE
9 case $COMMAND in
10 stop) if [ -n "$STOPCMD" ]; then
11 echo "STOP"
12 $STOPCMD
13 else
14 echo "OK $COMMAND $ARG"
15 fi
16 ;;
17 quit) exit $ARG;;
18 *) echo "OK $COMMAND $ARG"
19 ;;
20 esac
21done
22

Return to:

Send suggestions and report system problems to the System administrator.