blob: 4f8248b5d5f71e4a0657b2e43cbe65aa1e0b1540 [file] [log] [blame]
#!/usr/bin/env bash
set -x
set -e
# Prepare environment
sudo rm -Rf ~/.ndn
IS_OSX=$( python -c "print 'yes' if 'OSX' in '$NODE_LABELS'.strip().split(' ') else 'no'" )
IS_LINUX=$( python -c "print 'yes' if 'Linux' in '$NODE_LABELS'.strip().split(' ') else 'no'" )
if [[ $IS_OSX == "yes" ]]; then
security unlock-keychain -p "named-data"
fi
# Run unit tests
if [[ -n "$XUNIT" ]]; then
./build/unit-tests --log_format=XML --log_sink=build/xunit-report.xml --log_level=all --report_level=no
else
./build/unit-tests -l test_suite
fi