projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
30e262f
)
Try adding --xml option to run/tests.
author
Carl Hetherington
<cth@carlh.net>
Thu, 11 Jun 2020 19:29:41 +0000
(21:29 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 16 Jun 2020 06:14:06 +0000
(08:14 +0200)
cscript
patch
|
blob
|
history
run/tests
patch
|
blob
|
history
diff --git
a/cscript
b/cscript
index 2e7820e539fcf5e61216981f8c2b7438e5a198e5..f4e184e0d4a68c183a95a9290182f8acce2abb3c 100644
(file)
--- a/
cscript
+++ b/
cscript
@@
-722,7
+722,7
@@
def make_manual(target):
def test(target, test):
if target.platform != 'windows':
target.set('LC_ALL', 'C')
def test(target, test):
if target.platform != 'windows':
target.set('LC_ALL', 'C')
- cmd = 'run/tests '
+ cmd = 'run/tests
--xml
'
if target.debug:
cmd += '--backtrace '
if test is not None:
if target.debug:
cmd += '--backtrace '
if test is not None:
diff --git
a/run/tests
b/run/tests
index d6a3ba15f2e4f91b63fb7078e80501875def6fb4..b243efccbc9b13893b739e74b28dffd672f20f47 100755
(executable)
--- a/
run/tests
+++ b/
run/tests
@@
-26,6
+26,8
@@
elif [ "$1" == "--drd" ]; then
elif [ "$1" == "--helgrind" ]; then
shift;
valgrind --tool="helgrind" build/test/unit-tests $*
elif [ "$1" == "--helgrind" ]; then
shift;
valgrind --tool="helgrind" build/test/unit-tests $*
+elif [ "$1" == "--xml" ]; then
+ build/test/unit-tests --catch_system_errors=no --log_format=XML --log_sink=results.xml --log_level=all --report_level=no --result_code=no
else
ulimit -c unlimited
build/test/unit-tests --catch_system_errors=no --log_level=test_suite $*
else
ulimit -c unlimited
build/test/unit-tests --catch_system_errors=no --log_level=test_suite $*