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