Alexander Afanasyev | bc98fcf | 2014-08-16 23:18:50 -0700 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Vince Lehman | 0a7da61 | 2014-10-29 14:39:29 -0500 | [diff] [blame] | 2 | set -e |
Davide Pesavento | 813df80 | 2017-08-20 20:53:54 -0400 | [diff] [blame^] | 3 | set -x |
Alexander Afanasyev | bc98fcf | 2014-08-16 23:18:50 -0700 | [diff] [blame] | 4 | |
Davide Pesavento | 813df80 | 2017-08-20 20:53:54 -0400 | [diff] [blame^] | 5 | # Prepare environment |
Vince Lehman | b45eed2 | 2015-01-13 14:58:07 -0600 | [diff] [blame] | 6 | rm -Rf ~/.ndn |
| 7 | |
Davide Pesavento | 813df80 | 2017-08-20 20:53:54 -0400 | [diff] [blame^] | 8 | ut_log_args() { |
| 9 | echo --log_level=test_suite |
| 10 | } |
| 11 | |
Davide Pesavento | c58cc7f | 2017-08-08 16:51:28 -0500 | [diff] [blame] | 12 | ASAN_OPTIONS="color=always" |
| 13 | ASAN_OPTIONS+=":detect_stack_use_after_return=true" |
| 14 | ASAN_OPTIONS+=":check_initialization_order=true" |
| 15 | ASAN_OPTIONS+=":strict_init_order=true" |
| 16 | ASAN_OPTIONS+=":detect_invalid_pointer_pairs=1" |
| 17 | ASAN_OPTIONS+=":detect_container_overflow=false" |
| 18 | ASAN_OPTIONS+=":strict_string_checks=true" |
| 19 | ASAN_OPTIONS+=":strip_path_prefix=${PWD}/" |
| 20 | export ASAN_OPTIONS |
| 21 | |
Davide Pesavento | 813df80 | 2017-08-20 20:53:54 -0400 | [diff] [blame^] | 22 | # Run unit tests |
| 23 | ./build/unit-tests-nlsr $(ut_log_args) |