Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
fff33a1b
Commit
fff33a1b
authored
Sep 10, 2018
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: write test result XML
Add the clar flags to produce JUnit-style XML output before invocation.
parent
943181c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
ci/test.sh
+6
-3
No files found.
ci/test.sh
View file @
fff33a1b
...
...
@@ -37,11 +37,14 @@ die() {
exit
$1
}
# Ask ctest what it would run if we were to invoke it directly. This lets us manage the
# test configuration in a single place (tests/CMakeLists.txt) instead of running clar
# here as well. But it allows us to wrap our test harness with a leak checker like valgrind.
# Ask ctest what it would run if we were to invoke it directly. This lets
# us manage the test configuration in a single place (tests/CMakeLists.txt)
# instead of running clar here as well. But it allows us to wrap our test
# harness with a leak checker like valgrind. Append the option to write
# JUnit-style XML files.
run_test
()
{
TEST_CMD
=
$(
ctest
-N
-V
-R
"^
${
1
}
$"
| sed
-n
's/^[0-9]*: Test command: //p'
)
TEST_CMD
=
"
${
TEST_CMD
}
-r
${
BUILD_DIR
}
/results_
${
1
}
.xml"
if
[
"
$LEAK_CHECK
"
=
"valgrind"
]
;
then
RUNNER
=
"
$VALGRIND
$TEST_CMD
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment