blob: b172b2a72782adf9083e6567744f56f9bf0f2a8f [file] [log] [blame]
#!/usr/bin/env bash
set -e
set -x
# Prepare environment
rm -Rf ~/.ndn
ut_log_args() {
echo --log_level=test_suite
}
ASAN_OPTIONS="color=always"
ASAN_OPTIONS+=":detect_stack_use_after_return=true"
ASAN_OPTIONS+=":check_initialization_order=true"
ASAN_OPTIONS+=":strict_init_order=true"
ASAN_OPTIONS+=":detect_invalid_pointer_pairs=1"
ASAN_OPTIONS+=":detect_container_overflow=false"
ASAN_OPTIONS+=":strict_string_checks=true"
ASAN_OPTIONS+=":strip_path_prefix=${PWD}/"
export ASAN_OPTIONS
# Run unit tests
./build/unit-tests-nlsr $(ut_log_args)