-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Matthias Gatto <[email protected]>
- Loading branch information
1 parent
1186af6
commit 641438c
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
#connect 2 taps together on the same butterfly, and test connection | ||
|
||
# | ||
# / ---> [ Bench snd ] | ||
# [Butterfly 0] | ||
# \ ---> [ Bench Rcv ] | ||
|
||
BUTTERFLY_BUILD_ROOT=$1 | ||
BUTTERFLY_SRC_ROOT=$(cd "$(dirname $0)/../.." && pwd) | ||
source $BUTTERFLY_SRC_ROOT/tests/functions.sh | ||
|
||
network_connect 0 1 | ||
|
||
server_start 0 | ||
sg_rule_add_icmp 0 sg-1 | ||
|
||
bench_lat_rcv_add 0 2 42 sg-1 | ||
bench_lat_snd_add 0 1 2 42 sg-1 | ||
|
||
sleep 0.5 | ||
|
||
network_disconnect 0 1 | ||
|
||
server_stop 0 | ||
|
||
return_result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
#connect 2 taps together on 2 not same butterfly, and test connection | ||
|
||
# [ bench snd ] <--> [Butterfly 0] <--> [ Bench Rcv ] | ||
|
||
BUTTERFLY_BUILD_ROOT=$1 | ||
BUTTERFLY_SRC_ROOT=$(cd "$(dirname $0)/../.." && pwd) | ||
source $BUTTERFLY_SRC_ROOT/tests/functions.sh | ||
|
||
network_connect 0 1 | ||
|
||
server_start 0 | ||
server_start 1 | ||
sg_rule_add_icmp 0 sg-1 | ||
sg_rule_add_icmp 1 sg-1 | ||
|
||
bench_lat_rcv_add 1 2 42 sg-1 | ||
bench_lat_snd_add 0 1 2 42 sg-1 | ||
|
||
sleep 1 | ||
|
||
network_disconnect 0 1 | ||
|
||
server_stop 0 | ||
server_stop 1 | ||
|
||
return_result |