summaryrefslogtreecommitdiff
path: root/share/cmake-3.17/Modules/Squish4RunTestCase.bat
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2020-03-20 14:28:55 -0700
committerHaibo Huang <hhb@google.com>2020-03-20 14:39:39 -0700
commit82cd051f0b358a85f268ddcc4320c12ef3fd7097 (patch)
tree720444adf4bb0d7698dc953c6706c2955621089f /share/cmake-3.17/Modules/Squish4RunTestCase.bat
parentd00577c9d4ee9a42fb5158f49a1ebce8047b0bd8 (diff)
downloaddarwin-x86-82cd051f0b358a85f268ddcc4320c12ef3fd7097.tar.gz
Upgrade cmake prebuilt to 3.17.0 [Darwin]
Built at: http://fusion/62f916ad-981c-481b-90fe-89fa033e9ef6 Change-Id: Icfd765935145267a3bfe7839446eb0bf623810d4
Diffstat (limited to 'share/cmake-3.17/Modules/Squish4RunTestCase.bat')
-rwxr-xr-xshare/cmake-3.17/Modules/Squish4RunTestCase.bat24
1 files changed, 24 insertions, 0 deletions
diff --git a/share/cmake-3.17/Modules/Squish4RunTestCase.bat b/share/cmake-3.17/Modules/Squish4RunTestCase.bat
new file mode 100755
index 0000000..c658208
--- /dev/null
+++ b/share/cmake-3.17/Modules/Squish4RunTestCase.bat
@@ -0,0 +1,24 @@
+set SQUISHSERVER=%1
+set SQUISHRUNNER=%2
+set TESTSUITE=%3
+set TESTCASE=%4
+set AUT=%5
+set AUTDIR=%6
+set SETTINGSGROUP=%7
+
+%SQUISHSERVER% --stop
+
+echo "Adding AUT... %SQUISHSERVER% --config addAUT %AUT% %AUTDIR%"
+%SQUISHSERVER% --config addAUT "%AUT%" "%AUTDIR%"
+
+echo "Starting the squish server... %SQUISHSERVER%"
+start /B %SQUISHSERVER%
+
+echo "Running the test case...%SQUISHRUNNER% --testsuite %TESTSUITE% --testcase %TESTCASE%"
+%SQUISHRUNNER% --testsuite "%TESTSUITE%" --testcase "%TESTCASE%"
+set returnValue=%ERRORLEVEL%
+
+echo "Stopping the squish server... %SQUISHSERVER% --stop"
+%SQUISHSERVER% --stop
+
+exit /B %returnValue%