diff options
Diffstat (limited to 'tests/aux/in.test')
-rwxr-xr-x | tests/aux/in.test | 19 |
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 @@ | |||
3 | FILE=${1:?} | 3 | FILE=${1:?} |
4 | IFS=' | 4 | IFS=' |
5 | ' | 5 | ' |
6 | : ${PIESCTL:=piesctl} | ||
7 | PIESCTL="$PIESCTL --no-netrc${PIES_CTLSOCK:+ --url=}$PIES_CTLSOCK" | ||
6 | while read COMMAND ARG | 8 | while read COMMAND ARG |
7 | do | 9 | do |
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" |