Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
210910794
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2021
210910794
Commits
d8b8a9a0
Unverified
Commit
d8b8a9a0
authored
5 years ago
by
Carl Delsey
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Script to run the thread and address sanitizers. (#1313)
parent
f8035638
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/run_sanitizers
+41
-0
41 additions, 0 deletions
tools/run_sanitizers
with
41 additions
and
0 deletions
tools/run_sanitizers
0 → 100755
+
41
−
0
View file @
d8b8a9a0
#!/bin/bash
# colcon sanitizer plugin instructions at
# https://github.com/colcon/colcon-sanitizer-reports/blob/master/README.rst
# To use this script, make sure you have the colcon plugins installed according
# to the instructions above. Then build ros2_ws and navstack_dependencies_ws.
# Source the navstack_dependencies_ws and then cd to the navigation2_ws.
#
# Run this script by invoking navigation2/tools/run_sanitizers
# Afterwards, there should be two files in the root of the workspace:
# - sanitizer_report-asan.csv
# - sanitizer_report-tsan.csv
clean_workspace
()
{
rm
-rf
build
install
log
}
build_with_sanitizer
()
{
colcon build
--build-base
=
build-
$1
--install-base
=
install-
$1
\
--cmake-args
-DOSRF_TESTING_TOOLS_CPP_DISABLE_MEMORY_TOOLS
=
ON
\
-DCMAKE_BUILD_TYPE
=
Debug
\
--mixin
$1
\
--symlink-install
}
test_with_sanitizer
()
{
colcon
test
--build-base
=
build-
$1
--install-base
=
install-
$1
--retest-until-pass
3
\
--event-handlers
sanitizer_report+
}
clean_workspace
build_with_sanitizer asan-gcc
build_with_sanitizer tsan
test_with_sanitizer asan-gcc
mv
sanitizer_report.csv sanitizer_report-asan.csv
test_with_sanitizer tsan
mv
sanitizer_report.csv sanitizer_report-tsan.csv
This diff is collapsed.
Click to expand it.
Preview
0%
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