diff options
author | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-11-11 21:36:27 +0900 |
---|---|---|
committer | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-11-13 14:17:51 +0900 |
commit | fe61508edb29c3344c8e33eaa84a7d97d954b434 (patch) | |
tree | 07d9c92c9982b8c5926f838e9d6534b2b4d55778 | |
parent | 10a079cf6499f4a1bdb0e46a352d7075d8335106 (diff) |
scenario_test: doc update
-rw-r--r-- | test/scenario_test/README.md | 46 |
1 files changed, 37 insertions, 9 deletions
diff --git a/test/scenario_test/README.md b/test/scenario_test/README.md index caca260c..a68f7598 100644 --- a/test/scenario_test/README.md +++ b/test/scenario_test/README.md @@ -84,17 +84,45 @@ $ sudo fab -f ./test/lib/base.py make_gobgp_ctn --set tag=gobgp ## <a name="section3"> Run test -You can run all scenario tests with run_all_tests.sh. -If all tests passed, you can see "all tests passed successfully" at the end of the test. -```shell -$ cd $GOPATH/src/github.com/osrg/gobgp/test/scenario_test -$ ./run_all_tests.sh -... -OK -all tests passed successfully -``` +1. Run all test + + You can run all scenario tests with run_all_tests.sh. + If all tests passed, you can see "all tests passed successfully" at the end of the test. + + ```shell + $ cd $GOPATH/src/github.com/osrg/gobgp/test/scenario_test + $ ./run_all_tests.sh + ... + OK + all tests passed successfully + ``` + <br> +2. Run each test + + Gobgp have a scenario test shown in the following. + You can run scenario tests individually with each test file. + + ```shell + $ cd $GOPATH/src/github.com/osrg/gobgp/test/scenario_test + $ sudo -E PYTHONPATH=$GOBGP/test python <scenario test name>.py + ... + OK + ``` + what kind of scenaio tests: + - bgp_router_test + - bgp_zebra_test + - evpn_test + - flow_spec_test + - global_policy_test + - ibgp_router_test + - route_reflector_test + - route_server_ipv4_v6_test + - route_server_malformed_test + - route_server_policy_grpc_test + - route_server_policy_test + - route_server_test ## <a name="section4"> Clean up A lot of containers are created during the test. |