spirosmastorakis | 15ebb1e | 2016-01-25 21:20:25 -0800 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | set -x |
| 3 | set -e |
| 4 | |
| 5 | JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) |
| 6 | source "$JDIR"/util.sh |
| 7 | |
| 8 | # Prepare environment |
| 9 | rm -Rf ~/.ndn |
| 10 | |
| 11 | if has OSX $NODE_LABELS; 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 | if [[ -n "$XUNIT" ]]; then |
| 20 | ./build/unit-tests --log_level=all -- --log_format2=XML --log_sink2=build/xunit-report.xml |
| 21 | else |
| 22 | ./build/unit-tests -l test_suite |
| 23 | fi |