blob: cd1d39f63c741053ba35e3e0bf2932c3b174ad38 [file] [log] [blame]
Yuanzhi Gaodd516fe2015-04-23 04:18:24 -07001#!/usr/bin/env bash
2set -x
3set -e
4
5JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
6source "$JDIR"/util.sh
7
Alexander Afanasyevd6453cd2015-08-20 21:45:36 -07008pushd ns-3 >/dev/null
9
Yuanzhi Gaodd516fe2015-04-23 04:18:24 -070010# Run unit tests
11if [[ -n "$XUNIT" ]]; then
Alexander Afanasyevd6453cd2015-08-20 21:45:36 -070012 ./waf --run "ndnSIM-unit-tests --log_format=XML --log_sink=build/xunit-report.xml --log_level=all --report_level=no"
Yuanzhi Gaodd516fe2015-04-23 04:18:24 -070013else
Alexander Afanasyevd6453cd2015-08-20 21:45:36 -070014 ./waf --run "ndnSIM-unit-tests -l test_suite"
Yuanzhi Gaodd516fe2015-04-23 04:18:24 -070015fi
Alexander Afanasyevd6453cd2015-08-20 21:45:36 -070016
17popd >/dev/null