blob: 08502657469e53dbee80e277a71f9dcb18eb7424 [file] [log] [blame]
Alexander Afanasyevbc98fcf2014-08-16 23:18:50 -07001#!/usr/bin/env bash
Davide Pesaventof6be8e32020-04-30 16:06:03 -04002set -ex
Alexander Afanasyevbc98fcf2014-08-16 23:18:50 -07003
Davide Pesavento813df802017-08-20 20:53:54 -04004# Prepare environment
Davide Pesaventof6be8e32020-04-30 16:06:03 -04005rm -rf ~/.ndn
Davide Pesavento7ae8b082021-10-12 21:45:47 -04006ndnsec key-gen "/tmp/jenkins/$NODE_NAME" | ndnsec cert-install -
Davide Pesavento813df802017-08-20 20:53:54 -04007
Davide Pesaventof6be8e32020-04-30 16:06:03 -04008# https://github.com/google/sanitizers/wiki/AddressSanitizerFlags
Davide Pesaventoc58cc7f2017-08-08 16:51:28 -05009ASAN_OPTIONS="color=always"
Davide Pesaventof6be8e32020-04-30 16:06:03 -040010ASAN_OPTIONS+=":check_initialization_order=1"
11ASAN_OPTIONS+=":detect_stack_use_after_return=1"
12ASAN_OPTIONS+=":strict_init_order=1"
13ASAN_OPTIONS+=":strict_string_checks=1"
14ASAN_OPTIONS+=":detect_invalid_pointer_pairs=2"
15ASAN_OPTIONS+=":detect_container_overflow=0"
Davide Pesaventoc58cc7f2017-08-08 16:51:28 -050016ASAN_OPTIONS+=":strip_path_prefix=${PWD}/"
17export ASAN_OPTIONS
18
Davide Pesavento0b0eddd2019-03-19 14:42:15 -040019export BOOST_TEST_BUILD_INFO=1
20export BOOST_TEST_COLOR_OUTPUT=1
Davide Pesavento7ae8b082021-10-12 21:45:47 -040021export BOOST_TEST_DETECT_MEMORY_LEAK=0
22export BOOST_TEST_LOGGER=HRF,test_suite,stdout:XML,all,build/xunit-log.xml
Davide Pesavento0b0eddd2019-03-19 14:42:15 -040023
Davide Pesavento813df802017-08-20 20:53:54 -040024# Run unit tests
Davide Pesavento7ae8b082021-10-12 21:45:47 -040025./build/unit-tests-nlsr