Bug 1493

Summary: test.py --list should show the test type
Product: ns-3 Reporter: Peter Barnes <pdbarnes>
Component: test frameworkAssignee: Mitch Watrous <watrous>
Status: RESOLVED FIXED    
Severity: normal CC: ns-bugs
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   
Attachments: diff for test.py and src/core/model/test.cc
diff for test.py and src/core/model/test.cc

Description Peter Barnes 2012-08-24 17:25:46 UTC
Created attachment 1436 [details]
diff for test.py and src/core/model/test.cc

test.py --list and test-runner --list should show the test type.

Current output:
type-traits
watchdog
threaded-simulator
random-number-generators

Desired output:
unit         type-traits
unit         watchdog
unit         threaded-simulator
unit         random-number-generators

Patch attached.

The python piece looks like Fortran to me, but it's the best I could do.
Comment 1 Peter Barnes 2012-08-24 17:38:27 UTC
Created attachment 1437 [details]
diff for test.py and src/core/model/test.cc
Comment 2 Mitch Watrous 2012-09-12 18:01:44 UTC
Thanks for patch.

I made a few modifications so that now test.py outputs this:

    Test Type    Test Name
    ---------    ---------
    performance  many-uniform-random-variables-one-get-value-call
    performance  one-uniform-random-variable-many-get-value-calls
    system       buildings-pathloss-test
    system       buildings-shadowing-test
    system       devices-mesh-dot11s-regression
    system       devices-mesh-flame-regression
Comment 3 Mitch Watrous 2012-09-12 18:02:52 UTC
Bug closed.

ns-3-dev changeset:  f8fe606acbda