forked from outscale/butterfly
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add tcp test on one butterfly
Signed-off-by: Thiery Ouattara <thiery.ouattara@outscale.com>
- Loading branch information
1 parent
1ba26f3
commit d21df17
Showing
4 changed files
with
69 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,13 @@ | ||
# Description | ||
|
||
``` | ||
+-----------+ | ||
| |-----------[ VM 1 ] (vni 42) | ||
| Butterfly | | ||
| |-----------[ VM 2 ] (vni 1337) | ||
+-----------+ | ||
``` | ||
|
||
This scenario just connects two virtual machines on the same butterfly | ||
on the different network (vni) and make a bunch of network tests (tcp) |
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,21 @@ | ||
#!/bin/bash | ||
|
||
BUTTERFLY_SRC_ROOT=$1 | ||
BUTTERFLY_BUILD_ROOT=$2 | ||
|
||
source $BUTTERFLY_SRC_ROOT/tests/functions.sh | ||
|
||
network_connect 0 1 | ||
server_start 0 | ||
add_nic_full_open 0 1 42 | ||
add_nic_full_open 0 2 1337 | ||
qemu_start 1 | ||
qemu_start 2 | ||
ssh_no_tcp 1 2 2456 | ||
ssh_no_tcp 2 1 2435 | ||
qemu_stop 1 | ||
qemu_stop 2 | ||
server_stop 0 | ||
network_disconnect 0 1 | ||
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,14 @@ | ||
# Description | ||
|
||
``` | ||
+-----------+ | ||
| |-----------[ VM 1 ] (vni 42) | ||
| Butterfly | | ||
| |-----------[ VM 2 ] (vni 42) | ||
+-----------+ | ||
``` | ||
|
||
This scenario just connects two virtual machines on the same butterfly | ||
on the same network (vni) and make a bunch of network tests (sent tcp | ||
message, ...) |
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,21 @@ | ||
#!/bin/bash | ||
|
||
BUTTERFLY_SRC_ROOT=$1 | ||
BUTTERFLY_BUILD_ROOT=$2 | ||
|
||
source $BUTTERFLY_SRC_ROOT/tests/functions.sh | ||
|
||
network_connect 0 1 | ||
server_start 0 | ||
add_nic_full_open 0 1 42 | ||
add_nic_full_open 0 2 42 | ||
qemu_start 1 | ||
qemu_start 2 | ||
ssh_tcp 1 2 4045 | ||
ssh_tcp 2 1 1445 | ||
qemu_stop 1 | ||
qemu_stop 2 | ||
server_stop 0 | ||
network_disconnect 0 1 | ||
return_result | ||
|