blob: 455c8f700d4605383ba4b892d2fcf27f31e0c05a [file] [log] [blame]
Alexander Afanasyev21034bf2014-09-02 18:31:53 -07001#!/usr/bin/env bash
Davide Pesaventofee7ee32020-04-15 02:45:07 -04002set -ex
Alexander Afanasyev984ca9d2016-12-19 13:09:14 -08003
Shock Jiangcde28712014-10-19 21:17:20 -07004# Prepare environment
Davide Pesaventofee7ee32020-04-15 02:45:07 -04005rm -rf ~/.ndn
Davide Pesavento904f3702021-06-04 13:47:43 -04006ndnsec key-gen "/tmp/jenkins/$NODE_NAME" | ndnsec cert-install -
Alexander Afanasyev984ca9d2016-12-19 13:09:14 -08007
Davide Pesaventofee7ee32020-04-15 02:45:07 -04008# https://github.com/google/sanitizers/wiki/AddressSanitizerFlags
Alexander Afanasyev984ca9d2016-12-19 13:09:14 -08009ASAN_OPTIONS="color=always"
Davide Pesaventofee7ee32020-04-15 02:45:07 -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"
Alexander Afanasyev984ca9d2016-12-19 13:09:14 -080015ASAN_OPTIONS+=":strip_path_prefix=${PWD}/"
16export ASAN_OPTIONS
17
Davide Pesavento4a315b32018-11-24 14:32:19 -050018export BOOST_TEST_BUILD_INFO=1
19export BOOST_TEST_COLOR_OUTPUT=1
Davide Pesaventobdd88c12020-11-26 00:35:08 -050020export BOOST_TEST_DETECT_MEMORY_LEAK=0
21export BOOST_TEST_LOGGER=HRF,test_suite,stdout:XML,all,build/xunit-log.xml
Davide Pesavento4a315b32018-11-24 14:32:19 -050022
23# Run unit tests
Davide Pesaventobdd88c12020-11-26 00:35:08 -050024./build/unit-tests