blob: 4d3a8b399751bd7814532bed1a5a0c9334bba2fc [file] [log] [blame]
Alexander Afanasyev21034bf2014-09-02 18:31:53 -07001#!/usr/bin/env bash
2set -x
Shock Jiang2d8483c2014-10-30 10:15:37 -07003set -e
Alexander Afanasyev21034bf2014-09-02 18:31:53 -07004
Alexander Afanasyevc7c99002015-10-09 17:27:30 -07005JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
6source "$JDIR"/util.sh
7
Shock Jiangcde28712014-10-19 21:17:20 -07008# Prepare environment
Alexander Afanasyevc7c99002015-10-09 17:27:30 -07009rm -Rf ~/.ndn
Shock Jiangcde28712014-10-19 21:17:20 -070010
Alexander Afanasyevc7c99002015-10-09 17:27:30 -070011if has OSX $NODE_LABELS; then
12 echo "Unlocking OSX Keychain"
13 security unlock-keychain -p "named-data"
Shock Jiangcde28712014-10-19 21:17:20 -070014fi
15
16# Run unit tests
Alexander Afanasyev7495a7e2014-11-20 19:21:27 -080017if [[ -n "$XUNIT" ]]; then
18 ./build/unit-tests --log_format=XML --log_sink=build/xunit-report.xml --log_level=all --report_level=no
19else
20 ./build/unit-tests -l test_suite
21fi