Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
dumux-repositories
dumux
Merge requests
!677
Feature/fix cmake warnings
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature/fix cmake warnings
feature/fix-cmake-warnings
into
next
Overview
2
Commits
3
Pipelines
0
Changes
9
Merged
Christoph Grüninger
requested to merge
feature/fix-cmake-warnings
into
next
7 years ago
Overview
2
Commits
3
Pipelines
0
Changes
9
Expand
0
0
Merge request reports
Compare
next
version 1
e5d796e6
7 years ago
next (base)
and
latest version
latest version
e469d390
3 commits,
7 years ago
version 1
e5d796e6
3 commits,
7 years ago
9 files
+
51
−
39
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
9
Search (e.g. *.vue) (Ctrl+P)
cmake/modules/DumuxTestMacros.cmake
+
8
−
18
Options
@@ -46,22 +46,12 @@ macro(add_dumux_test dumux_test dumux_test_executable dumux_test_executable_sour
endif
()
# add test
if
(
DUNE_COMMON_VERSION VERSION_LESS 2.5
)
# add test
add_test
(
${
dumux_test
}
${
dumux_test_args
}
)
# return code 77 should be interpreted as skipped test
set_tests_properties
(
${
dumux_test
}
PROPERTIES SKIP_RETURN_CODE 77
)
# tests always require the executable to run
set_tests_properties
(
${
dumux_test
}
PROPERTIES REQUIRED_FILES
${
dumux_test_executable
}
)
else
()
list
(
GET dumux_test_args 0 dumux_test_command
)
list
(
REMOVE_AT dumux_test_args 0
)
dune_add_test
(
NAME
${
dumux_test
}
TARGET
${
dumux_test_executable
}
COMMAND
${
dumux_test_command
}
CMD_ARGS
${
dumux_test_args
}
)
# tests always require the executable to run
set_tests_properties
(
${
dumux_test
}
PROPERTIES REQUIRED_FILES
${
dumux_test_executable
}
)
endif
()
list
(
GET dumux_test_args 0 dumux_test_command
)
list
(
REMOVE_AT dumux_test_args 0
)
dune_add_test
(
NAME
${
dumux_test
}
TARGET
${
dumux_test_executable
}
COMMAND
${
dumux_test_command
}
CMD_ARGS
${
dumux_test_args
}
)
# tests always require the executable to run
set_tests_properties
(
${
dumux_test
}
PROPERTIES REQUIRED_FILES
${
dumux_test_executable
}
)
endmacro
()
Loading