Bugzilla – Bug 1108
test.py -e option needs repair
Last modified: 2011-04-26 16:18:10 EDT
./test.py -e results in CRASH output
Unlike test suites, you have to include the path when you run an example like this: ./test.py -e tutorial/first ./test.py -e ../src/mobility/examples/mobility-example Right now, the path to the example is relative starting at build/debug/examples I propose making the path be relative starting at build/debug so that these would work: ./test.py -e examples/tutorial/first ./test.py -e src/mobility/examples/mobility-example
(In reply to comment #1) > Unlike test suites, you have to include the path when you run an example like > this: > > ./test.py -e tutorial/first > ./test.py -e ../src/mobility/examples/mobility-example > > Right now, the path to the example is relative starting at > > build/debug/examples > > I propose making the path be relative starting at > > build/debug > > so that these would work: > > ./test.py -e examples/tutorial/first > ./test.py -e src/mobility/examples/mobility-example I agree it is more intuitive, but we may want to provide a new option (-p?) that defaults to build/debug but would allow to override where to search, such as opt/ or dbg/ build directories in the proposed bake system.
I made the path be relative starting at build/debug so that these would work: ./test.py -e examples/tutorial/first ./test.py -e src/mobility/examples/mobility-example I also added a new option (--buildpath) to test.py that allows you to specify the directory where ns-3 was built: ./test.py --buildpath=/home/watrous/repository/ns-3-allinone/ns-3-dev/build/debug --example=examples/wireless/wifi-simple-adhoc
I made the path be relative starting at build/debug so that these would work: ./test.py -e examples/tutorial/first ./test.py -e src/mobility/examples/mobility-example I also added a new option (buildpath) to test.py that allows you to specify the directory where ns-3 was built: ./test.py --buildpath=/home/watrous/repository/ns-3-allinone/ns-3-dev/build/debug --example=examples/wireless/wifi-simple-adhoc
Changeset: 18ae03e01c6f