blob: aa90b647445b8e9e05a4e3ebfbd68f1cd53a4d06 [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
18sudo killall nrd || true
19sudo killall nfd || true
20
21/usr/local/bin/nfd-start
22
23./build/unit-tests -l test_suite
24
25sudo killall nrd || true
26sudo killall nfd || true