blob: e0d29774157e479f8fb83781f326265bcf5542fd [file] [log] [blame]
Alexander Afanasyevf34a3552017-08-13 21:17:05 -04001#!/usr/bin/env bash
Davide Pesavento4a160042020-04-13 16:50:02 -04002set -ex
Alexander Afanasyevf34a3552017-08-13 21:17:05 -04003
4# Prepare environment
Davide Pesavento4a160042020-04-13 16:50:02 -04005rm -rf ~/.ndn
Davide Pesavento6df68802021-06-04 14:01:36 -04006ndnsec key-gen "/tmp/jenkins/$NODE_NAME" | ndnsec cert-install -
Alexander Afanasyevf34a3552017-08-13 21:17:05 -04007
Davide Pesavento4a160042020-04-13 16:50:02 -04008# https://github.com/google/sanitizers/wiki/AddressSanitizerFlags
Alexander Afanasyevf34a3552017-08-13 21:17:05 -04009ASAN_OPTIONS="color=always"
Davide Pesavento4a160042020-04-13 16:50:02 -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"
Alexander Afanasyevf34a3552017-08-13 21:17:05 -040016ASAN_OPTIONS+=":strip_path_prefix=${PWD}/"
17export ASAN_OPTIONS
18
Davide Pesavento4b76cb42019-03-18 18:46:09 -040019export BOOST_TEST_BUILD_INFO=1
20export BOOST_TEST_COLOR_OUTPUT=1
Davide Pesavento6df68802021-06-04 14:01:36 -040021export BOOST_TEST_DETECT_MEMORY_LEAK=0
22export BOOST_TEST_LOGGER=HRF,test_suite,stdout:XML,all,build/xunit-log.xml
Davide Pesavento4b76cb42019-03-18 18:46:09 -040023
24# Run unit tests
Davide Pesavento6df68802021-06-04 14:01:36 -040025./build/unit-tests