12.07.2015 Views

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

... ...}$<strong>ns</strong>_ <strong>at</strong> $opt(stop).1 "$self finish"Test/dsdv i<strong>ns</strong>tproc run {} {$self i<strong>ns</strong>tvar <strong>ns</strong>_puts "Starting Simul<strong>at</strong>ion..."$<strong>ns</strong>_ run}All the tests are started by the function runtest in the <strong>ns</strong> script.proc runtest {arg} {global quietset quiet 0}set b [llength $arg]if {$b == 1} {set test $arg} elseif {$b == 2} {set test [lindex $arg 0]if {[lindex $arg 1] == "QUIET"} {set quiet 1}} else {usage}set t [new Test/$test]$t runglobal argv arg0runtest $argvWhen you run the tests, trace files are gener<strong>at</strong>ed <strong>and</strong> saved to the output subdirectory. <strong>The</strong>se trace files are compared to thethose correct trace coming with the test suite. If the compar<strong>at</strong>ion shows difference, the test is failed.246

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!