Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
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
dCache
cta
Commits
cf53b705
Commit
cf53b705
authored
7 years ago
by
Eric Cano
Browse files
Options
Downloads
Patches
Plain Diff
Refactored and fixed helgrind options.
parent
1cb395b7
No related branches found
Branches containing commit
Tags
v0.0-87
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+11
-8
11 additions, 8 deletions
CMakeLists.txt
with
11 additions
and
8 deletions
CMakeLists.txt
+
11
−
8
View file @
cf53b705
...
...
@@ -177,28 +177,31 @@ endif (${COMPILE_PACKAGING} STREQUAL "1")
configure_file
(
tests/valgrind.suppr tests/valgrind.suppr COPYONLY
)
configure_file
(
tests/helgrind.suppr tests/helgrind.suppr COPYONLY
)
set
(
VALGRIND valgrind
)
set
(
VALGRIND_OPTS --track-fds=yes --leak-check=full --demangle=yes --gen-suppressions=all --show-reachable=yes --error-exitcode=1 --suppressions=tests/valgrind.suppr
)
set
(
HELGRIND_OPTS -v --demangle=yes --gen-suppressions=all --num-callers=25 --conflict-cache-size=30000000 --error-exitcode=1 --suppressions=tests/helgrind.suppr --sim-hints=no-nptl-pthread-stackcache
)
add_custom_target
(
fullunittests
tests/cta-unitTests
COMMAND tests/cta-unitTests-multiProcess
COMMAND
valgrind --track-fds=yes --leak-check=full --demangle=yes --gen-suppressions=all --show-reachable=yes --error-exitcode=1 --suppressions=tests/valgrind.suppr
tests/cta-unitTests
COMMAND
valgrind
--tool=helgrind
-v --demangle=yes --gen-suppressions=all --num-callers=25 --conflict-cache-size=30000000 --error-exitcode=1 --suppressions=tests/helgrind.suppr --sim-hints=no-nptl-pthread-stackcache
tests/cta-unitTests
COMMAND
${
VALGRIND
}
${
VALGRIND_OPTS
}
tests/cta-unitTests
COMMAND
${
VALGRIND
}
--tool=helgrind
${
HELGRIND_OPTS
}
tests/cta-unitTests
COMMAND tests/cta-unitTests-multiProcess
COMMAND
valgrind --track-fds=yes
--child-silent-after-fork=yes
--leak-check=full --demangle=yes --gen-suppressions=all --show-reachable=yes --error-exitcode=1 --suppressions=tests/valgrind.suppr
tests/cta-unitTests-multiProcess
COMMAND
valgrind
--tool=helgrind
-v --demangle=yes --gen-suppressions=all --num-callers=25 --conflict-cache-size=30000000 --error-exitcode=1 --suppressions=tests/helgrind.suppr --sim-hints=no-nptl-pthread-stackcache
tests/cta-unitTests-multiProcess
COMMAND
${
VALGRIND
}
${
VALGRIND_OPTS
}
--child-silent-after-fork=yes tests/cta-unitTests-multiProcess
COMMAND
${
VALGRIND
}
--tool=helgrind
${
HELGRIND_OPTS
}
tests/cta-unitTests-multiProcess
DEPENDS tests/cta-unitTests tests/cta-unitTests-multiProcess tests/valgrind.suppr tests/helgrind.suppr
COMMENT
"Running unit tests with memory leak and race conditions detection"
VERBATIM
)
add_custom_target
(
valgrind
valgrind --track-fds=yes --leak-check=full --demangle=yes --gen-suppressions=all --show-reachable=yes --error-exitcode=1 --suppressions=tests/valgrind.suppr
tests/cta-unitTests
COMMAND
valgrind --track-fds=yes
--child-silent-after-fork=yes
--leak-check=full --demangle=yes --gen-suppressions=all --show-reachable=yes --error-exitcode=1 --suppressions=tests/valgrind.suppr
tests/cta-unitTests-multiProcess
${
VALGRIND
}
${
VALGRIND_OPTS
}
tests/cta-unitTests
COMMAND
${
VALGRIND
}
${
VALGRIND_OPTS
}
--child-silent-after-fork=yes tests/cta-unitTests-multiProcess
DEPENDS tests/cta-unitTests tests/cta-unitTests-multiProcess tests/valgrind.suppr
COMMENT
"Running unit tests with memory leak detection"
VERBATIM
)
add_custom_target
(
helgrind
valgrind
--tool=helgrind
-v --demangle=yes --gen-suppressions=all --num-callers=25 --conflict-cache-size=30000000 --error-exitcode=1 --suppressions=tests/helgrind.suppr tests/cta-unitTests --sim-hints=no-nptl-pthread-stackcache
COMMAND
valgrind
--tool=helgrind
-v --child-silent-after-fork=yes --demangle=yes --gen-suppressions=all --num-callers=25 --conflict-cache-size=30000000 --error-exitcode=1 --suppressions=tests/helgrind.suppr --sim-hints=no-nptl-pthread-stackcache
tests/cta-unitTests-multiProcess
${
VALGRIND
}
--tool=helgrind
${
HELGRIND_OPTS
}
tests/cta-unitTests
COMMAND
${
VALGRIND
}
--tool=helgrind
${
HELGRIND_OPTS
}
tests/cta-unitTests-multiProcess
DEPENDS tests/cta-unitTests tests/cta-unitTests-multiProcess tests/helgrind.suppr
COMMENT
"Running unit tests with race conditions detection"
VERBATIM
)
...
...
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