blob: ab404aea1044ba6a85871febe265efda81ff000a [file] [log] [blame]
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -04001#!/usr/bin/env bash
2set -x
3
4# Prepare environment
5rm -Rf ~/.ndnx ~/.ndn
6
7echo $NODE_LABELS
8IS_OSX=$( python -c "print 'yes' if 'OSX' in '$NODE_LABELS'.strip().split(' ') else 'no'" )
9
10if [[ $IS_OSX == "yes" ]]; then
11 echo "Unlocking OSX Keychain"
12 security unlock-keychain -p "named-data"
13fi
14
15ndnsec-keygen "/tmp/jenkins/$NODE_NAME" | ndnsec-install-cert -
16
17# Run unit tests
18./build/unit-tests -l test_suite