blob: 4f8248b5d5f71e4a0657b2e43cbe65aa1e0b1540 [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
Shock Jiangcde28712014-10-19 21:17:20 -07005# Prepare environment
6sudo rm -Rf ~/.ndn
7
8IS_OSX=$( python -c "print 'yes' if 'OSX' in '$NODE_LABELS'.strip().split(' ') else 'no'" )
9IS_LINUX=$( python -c "print 'yes' if 'Linux' in '$NODE_LABELS'.strip().split(' ') else 'no'" )
10
Alexander Afanasyev7495a7e2014-11-20 19:21:27 -080011if [[ $IS_OSX == "yes" ]]; then
Shock Jiangcde28712014-10-19 21:17:20 -070012 security unlock-keychain -p "named-data"
13fi
14
15# Run unit tests
Alexander Afanasyev7495a7e2014-11-20 19:21:27 -080016if [[ -n "$XUNIT" ]]; then
17 ./build/unit-tests --log_format=XML --log_sink=build/xunit-report.xml --log_level=all --report_level=no
18else
19 ./build/unit-tests -l test_suite
20fi