Files
qt-creator/tests/manual/process/slowprocess.sh
Friedemann Kleint 8951d66168 VCS[git]: Timeout, add missing test script.
Task-number: QTCREATORBUG-777
2010-03-01 12:30:17 +01:00

25 lines
267 B
Bash
Executable File

#!/bin/sh
# Emulate a slow process with continous output
I=0
STDERR=0
if [ " $1" = " -e" ]
then
echo stderr
STDERR=1
shift 1
fi
while [ $I -lt 20 ]
do
if [ $STDERR -ne 0 ]
then
echo $I 1>&2
else
echo $I
fi
I=`expr $I + 1`
sleep 1
done