blob: c092071abcfc7aa22424f245ac2bfe2866177286 [file] [log] [blame]
Varun Patila24bd3e2020-11-24 10:08:33 +05301#!/usr/bin/env bash
2set -ex
3
4# Prepare environment
5rm -rf ~/.ndn
6
7if has OSX $NODE_LABELS; then
8 security unlock-keychain -p named-data
9fi
10
11ndnsec-keygen "/tmp/jenkins/$NODE_NAME" | ndnsec-install-cert -
12
13# https://github.com/google/sanitizers/wiki/AddressSanitizerFlags
14ASAN_OPTIONS="color=always"
15ASAN_OPTIONS+=":check_initialization_order=1"
16ASAN_OPTIONS+=":detect_stack_use_after_return=1"
17ASAN_OPTIONS+=":strict_init_order=1"
18ASAN_OPTIONS+=":strict_string_checks=1"
19ASAN_OPTIONS+=":detect_invalid_pointer_pairs=2"
20ASAN_OPTIONS+=":detect_container_overflow=0"
21ASAN_OPTIONS+=":detect_leaks=0"
22ASAN_OPTIONS+=":strip_path_prefix=${PWD}/"
23export ASAN_OPTIONS
24
25export BOOST_TEST_BUILD_INFO=1
26export BOOST_TEST_COLOR_OUTPUT=1
27export BOOST_TEST_DETECT_MEMORY_LEAK=0
28export BOOST_TEST_LOGGER=HRF,test_suite,stdout:XML,all,build/xunit-log.xml
29
30# Run unit tests
31./build/unit-tests