Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
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
Mojtaba Abdolkhani
ogs
Commits
344081ee
Commit
344081ee
authored
2 years ago
by
Lars Bilke
Committed by
Dmitri Naumov
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[cmake] AddTest() removed wrappers memcheck|callgrind.
parent
c68f0784
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
scripts/cmake/test/AddTest.cmake
+1
-27
1 addition, 27 deletions
scripts/cmake/test/AddTest.cmake
scripts/cmake/test/MeshTest.cmake
+1
-27
1 addition, 27 deletions
scripts/cmake/test/MeshTest.cmake
scripts/cmake/test/Test.cmake
+0
-13
0 additions, 13 deletions
scripts/cmake/test/Test.cmake
with
2 additions
and
67 deletions
scripts/cmake/test/AddTest.cmake
+
1
−
27
View file @
344081ee
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
# PATH <working directory> # relative to SourceDir/Tests/Data
# PATH <working directory> # relative to SourceDir/Tests/Data
# EXECUTABLE <executable target> # optional, defaults to ogs
# EXECUTABLE <executable target> # optional, defaults to ogs
# EXECUTABLE_ARGS <arguments>
# EXECUTABLE_ARGS <arguments>
# WRAPPER <time|
memcheck|callgrind|
mpirun> # optional
# WRAPPER <time|mpirun> # optional
# WRAPPER_ARGS <arguments> # optional
# WRAPPER_ARGS <arguments> # optional
# TESTER <diff|vtkdiff|gmldiff|memcheck> # optional
# TESTER <diff|vtkdiff|gmldiff|memcheck> # optional
# TESTER_ARGS <argument> # optional
# TESTER_ARGS <argument> # optional
...
@@ -164,32 +164,6 @@ function(AddTest)
...
@@ -164,32 +164,6 @@ function(AddTest)
)
)
set
(
AddTest_WRAPPER_ARGS
""
)
set
(
AddTest_WRAPPER_ARGS
""
)
endif
()
endif
()
elseif
(
AddTest_WRAPPER STREQUAL
"memcheck"
)
if
(
VALGRIND_TOOL_PATH
)
set
(
WRAPPER_COMMAND
"
${
VALGRIND_TOOL_PATH
}
--tool=memcheck --log-file=
${
AddTest_SOURCE_PATH
}
/
${
AddTest_NAME
}
_memcheck.txt -v --leak-check=full --show-reachable=yes --track-origins=yes --malloc-fill=0xff --free-fill=0xff"
)
set
(
tester memcheck
)
else
()
set
(
DISABLED_TESTS_LOG
"
${
DISABLED_TESTS_LOG
}
\n
Disabling memcheck wrapper for
${
AddTest_NAME
}
as memcheck exe was not found!"
CACHE INTERNAL
""
)
set
(
AddTest_WRAPPER_ARGS
""
)
endif
()
elseif
(
AddTest_WRAPPER STREQUAL
"callgrind"
)
if
(
VALGRIND_TOOL_PATH
)
set
(
WRAPPER_COMMAND
"
${
VALGRIND_TOOL_PATH
}
--tool=callgrind --branch-sim=yes --cache-sim=yes --dump-instr=yes --collect-jumps=yes"
)
unset
(
tester
)
else
()
set
(
DISABLED_TESTS_LOG
"
${
DISABLED_TESTS_LOG
}
\n
Disabling callgrind wrapper for
${
AddTest_NAME
}
as callgrind exe was not found!"
CACHE INTERNAL
""
)
set
(
AddTest_WRAPPER_ARGS
""
)
endif
()
elseif
(
AddTest_WRAPPER STREQUAL
"mpirun"
)
elseif
(
AddTest_WRAPPER STREQUAL
"mpirun"
)
if
(
MPIRUN_TOOL_PATH
)
if
(
MPIRUN_TOOL_PATH
)
if
(
"
${
HOSTNAME
}
"
MATCHES
"frontend.*"
)
if
(
"
${
HOSTNAME
}
"
MATCHES
"frontend.*"
)
...
...
This diff is collapsed.
Click to expand it.
scripts/cmake/test/MeshTest.cmake
+
1
−
27
View file @
344081ee
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
# PATH <working directory> # relative to SourceDir/Tests/Data
# PATH <working directory> # relative to SourceDir/Tests/Data
# EXECUTABLE <executable target> # optional, defaults to ogs
# EXECUTABLE <executable target> # optional, defaults to ogs
# EXECUTABLE_ARGS <arguments>
# EXECUTABLE_ARGS <arguments>
# WRAPPER <time|
memcheck|callgrind|
mpirun> # optional
# WRAPPER <time|mpirun> # optional
# WRAPPER_ARGS <arguments> # optional
# WRAPPER_ARGS <arguments> # optional
# REQUIREMENTS # optional simple boolean expression which has to be true to
# REQUIREMENTS # optional simple boolean expression which has to be true to
# enable the test, e.g.
# enable the test, e.g.
...
@@ -85,32 +85,6 @@ function(MeshTest)
...
@@ -85,32 +85,6 @@ function(MeshTest)
)
)
set
(
MeshTest_WRAPPER_ARGS
""
)
set
(
MeshTest_WRAPPER_ARGS
""
)
endif
()
endif
()
elseif
(
MeshTest_WRAPPER STREQUAL
"memcheck"
)
if
(
VALGRIND_TOOL_PATH
)
set
(
WRAPPER_COMMAND
"
${
VALGRIND_TOOL_PATH
}
--tool=memcheck --log-file=
${
MeshTest_SOURCE_PATH
}
/
${
MeshTest_NAME
}
_memcheck.log -v --leak-check=full --show-reachable=yes --track-origins=yes --malloc-fill=0xff --free-fill=0xff"
)
set
(
tester memcheck
)
else
()
set
(
DISABLED_TESTS_LOG
"
${
DISABLED_TESTS_LOG
}
\n
Disabling memcheck wrapper for
${
MeshTest_NAME
}
as memcheck exe was not found!"
CACHE INTERNAL
""
)
set
(
MeshTest_WRAPPER_ARGS
""
)
endif
()
elseif
(
MeshTest_WRAPPER STREQUAL
"callgrind"
)
if
(
VALGRIND_TOOL_PATH
)
set
(
WRAPPER_COMMAND
"
${
VALGRIND_TOOL_PATH
}
--tool=callgrind --branch-sim=yes --cache-sim=yes --dump-instr=yes --collect-jumps=yes"
)
unset
(
tester
)
else
()
set
(
DISABLED_TESTS_LOG
"
${
DISABLED_TESTS_LOG
}
\n
Disabling callgrind wrapper for
${
MeshTest_NAME
}
as callgrind exe was not found!"
CACHE INTERNAL
""
)
set
(
MeshTest_WRAPPER_ARGS
""
)
endif
()
elseif
(
MeshTest_WRAPPER STREQUAL
"mpirun"
)
elseif
(
MeshTest_WRAPPER STREQUAL
"mpirun"
)
if
(
MPIRUN_TOOL_PATH
)
if
(
MPIRUN_TOOL_PATH
)
set
(
WRAPPER_COMMAND
${
MPIRUN_TOOL_PATH
}
)
set
(
WRAPPER_COMMAND
${
MPIRUN_TOOL_PATH
}
)
...
...
This diff is collapsed.
Click to expand it.
scripts/cmake/test/Test.cmake
+
0
−
13
View file @
344081ee
...
@@ -3,7 +3,6 @@ find_program(DIFF_TOOL_PATH diff)
...
@@ -3,7 +3,6 @@ find_program(DIFF_TOOL_PATH diff)
find_program
(
TIME_TOOL_PATH time
)
find_program
(
TIME_TOOL_PATH time
)
find_program
(
GREP_TOOL_PATH grep
)
find_program
(
GREP_TOOL_PATH grep
)
find_program
(
BASH_TOOL_PATH bash
)
find_program
(
BASH_TOOL_PATH bash
)
find_program
(
VALGRIND_TOOL_PATH valgrind
)
find_program
(
MPIRUN_TOOL_PATH mpirun
)
find_program
(
MPIRUN_TOOL_PATH mpirun
)
if
(
NOT TIME_TOOL_PATH
)
if
(
NOT TIME_TOOL_PATH
)
...
@@ -12,18 +11,6 @@ if(NOT TIME_TOOL_PATH)
...
@@ -12,18 +11,6 @@ if(NOT TIME_TOOL_PATH)
"time-command is required for time wrapper but was not found! All corresponding tests are disabled."
"time-command is required for time wrapper but was not found! All corresponding tests are disabled."
)
)
endif
()
endif
()
if
(
NOT VALGRIND_TOOL_PATH
)
message
(
STATUS
"Valgrind is required for memcheck wrapper but was not found! All corresponding tests are disabled."
)
endif
()
if
(
NOT VALGRIND_TOOL_PATH
)
message
(
STATUS
"Valgrind is required for callgrind wrapper but was not found! All corresponding tests are disabled."
)
endif
()
if
(
NOT MPIRUN_TOOL_PATH
)
if
(
NOT MPIRUN_TOOL_PATH
)
message
(
message
(
STATUS
STATUS
...
...
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