Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-xt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ag-ohlberger
dune-community
dune-xt
Commits
91f9fd92
Commit
91f9fd92
authored
9 years ago
by
Tobias Leibner
Browse files
Options
Downloads
Patches
Plain Diff
[scripts.dune_execute] add custom execute script for dune-testtools
parent
779fb894
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake/modules/DuneUtils.cmake
+1
-0
1 addition, 0 deletions
cmake/modules/DuneUtils.cmake
scripts/dune_execute.py
+28
-0
28 additions, 0 deletions
scripts/dune_execute.py
with
29 additions
and
0 deletions
cmake/modules/DuneUtils.cmake
+
1
−
0
View file @
91f9fd92
...
...
@@ -128,6 +128,7 @@ macro(BEGIN_TESTCASES)
INIFILE
${
inifile
}
BASENAME test_
${
testbase
}
CREATED_TARGETS targetlist_
${
testbase
}
SCRIPT
${
DUNE_STUFF_ROOT
}
/scripts/dune_execute.py
${
DEBUG_MACRO_TESTS
}
)
foreach
(
testname
${
targetlist_
${
testbase
}}
)
target_link_libraries
(
${
testname
}
${
ARGN
}
${
COMMON_LIBS
}
${
GRID_LIBS
}
gtest_dune_stuff
)
...
...
This diff is collapsed.
Click to expand it.
scripts/dune_execute.py
0 → 100644
+
28
−
0
View file @
91f9fd92
#!/usr/bin/env python
# This is a modified version of dune_execute.py from dune-testtools.
# It adds the --gtest_output option to the call.
import
os.path
import
subprocess
import
sys
from
dune.testtools.wrapper.argumentparser
import
get_args
from
dune.testtools.parser
import
parse_ini_file
def
call
(
executable
,
inifile
=
None
,
*
additional_args
):
# If we have an inifile, parse it and look for special keys that modify the execution
command
=
[
"
./
"
+
executable
]
if
inifile
:
iniargument
=
inifile
iniinfo
=
parse_ini_file
(
inifile
)
if
"
__inifile_optionkey
"
in
iniinfo
:
command
.
append
(
iniinfo
[
"
__inifile_optionkey
"
])
command
.
append
(
iniargument
)
for
arg
in
additional_args
:
command
.
append
(
arg
)
return
subprocess
.
call
(
command
)
# Parse the given arguments
args
=
get_args
()
sys
.
exit
(
call
(
args
[
"
exec
"
],
args
[
"
ini
"
],
"
--gtest_output=xml:
"
+
os
.
path
.
splitext
(
os
.
path
.
basename
(
args
[
"
exec
"
]))[
0
]
+
"
_
"
+
os
.
path
.
splitext
(
os
.
path
.
basename
(
args
[
"
ini
"
]))[
0
]
+
"
.xml
"
))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment