diff options
author | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-02-03 11:39:52 +0900 |
---|---|---|
committer | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-02-03 11:39:52 +0900 |
commit | b28970c1664ce295befe9caf9f7d07d95f1496cb (patch) | |
tree | ba54e5c8c8e5eb1113b0765892da89a2b8eb58b7 /test | |
parent | d57e6bec0a6dc8eb19cbf912e3bc93a3331df1ce (diff) |
scenario_test: update the README for add scenario_test
Diffstat (limited to 'test')
-rw-r--r-- | test/scenario_test/README.md | 40 |
1 files changed, 29 insertions, 11 deletions
diff --git a/test/scenario_test/README.md b/test/scenario_test/README.md index 2ae7a9ff..0c30c7d0 100644 --- a/test/scenario_test/README.md +++ b/test/scenario_test/README.md @@ -8,7 +8,7 @@ and install golang environment inside the VM. Setup ----- -Execute the following commands on a shell inside the VM: +Execute the following commands on a python inside the VM: install the python packages and libraries required to run the test program and clone gobgp repository. ``` @@ -31,34 +31,52 @@ This step installs other packages such as Docker container and generates some he Please make sure following packages are installed properly inside the VM. - ・docker - - ・bridge-utils - - ・pipework + * docker + * bridge-utils + * pipework Start ----- Please run the test script as root. -route_server_test.py is scenario test script. + * route_server_test.py is scenario test script. ``` # python route_server_test.py -v [ --use-local ] [--go-path=<path>] ``` -If you want to do malformed packet test, please run route_server_malformed_test.py + * If you want to do malformed packet test, please run route_server_malformed_test.py +``` +# python route_server_malformed_test.py -v [ --use-local ] [ --go-path=<path> ] + ``` -# python route_server_malformed_test.py -v [ --use-local ] [--go-path=<path>] +- If you want to do scenario test in ipv4 and ipv6 mixed environment, please run route_server_ipv4_v6_test.py ``` +# python route_server_ipv4_v6_test.py -v [ --use-local ] [ --go-path=<path> ] + +``` + After the test, test results will be shown. -Notes +Options ----- use [ --use-local ] option when execute gobgp program of local system. - use [ --go-path ] option when not root and use sudo command.
\ No newline at end of file + use [ --go-path ] option when not root and use sudo command. + + +Examples +----- + How to use [ --use-local ] option +``` +# python route_server_test.py -v --use-local +``` + + How to use [ --go-path=<path> ] option +``` +$ sudo -E python route_server_test.py -v --go-path=/usr/local/go/bin +```
\ No newline at end of file |