Yuanzhi Gao | dd516fe | 2015-04-23 04:18:24 -0700 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Alexander Afanasyev | 49ecab2 | 2020-05-31 00:03:17 -0400 | [diff] [blame^] | 2 | set -e |
Yuanzhi Gao | dd516fe | 2015-04-23 04:18:24 -0700 | [diff] [blame] | 3 | |
| 4 | JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) |
| 5 | source "$JDIR"/util.sh |
| 6 | |
Alexander Afanasyev | 49ecab2 | 2020-05-31 00:03:17 -0400 | [diff] [blame^] | 7 | set -x |
Alexander Afanasyev | e0ab3f9 | 2016-10-20 13:29:39 -0700 | [diff] [blame] | 8 | |
Alexander Afanasyev | d6453cd | 2015-08-20 21:45:36 -0700 | [diff] [blame] | 9 | pushd ns-3 >/dev/null |
| 10 | |
Alexander Afanasyev | 49ecab2 | 2020-05-31 00:03:17 -0400 | [diff] [blame^] | 11 | export BOOST_TEST_BUILD_INFO=1 |
| 12 | export BOOST_TEST_COLOR_OUTPUT=1 |
| 13 | export BOOST_TEST_DETECT_MEMORY_LEAK=0 |
| 14 | export BOOST_TEST_LOGGER=HRF,test_suite,stdout:XML,all,build/xunit-log.xml |
Alexander Afanasyev | e0ab3f9 | 2016-10-20 13:29:39 -0700 | [diff] [blame] | 15 | |
Yuanzhi Gao | dd516fe | 2015-04-23 04:18:24 -0700 | [diff] [blame] | 16 | # Run unit tests |
Alexander Afanasyev | 49ecab2 | 2020-05-31 00:03:17 -0400 | [diff] [blame^] | 17 | ./waf --run "ndnSIM-unit-tests" |
Alexander Afanasyev | d6453cd | 2015-08-20 21:45:36 -0700 | [diff] [blame] | 18 | |
| 19 | popd >/dev/null |