blob: c9b1e94544f1e1e8d0006f1288bdfca4b6b431ac [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
19./build/unit-tests -l test_suite