blob: b172b2a72782adf9083e6567744f56f9bf0f2a8f [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"
13ASAN_OPTIONS+=":detect_stack_use_after_return=true"
14ASAN_OPTIONS+=":check_initialization_order=true"
15ASAN_OPTIONS+=":strict_init_order=true"
16ASAN_OPTIONS+=":detect_invalid_pointer_pairs=1"
17ASAN_OPTIONS+=":detect_container_overflow=false"
18ASAN_OPTIONS+=":strict_string_checks=true"
19ASAN_OPTIONS+=":strip_path_prefix=${PWD}/"
20export ASAN_OPTIONS
21
Davide Pesavento813df802017-08-20 20:53:54 -040022# Run unit tests
23./build/unit-tests-nlsr $(ut_log_args)