Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-stable
Commits
9bc5e686
Commit
9bc5e686
authored
Jul 02, 2001
by
Christopher Alfeld
Browse files
Yet more tests, a couple edge cases and a test of the set-ip commands.
parent
7e8453c2
Changes
9
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/frontend/set-ip/info
0 → 100644
View file @
9bc5e686
Sets up a basic topology and then tries out all the tb-set-ip commands.
testsuite/tests/frontend/set-ip/nsfile.ns
0 → 100644
View file @
9bc5e686
source tb_compat.tcl
set ns [new Simulator]
set node0 [$ns node]
set node1 [$ns node]
set node2 [$ns node]
set lan0 [$ns make-lan "$node0 $node1 $node2" 100Mb 0ms]
set node3 [$ns node]
set link0 [$ns duplex-link $node0 $node3 100Mb 0ms DropTail]
set node4 [$ns node]
$ns duplex-link $node4 $node0 100Mb 0ms DropTail
tb-set-ip $node4 1.0.4.1
tb-set-ip-interface $node0 $node4 1.0.0.1
tb-set-ip-link $node0 $link0 1.0.0.2
tb-set-ip-lan $node0 $lan0 1.0.0.3
$ns run
testsuite/tests/frontend/set-ip/test
0 → 100644
View file @
9bc5e686
tb_prerun("tbprerun",0);
tb_run("tbswapin",0);
tb_run("tbswapout",0);
tb_run("tbswapin",0);
tb_run("tbswapout",0);
tb_run("tbend",0);
testsuite/tests/frontend/singlenode/info
0 → 100644
View file @
9bc5e686
One node.
testsuite/tests/frontend/singlenode/nsfile.ns
0 → 100644
View file @
9bc5e686
set ns [new Simulator]
set node [$ns node]
$ns run
testsuite/tests/frontend/singlenode/test
0 → 100644
View file @
9bc5e686
tb_prerun("tbprerun",0);
tb_run("tbswapin",0);
tb_run("tbswapout",0);
tb_run("tbswapin",0);
tb_run("tbswapout",0);
tb_run("tbend",0);
testsuite/tests/frontend/trivial/info
0 → 100644
View file @
9bc5e686
Trivial test. Creates a simulator and runs it. No nodes, no lans,
nothing.
testsuite/tests/frontend/trivial/nsfile.ns
0 → 100644
View file @
9bc5e686
set ns [new Simulator]
$ns run
testsuite/tests/frontend/trivial/test
0 → 100644
View file @
9bc5e686
tb_prerun("tbprerun",0);
tb_run("tbswapin",0);
tb_run("tbswapout",0);
tb_run("tbswapin",0);
tb_run("tbswapout",0);
tb_run("tbend",0);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment