blob: 9ea3853f84b9b2cc4a7f7abd847a9eef3953cd96 [file] [log] [blame]
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -05001#!/usr/bin/env bash
Davide Pesavento133067f2020-04-02 22:08:27 -04002set -ex
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -05003
4# Prepare environment
Davide Pesavento133067f2020-04-02 22:08:27 -04005rm -rf ~/.ndn
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -05006ndnsec-keygen "/tmp/jenkins/$NODE_NAME" | ndnsec-install-cert -
7
Davide Pesavento133067f2020-04-02 22:08:27 -04008# https://github.com/google/sanitizers/wiki/AddressSanitizerFlags
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -05009ASAN_OPTIONS="color=always"
Davide Pesavento133067f2020-04-02 22:08:27 -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"
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050015ASAN_OPTIONS+=":strip_path_prefix=${PWD}/"
16export ASAN_OPTIONS
17
Davide Pesavento1526fee2019-03-18 19:31:55 -040018export BOOST_TEST_BUILD_INFO=1
19export BOOST_TEST_COLOR_OUTPUT=1
Davide Pesavento042dfb32020-07-23 21:07:16 -040020export BOOST_TEST_DETECT_MEMORY_LEAK=0
21export BOOST_TEST_LOGGER=HRF,test_suite,stdout:XML,all,build/xunit-log.xml
Ashlesh Gawande0b2897e2018-06-20 14:40:47 -050022
23# Run unit tests
Davide Pesavento042dfb32020-07-23 21:07:16 -040024./build/unit-tests