summaryrefslogtreecommitdiffabout
path: root/tests/aux/in.test
Side-by-side diff
Diffstat (limited to 'tests/aux/in.test') (more/less context) (ignore whitespace changes)
-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 @@
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"

Return to:

Send suggestions and report system problems to the System administrator.