summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/README.md
blob: a0a78a9bec137fa31d48b81522b6283d7d016370 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Route Server test
========================

Preparation
-----------
Set up Ubuntu 14.04 Server Edition Virtual Machine environment.

and Please prepare in  go language execution environment.

Setup
-----
Open a terminal and execute the following commands:

We will install the python library required to run the test program.
```
% sudo su -
# apt-get install python-pip
# apt-get install python-dev
# git clone https://github.com/osrg/gobgp.git
# cd ./gobgp
# go get -v
# cd ./test/scenario_test
# pip install -r pip-requires.txt
```


We will install the package, such as Docker required to perform the test.
```
# fab -f docker_control.py install_docker_and_tools

```

Please following package is sure that it is installed.

 ・docker

 ・bridge-utils

 ・pipework


Start
-----
Please run the command nosetests.
```
# nosetests -v route_server_test.py

```

if you run the test of malformed when execute this command.
```
# nosetests -v route_server_malformed_test.py

```

After the end of the test, gobgp is normally if OK is displayed.