aboutsummaryrefslogtreecommitdiff
path: root/tests/aux/in.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/aux/in.test')
-rwxr-xr-xtests/aux/in.test19
1 files changed, 13 insertions, 6 deletions
diff --git a/tests/aux/in.test b/tests/aux/in.test
index 4a98763..1fae034 100755
--- a/tests/aux/in.test
+++ b/tests/aux/in.test
@@ -3,16 +3,23 @@
3FILE=${1:?} 3FILE=${1:?}
4IFS=' 4IFS='
5' 5'
6: ${PIESCTL:=piesctl}
7PIESCTL="$PIESCTL --no-netrc${PIES_CTLSOCK:+ --url=}$PIES_CTLSOCK"
6while read COMMAND ARG 8while read COMMAND ARG
7do 9do
8 echo $COMMAND $ARG >> $FILE 10 echo $COMMAND $ARG >> $FILE
9 case $COMMAND in 11 case $COMMAND in
10 stop) if [ -n "$STOPCMD" ]; then 12 stop) echo "OK shutting down"
11 echo "STOP" 13 $PIESCTL shutdown
12 $STOPCMD 14 ;;
13 else 15 enable)
14 echo "OK $COMMAND $ARG" 16 $PIESCTL start component ${ARG:?component name not supplied}
15 fi 17 ;;
18 sleep)
19 sleep ${ARG:-1}
20 ;;
21 touch)
22 touch ${ARG:?touch argument required}
16 ;; 23 ;;
17 quit) exit $ARG;; 24 quit) exit $ARG;;
18 *) echo "OK $COMMAND $ARG" 25 *) echo "OK $COMMAND $ARG"

Return to:

Send suggestions and report system problems to the System administrator.