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 @@ FILE=${1:?} IFS='
' +: ${PIESCTL:=piesctl} +PIESCTL="$PIESCTL --no-netrc${PIES_CTLSOCK:+ --url=}$PIES_CTLSOCK" while read COMMAND ARG do echo $COMMAND $ARG >> $FILE case $COMMAND in - stop) if [ -n "$STOPCMD" ]; then - echo "STOP" - $STOPCMD - else - echo "OK $COMMAND $ARG" - fi + stop) echo "OK shutting down" + $PIESCTL shutdown + ;; + enable) + $PIESCTL start component ${ARG:?component name not supplied} + ;; + sleep) + sleep ${ARG:-1} + ;; + touch) + touch ${ARG:?touch argument required} ;; quit) exit $ARG;; *) echo "OK $COMMAND $ARG" |