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-devel
Commits
bcabe386
Commit
bcabe386
authored
Feb 14, 2008
by
Kevin Atkinson
Browse files
Add pc2400c2 and pc2000w to parms list.
Add basic test of the event system and program agents.
parent
b1f8d5de
Changes
4
Hide whitespace changes
Inline
Side-by-side
image-test/tests/single/info
View file @
bcabe386
Simple single node experment to test basic things about the node currently:
tar
startcmd
program-agent and event system
Expands to 4 tests one for each pc:
single-pc600
...
...
image-test/tests/single/nsfile.ns
View file @
bcabe386
...
...
@@ -21,4 +21,15 @@ eval tb-set-node-tarfiles $node $tb
tb-set-node-startcmd $node @DATADIR@/startcmd.sh
set prog_simple [$node program-agent -command "touch prog_simple-ok" -dir "/tmp"]
set prog_env [$node program-agent -command "@DATADIR@/testenv.sh"]
set doit [$ns event-sequence {
$prog_simple run
$prog_env run
}]
$ns at 0.0 "$doit start"
$ns run
image-test/tests/single/parms
View file @
bcabe386
hardware: pc600 pc850 pc2000 pc3000 pc3000w
hardware: pc600 pc850 pc2000 pc3000 pc2400c2 pc3000w pc2400w
image-test/tests/single/tests.pl
View file @
bcabe386
...
...
@@ -10,5 +10,9 @@ test_rcmd 'tgz', ['tar'], 'node', 'test -e /usr/tgz/hw.txt';
test_rcmd
'
tar.gz
',
['
tar
'],
'
node
',
'
test -e /usr/tar.gz/hw.txt
';
test_rcmd
'
tar.bz2
',
['
tar
'],
'
node
',
'
test -e /usr/tar.bz2/hw.txt
';
test_rcmd
'
startcmd
',
[]
,
'
node
',
'
test -e /tmp/startcmd-ok
';
print
"
Sleeping 5 seconds...
\n
";
sleep
5
;
test_rcmd
'
prog_simple
',
[]
,
'
node
',
'
test -e /tmp/prog_simple-ok
';
test_rcmd
'
prog_env
',
[]
,
'
node
',
"
test -e /tmp/testenv-
$parms
{pid}-
$parms
{eid}
";
test_cmd
'
reboot
',
[]
,
"
node_reboot -w -e
$parms
{pid},
$parms
{eid}
";
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