blob: 13ddf6e8b2614dab9efe614cedfa80ebe6f78475 [file] [log] [blame]
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -04001#!/usr/bin/env bash
Davide Pesaventoec61b742020-04-18 01:00:12 -04002set -ex
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -04003
4# Prepare environment
Davide Pesaventoec61b742020-04-18 01:00:12 -04005rm -rf ~/.ndn
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -04006
Davide Pesaventoec61b742020-04-18 01:00:12 -04007# https://github.com/google/sanitizers/wiki/AddressSanitizerFlags
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -04008ASAN_OPTIONS="color=always"
Davide Pesaventoec61b742020-04-18 01:00:12 -04009ASAN_OPTIONS+=":check_initialization_order=1"
10ASAN_OPTIONS+=":detect_stack_use_after_return=1"
11ASAN_OPTIONS+=":strict_init_order=1"
12ASAN_OPTIONS+=":strict_string_checks=1"
13ASAN_OPTIONS+=":detect_invalid_pointer_pairs=2"
14ASAN_OPTIONS+=":detect_container_overflow=0"
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040015ASAN_OPTIONS+=":strip_path_prefix=${PWD}/"
16export ASAN_OPTIONS
17
Davide Pesavento8f9d0622018-11-27 01:23:37 -050018export BOOST_TEST_BUILD_INFO=1
19export BOOST_TEST_COLOR_OUTPUT=1
Davide Pesaventoba3f6892020-12-08 22:18:35 -050020export BOOST_TEST_DETECT_MEMORY_LEAK=0
21export BOOST_TEST_LOGGER=HRF,test_suite,stdout:XML,all,build/xunit-log.xml
Davide Pesavento8f9d0622018-11-27 01:23:37 -050022
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040023# Run unit tests
Davide Pesaventoba3f6892020-12-08 22:18:35 -050024./build/unit-tests