blob: b05ec4afa01e0bb4dd2e71389fe3ca0277753d4c [file] [log] [blame]
Alexander Afanasyev21034bf2014-09-02 18:31:53 -07001#!/usr/bin/env bash
2set -x
Shock Jiang2d8483c2014-10-30 10:15:37 -07003set -e
Alexander Afanasyev21034bf2014-09-02 18:31:53 -07004
Shock Jiangcde28712014-10-19 21:17:20 -07005# Prepare environment
6sudo rm -Rf ~/.ndn
7
8IS_OSX=$( python -c "print 'yes' if 'OSX' in '$NODE_LABELS'.strip().split(' ') else 'no'" )
9IS_LINUX=$( python -c "print 'yes' if 'Linux' in '$NODE_LABELS'.strip().split(' ') else 'no'" )
10
11if [ $IS_OSX = "yes" ]; then
12 security unlock-keychain -p "named-data"
13fi
14
15# Run unit tests
Alexander Afanasyev21034bf2014-09-02 18:31:53 -070016./build/unit-tests -l test_suite