summaryrefslogtreecommitdiff
path: root/Modules/SquishRunTestCase.sh
diff options
context:
space:
mode:
authorBrad Davis <brad.davis@kitware.com>2008-12-08 17:39:30 -0500
committerBrad Davis <brad.davis@kitware.com>2008-12-08 17:39:30 -0500
commit5fe7b17d989f66bee8bd461d8558d0e60f18df0b (patch)
treebe713f995aede58a0af24450fc567d8d22b1757f /Modules/SquishRunTestCase.sh
parent98afdd0e3710678573f3d582eda9744fd30af747 (diff)
downloadcmake-5fe7b17d989f66bee8bd461d8558d0e60f18df0b.tar.gz
ENH: adding functionality for finding Squish, adding Squish tests from CMake, and running Squish tests from ctest
Diffstat (limited to 'Modules/SquishRunTestCase.sh')
-rwxr-xr-xModules/SquishRunTestCase.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/Modules/SquishRunTestCase.sh b/Modules/SquishRunTestCase.sh
new file mode 100755
index 0000000000..409b46a3ed
--- /dev/null
+++ b/Modules/SquishRunTestCase.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+echo "Starting the squish server...$1 --daemon"
+$1 --daemon
+
+echo "Running the test case...$2 --testcase $3 --wrapper $4 --aut $5"
+$2 --testcase $3 --wrapper $4 --aut $5
+returnValue=$?
+
+echo "Stopping the squish server...$1 --stop"
+$1 --stop
+
+exit $returnValue