blob: bb1cf6343d10ffa76a62da53059672e90de46112 [file] [log] [blame]
spirosmastorakis15ebb1e2016-01-25 21:20:25 -08001#!/usr/bin/env bash
2set -x
3set -e
4
5JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
6source "$JDIR"/util.sh
7
8# Prepare environment
9rm -Rf ~/.ndn
10
11if has OSX $NODE_LABELS; 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
19if [[ -n "$XUNIT" ]]; then
20 ./build/unit-tests --log_level=all -- --log_format2=XML --log_sink2=build/xunit-report.xml
21else
22 ./build/unit-tests -l test_suite
23fi