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