blob: f3208b37bca0ad08b5288fc1cb21f9e40aef89df [file] [log] [blame]
Alexander Afanasyevbc98fcf2014-08-16 23:18:50 -07001#!/usr/bin/env bash
Vince Lehman0a7da612014-10-29 14:39:29 -05002set -e
Davide Pesavento813df802017-08-20 20:53:54 -04003set -x
Alexander Afanasyevbc98fcf2014-08-16 23:18:50 -07004
Davide Pesavento813df802017-08-20 20:53:54 -04005# Prepare environment
Vince Lehmanb45eed22015-01-13 14:58:07 -06006rm -Rf ~/.ndn
7
Davide Pesavento813df802017-08-20 20:53:54 -04008ut_log_args() {
9 echo --log_level=test_suite
10}
11
Davide Pesaventoc58cc7f2017-08-08 16:51:28 -050012ASAN_OPTIONS="color=always"
Ashlesh Gawandee8d8bd52018-08-09 17:18:51 -050013ASAN_OPTIONS+=":detect_leaks=false" #4682
Davide Pesaventoc58cc7f2017-08-08 16:51:28 -050014ASAN_OPTIONS+=":detect_stack_use_after_return=true"
15ASAN_OPTIONS+=":check_initialization_order=true"
16ASAN_OPTIONS+=":strict_init_order=true"
17ASAN_OPTIONS+=":detect_invalid_pointer_pairs=1"
18ASAN_OPTIONS+=":detect_container_overflow=false"
19ASAN_OPTIONS+=":strict_string_checks=true"
20ASAN_OPTIONS+=":strip_path_prefix=${PWD}/"
21export ASAN_OPTIONS
22
Davide Pesavento813df802017-08-20 20:53:54 -040023# Run unit tests
24./build/unit-tests-nlsr $(ut_log_args)