Bugzilla – Bug 1206
Test libraries are built but test suites are not being run in test.py
Last modified: 2011-07-05 06:09:41 UTC
It looks like the changes for this changeset: Bug 1174 - Ns-3 does not generate static libraries made it so that the test libraries get built but the test suites don't run from test.py, only the examples do. This might mean the test suites are no longer being linked properly to the test runner. You can see what I mean by doing the following: 1. Get the latest version of ns-3-dev. 2. ./build.py --enable-examples --enable-tests 3. This previous step will fail. 4. ./waf --apiscan=wifi 5. ./waf build 6. ./test.py When test.py runs, only the examples will be run: 75 of 75 tests passed (75 passed, 0 skipped, 0 failed, 0 crashed, 0 valgrind errors)
Actually build.py doesn't work for me for different reasons: waf: error: no such option: --with-regression-traces Traceback (most recent call last): File "./build.py", line 140, in <module> sys.exit(main(sys.argv)) File "./build.py", line 131, in main build_ns3(config, build_examples, build_tests) File "./build.py", line 61, in build_ns3 run_command(cmd) File "/home/gjc/projects/ns/ns-3-allinone/util.py", line 24, in run_command raise CommandError("Command %r exited with code %i" % (argv, retval)) util.CommandError: Command ['python', 'waf', 'configure', '--enable-examples', '--enable-tests', '--with-regression-traces', u'../ns-3-dev-ref-traces'] exited with code 2 What am I missing?
Anyway, build.py doesn't work for me, but I managed to fix: changeset: 7332:ac13a12e9dd4 tag: tip user: Gustavo J. A. M. Carneiro <gjc@inescporto.pt> date: Tue Jul 05 11:05:53 2011 +0100 summary: Bug 1206 - Test libraries are built but test suites are not being run in test.py