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 |
Alexander Afanasyev | 8b88160 | 2014-11-20 19:58:07 -0800 | [diff] [blame^] | 19 | if [[ -n "$XUNIT" ]]; then |
| 20 | ./build/unit-tests --log_format=XML --log_sink=build/xunit-report.xml --log_level=all --report_level=no |
| 21 | else |
| 22 | ./build/unit-tests -l test_suite |
| 23 | fi |