Wentao Shang | a8f3c40 | 2014-10-30 14:03:27 -0700 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | set -x |
| 3 | set -e |
| 4 | |
| 5 | # Run tests |
| 6 | sudo rm -Rf ~/.ndn |
| 7 | mkdir ~/.ndn |
| 8 | |
| 9 | sudo cp /usr/local/etc/ndn/nfd.conf.sample /usr/local/etc/ndn/nfd.conf |
| 10 | |
| 11 | IS_OSX=$( python -c "print 'yes' if 'OSX' in '$NODE_LABELS'.strip().split(' ') else 'no'" ) |
| 12 | IS_LINUX=$( python -c "print 'yes' if 'Linux' in '$NODE_LABELS'.strip().split(' ') else 'no'" ) |
| 13 | |
| 14 | if [ $IS_OSX = "yes" ]; then |
| 15 | security unlock-keychain -p "named-data" |
| 16 | fi |
| 17 | |
Wentao Shang | a8f3c40 | 2014-10-30 14:03:27 -0700 | [diff] [blame] | 18 | ./build/unit-tests -l test_suite |