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