Yingdi Yu | 906c2ea | 2014-10-31 11:24:50 -0700 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 2 | set -ex |
Alexander Afanasyev | f3192eb | 2016-12-19 17:11:20 -0800 | [diff] [blame] | 3 | |
| 4 | # Prepare environment |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 5 | rm -rf ~/.ndn |
Davide Pesavento | ad7a61b | 2021-06-04 13:40:03 -0400 | [diff] [blame] | 6 | ndnsec key-gen "/tmp/jenkins/$NODE_NAME" | ndnsec cert-install - |
Alexander Afanasyev | f3192eb | 2016-12-19 17:11:20 -0800 | [diff] [blame] | 7 | |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 8 | # https://github.com/google/sanitizers/wiki/AddressSanitizerFlags |
Alexander Afanasyev | f3192eb | 2016-12-19 17:11:20 -0800 | [diff] [blame] | 9 | ASAN_OPTIONS="color=always" |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 10 | ASAN_OPTIONS+=":check_initialization_order=1" |
| 11 | ASAN_OPTIONS+=":detect_stack_use_after_return=1" |
| 12 | ASAN_OPTIONS+=":strict_init_order=1" |
| 13 | ASAN_OPTIONS+=":strict_string_checks=1" |
| 14 | ASAN_OPTIONS+=":detect_invalid_pointer_pairs=2" |
Alexander Afanasyev | f3192eb | 2016-12-19 17:11:20 -0800 | [diff] [blame] | 15 | ASAN_OPTIONS+=":strip_path_prefix=${PWD}/" |
| 16 | export ASAN_OPTIONS |
| 17 | |
Davide Pesavento | 5188f31 | 2019-03-18 18:38:45 -0400 | [diff] [blame] | 18 | export BOOST_TEST_BUILD_INFO=1 |
| 19 | export BOOST_TEST_COLOR_OUTPUT=1 |
Davide Pesavento | 5f408ae | 2020-07-15 21:17:04 -0400 | [diff] [blame] | 20 | export BOOST_TEST_DETECT_MEMORY_LEAK=0 |
| 21 | export BOOST_TEST_LOGGER=HRF,test_suite,stdout:XML,all,build/xunit-log.xml |
Davide Pesavento | c2489b4 | 2017-10-28 17:19:08 -0400 | [diff] [blame] | 22 | |
Davide Pesavento | 7ef57e2 | 2017-10-28 16:58:43 -0400 | [diff] [blame] | 23 | # Run unit tests |
Davide Pesavento | 5f408ae | 2020-07-15 21:17:04 -0400 | [diff] [blame] | 24 | ./build/unit-tests |