|
Bugzilla – Full Text Bug Listing |
| Summary: | ./test.py performance tests do not exist | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Tom Henderson <tomh> |
| Component: | test framework | Assignee: | Mitch Watrous <watrous> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ns-bugs |
| Priority: | P5 | ||
| Version: | pre-release | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | Patch for bug 1284 | ||
|
Description
Tom Henderson
2011-10-21 17:32:26 UTC
All of this information is already in the system because I see that Craig has output this to XML:
<Test>
<Name>watchdog</Name>
<Result>PASS</Result>
<Time real="0.000" user="0.000" system="0.000"/>
<Test>
<Name>Check that we can keepalive a watchdog</Name>
<Result>PASS</Result>
<Time real="0.000" user="0.000" system="0.000"/>
</Test>
</Test>
so I guess it boils down to:
1) make ./test.py -c performance not crash by adding a performance test
2) decide whether to expose the timing information to the simple stdout output
Created attachment 1264 [details] Patch for bug 1284 I am attaching a patch that makes test.py's output include the elaspsed time in seconds like this: PASS (0.104): TestSuite traced-callback PASS (0.104): TestSuite type-traits PASS (0.095): TestSuite time PASS (0.102): TestSuite timer PASS (0.095): TestSuite simulator PASS (0.093): TestSuite sample PASS (0.092): TestSuite ptr PASS (0.167): TestSuite basic-random-number . . . Should performance tests be examples with main functions or should they be test suites? (In reply to comment #3) > Should performance tests be examples with main functions or should they be test > suites? Can they easily be both? i.e. can examples_to_run.py allow categorization of examples as either performance or not? All of the current categories of tests run by test.py are test suites of these types:
core_kinds = ["bvt", "core", "system", "unit"]
To be consistent and to make less work modifying all of the examples-to-run.py files, I am proposing to add a performance category:
core_kinds = ["bvt", "core", "system", "unit", "performance"]
That would allow this to work:
TestSuite ("many-random-variables-test-suite", PERFORMANCE)
(In reply to comment #5) > All of the current categories of tests run by test.py are test suites of these > types: > > core_kinds = ["bvt", "core", "system", "unit"] > > To be consistent and to make less work modifying all of the examples-to-run.py > files, I am proposing to add a performance category: > > core_kinds = ["bvt", "core", "system", "unit", "performance"] > > That would allow this to work: > > TestSuite ("many-random-variables-test-suite", PERFORMANCE) agreed Bug closed. ns-3-dev changeset: 7bfaded450be |