[Ns-bugs] [Bug 1360] New: can't pass command line arguments to examples run from test suite

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Wed Feb 8 21:23:16 PST 2012


https://www.nsnam.org/bugzilla/show_bug.cgi?id=1360

           Summary: can't pass command line arguments to examples run from
                    test suite
           Product: ns-3
           Version: pre-release
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: test framework
        AssignedTo: watrous at u.washington.edu
        ReportedBy: tomh at tomh.org
                CC: ns-bugs at isi.edu
   Estimated Hours: 0.0


from test.py

# A list of C++ examples to run in order to ensure that they remain
# buildable and runnable over time.  Each tuple in the list contains
#
#     (example_name, do_run, do_valgrind_run).
#
# See test.py for more information.
cpp_examples = [
    ("udp-echo", "True", "True"),
]

# A list of Python examples to run in order to ensure that they remain
# runnable over time.  Each tuple in the list contains
#
#     (example_name, do_run).

There is no way to specify to run a program with command-line arguments.  For
example, many of the IPv6-enabled examples that are coming for ns-3.14 require
the --useIpv6 switch.  So, perhaps need to change to something like:

#     (example_name, arguments, do_run, do_valgrind_run).
#
# See test.py for more information.
cpp_examples = [
    ("udp-echo", "", "True", "True"),
]

-- 
Configure bugmail: https://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Ns-bugs mailing list