aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2024-06-27 17:28:34 +1000
committerfuzzard <fuzzard@kodi.tv>2024-06-27 17:28:34 +1000
commitb4cc8df3e99c92f6d02b2a6983f505807b2cc362 (patch)
tree55f972025555457eeca609e9ba16296b419a3d9c /tools
parent8a90f175f53fa3f86415e6a376aed54d244cad0e (diff)
[windows][buildsteps] run-tests.bat fail if test executable outputs no test data
Diffstat (limited to 'tools')
-rw-r--r--tools/buildsteps/windows/run-tests.bat5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/buildsteps/windows/run-tests.bat b/tools/buildsteps/windows/run-tests.bat
index 2bde835b0a..ab60f59e8d 100644
--- a/tools/buildsteps/windows/run-tests.bat
+++ b/tools/buildsteps/windows/run-tests.bat
@@ -43,6 +43,11 @@ ECHO ------------------------------------------------------------
ECHO Running testsuite...
"%buildconfig%\%APP_NAME%-test.exe" --gtest_output=xml:%WORKSPACE%\gtestresults.xml
+ IF NOT EXIST %WORKSPACE%\gtestresults.xml (
+ set DIETEXT="%APP_NAME%-test.exe failed to execute or output test results!"
+ goto DIE
+ )
+
rem Adapt gtest xml output to be conform with junit xml
rem this basically looks for lines which have "notrun" in the <testcase /> tag
rem and adds a <skipped/> subtag into it. For example: