Skip to content

Commit

Permalink
tests: add tcp test on one butterfly
Browse files Browse the repository at this point in the history
Signed-off-by: Thiery Ouattara <thiery.ouattara@outscale.com>
  • Loading branch information
outscale-toa committed Jul 11, 2016
1 parent 1ba26f3 commit d21df17
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/scenario_10/README.md
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)
21 changes: 21 additions & 0 deletions tests/scenario_10/test.sh
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

14 changes: 14 additions & 0 deletions tests/scenario_9/README.md
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, ...)
21 changes: 21 additions & 0 deletions tests/scenario_9/test.sh
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

0 comments on commit d21df17

Please sign in to comment.