aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/process
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-03-01 12:30:17 +0100
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-03-01 12:30:17 +0100
commit8951d66168e9f95f0eb499a83c7f4ad1c504045e (patch)
treec085417e97b2f9246a1cb883ce6b890285fa6126 /tests/manual/process
parent196d7b0cf4bc456b195393f36c1a092c8532208f (diff)
VCS[git]: Timeout, add missing test script.
Task-number: QTCREATORBUG-777
Diffstat (limited to 'tests/manual/process')
-rwxr-xr-xtests/manual/process/slowprocess.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/manual/process/slowprocess.sh b/tests/manual/process/slowprocess.sh
new file mode 100755
index 00000000000..0a9cf1687b0
--- /dev/null
+++ b/tests/manual/process/slowprocess.sh
@@ -0,0 +1,24 @@
+#!/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