blob: 3bc96ceab12239ab4020deb28022314b723c412d [file] [log] [blame]
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -04001#!/usr/bin/env bash
2set -x
Alexander Afanasyev33ce4c32014-10-24 11:19:45 -07003set -e
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -04004
5# Prepare environment
6rm -Rf ~/.ndnx ~/.ndn
7
8echo $NODE_LABELS
9IS_OSX=$( python -c "print 'yes' if 'OSX' in '$NODE_LABELS'.strip().split(' ') else 'no'" )
10
11if [[ $IS_OSX == "yes" ]]; then
12 echo "Unlocking OSX Keychain"
13 security unlock-keychain -p "named-data"
14fi
15
16ndnsec-keygen "/tmp/jenkins/$NODE_NAME" | ndnsec-install-cert -
17
18# Run unit tests
Alexander Afanasyev8b881602014-11-20 19:58:07 -080019if [[ -n "$XUNIT" ]]; then
20 ./build/unit-tests --log_format=XML --log_sink=build/xunit-report.xml --log_level=all --report_level=no
21else
22 ./build/unit-tests -l test_suite
23fi