|
Bugzilla – Full Text Bug Listing |
| Summary: | test.py -e option needs repair | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Tom Henderson <tomh> |
| Component: | test framework | Assignee: | Mitch Watrous <watrous> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ns-bugs, tomh |
| Priority: | P5 | ||
| Version: | pre-release | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Tom Henderson
2011-04-20 00:14:33 UTC
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
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 |