forked from eclipse-iceoryx/iceoryx
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iox-eclipse-iceoryx#141 enable sanizier(-fsanitize=address)
Signed-off-by: Prasanna Bhat <prasanna.yoga@gmail.com>
- Loading branch information
1 parent
65445be
commit 6521f9f
Showing
9 changed files
with
164 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# This workflow builds & runs test cases in iceoryx | ||
|
||
name: Sanitize | ||
|
||
# Triggers the workflow on push or pull request events but only for the master branch | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
clang-sanitize: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-18.04 | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- name: Install iceoryx dependencies | ||
# Softwares installed in ubuntu-18.04 instance | ||
# https://github.com/actions/virtual-environments/blob/master/images/linux/Ubuntu1804-README.md | ||
run: sudo apt-get update && sudo apt-get install -y libacl1-dev libncurses5-dev | ||
|
||
- name : Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name : Clang Sanitize | ||
run: | | ||
export CC=/usr/bin/clang | ||
export CXX=/usr/bin/clang++ | ||
export NUM_CORES=`nproc` | ||
# build tests , dont run them | ||
$GITHUB_WORKSPACE/tools/iceoryx_build_test.sh build-test sanitize clean -j $NUM_CORES | ||
cd $GITHUB_WORKSPACE/build | ||
# Run tests , continue execution on error (to get maximum failures) | ||
../tools/run_all_tests.sh continue-on-error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Suppress specific errors | ||
src:iceoryx_binding_c/test/integrationtests/test_wait_set.cpp | ||
src:*test_wait_set.cpp | ||
src:*test_wait_set.cpp* | ||
# fun:*iox::posix::MessageQueue::receive* | ||
src:*message_queue.cpp* | ||
fun:*MessageQueue::receive* | ||
fun:*IpcChannel_test_sendAndReceive_Test<iox::posix::MessageQueue>::TestBody* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# cd build/binding_c/test | ||
# ./binding_c_integrationtests --gtest_filter="*iox_ws_test*" 2>&1 | tee log_file_ignore.txt | ||
# code log_file_ignore.txt | ||
# cd ../../.. | ||
|
||
cd build/utils/test | ||
./utils_moduletests --gtest_filter="*IpcChannel_test*" 2>&1 | tee log_func_ignore.txt | ||
code log_func_ignore.txt | ||
cd ../../.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters