summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Johansson <razze@iki.fi>2020-04-07 07:45:49 +0000
committerOleksandr Byelkin <sanja@mariadb.com>2020-08-12 15:31:47 +0200
commitf62a8669d9db22935b71e85e47c9227d91d65a1e (patch)
tree23cb53f6c639f965862d12a6fec30d00c8061176
parentf7bbcfbbc8135fe75c05956eb246c7845b496bcb (diff)
downloadmariadb-git-f62a8669d9db22935b71e85e47c9227d91d65a1e.tar.gz
MENT-566 please add JUnit support to MTR to generate XML test result from run
A new parameter has been added called xml-report, with which the filename of the XML file is given to which the XML result is written. There is also xml-package for adding a package value in the XML output. Example usage: ./mysql-test-run.pl main.events_bugs innodb.count_distinct main.explain_json innodb.file_format_defaults json.json_no_table --suite=main,innodb,json --force --xml-report=build123456789.xml --xml-package=simpletestrun
-rwxr-xr-xmysql-test/mysql-test-run.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index 62650da65e9..fb0043e643f 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -615,7 +615,9 @@ sub main {
if ($opt_gcov) {
system './dgcov.pl --purge';
}
-
+
+
+
#######################################################################
my $num_tests= $mtr_report::tests_total= @$tests;
if ( $opt_parallel eq "auto" ) {
@@ -6683,6 +6685,7 @@ Misc options
xml-report=<file> Output jUnit xml file of the results.
tail-lines=N Number of lines of the result to include in a failure
report.
+ xml-report=<file> Output jUnit xml file of the results.
Some options that control enabling a feature for normal test runs,
can be turned off by prepending 'no' to the option, e.g. --notimer.