blob: 80345e3874be7b293c2a5a7b5ebe6365399b53b6 [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
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -04005JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
6source "$JDIR"/util.sh
7
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -04008# Prepare environment
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -04009rm -Rf ~/.ndn
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -040010
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -040011if has OSX $NODE_LABELS; then
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -040012 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
Alexander Afanasyev9fae3db2015-12-07 18:04:32 -080020 ./build/unit-tests --log_format2=XML --log_sink2=build/xunit-report.xml --log_level=all
Alexander Afanasyev8b881602014-11-20 19:58:07 -080021else
22 ./build/unit-tests -l test_suite
23fi