Skip to content
GitLab
Menu
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
441a97eb
Commit
441a97eb
authored
Aug 03, 2007
by
Jonathon Duerig
Browse files
Added an option so that gather-dest waits for the send-command to finish.
parent
e1efdccc
Changes
1
Hide whitespace changes
Inline
Side-by-side
pelab/bw-bottleneck/gather-dest.pl
View file @
441a97eb
...
...
@@ -28,7 +28,13 @@ sub startProgram
{
my
$dest
=
$_
[
0
];
my
$command
=
$_
[
1
];
my
$string
=
"
/usr/testbed/bin/tevc -e
$project
/
$exp
now node-
$source
-to-node-
$dest
start
";
my
$wait
=
$_
[
2
];
my
$string
=
"
/usr/testbed/bin/tevc
";
if
(
$wait
!=
0
)
{
String
=
$string
.
'
-w
';
}
my
$string
=
$string
.
"
-e
$project
/
$exp
now node-
$source
-to-node-
$dest
start
";
if
(
$command
ne
"")
{
$string
=
$string
.
"
COMMAND='
"
.
$command
.
"
'
";
...
...
@@ -48,14 +54,12 @@ sub runTest
my
$dest1
=
$_
[
0
];
my
$dest2
=
$_
[
1
];
my
$i
=
0
;
startProgram
(
$dest1
,
"
sh /bw-bottleneck/run-server.sh
$serverPort
/bw-bottleneck dump-
$source
-
$dest1
-
$dest2
.dump
");
startProgram
(
$dest2
,
"
sh /bw-bottleneck/run-server.sh
$serverPort
/bw-bottleneck dump-
$source
-
$dest1
-
$dest2
.dump
");
startProgram
(
$dest1
,
"
sh /bw-bottleneck/run-server.sh
$serverPort
/bw-bottleneck dump-
$source
-
$dest1
-
$dest2
.dump
"
,
0
);
startProgram
(
$dest2
,
"
sh /bw-bottleneck/run-server.sh
$serverPort
/bw-bottleneck dump-
$source
-
$dest1
-
$dest2
.dump
"
,
0
);
sleep
(
2
);
startProgram
("
client
",
"
sh /bw-bottleneck/run-client.sh node-
$dest1
.
$exp
.
$project
.emulab.net node-
$dest2
.
$exp
.
$project
.emulab.net
$serverPort
/bw-bottleneck dump-
$source
-
$dest1
-
$dest2
.dump
$duration
");
sleep
(
$duration
);
startProgram
("
client
",
"
sh /bw-bottleneck/run-client.sh node-
$dest1
.
$exp
.
$project
.emulab.net node-
$dest2
.
$exp
.
$project
.emulab.net
$serverPort
/bw-bottleneck dump-
$source
-
$dest1
-
$dest2
.dump
$duration
",
1
);
stopProgram
(
$dest1
);
stopProgram
(
$dest2
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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