diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-11-08 01:04:04 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-11-11 00:28:42 +0900 |
commit | 15812686282c61120e07c7880be6d347c1a53059 (patch) | |
tree | 01e87d3438f11ab205768793131366bfc0112ef2 | |
parent | 6dacfb38bf6e5c32abe39cfdfe825d3702316855 (diff) |
move lib to parent directory
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
-rw-r--r-- | test/lib/__init__.py (renamed from test/scenario_test/lib/__init__.py) | 0 | ||||
-rw-r--r-- | test/lib/bagpipe.py (renamed from test/scenario_test/lib/bagpipe.py) | 0 | ||||
-rw-r--r-- | test/lib/base.py (renamed from test/scenario_test/lib/base.py) | 0 | ||||
-rw-r--r-- | test/lib/exabgp.py (renamed from test/scenario_test/lib/exabgp.py) | 0 | ||||
-rw-r--r-- | test/lib/gobgp.py (renamed from test/scenario_test/lib/gobgp.py) | 0 | ||||
-rw-r--r-- | test/lib/quagga.py (renamed from test/scenario_test/lib/quagga.py) | 0 | ||||
-rw-r--r-- | test/pip-requires.txt (renamed from test/scenario_test/pip-requires.txt) | 0 | ||||
-rw-r--r-- | test/scenario_test/README.md | 4 | ||||
-rwxr-xr-x | test/scenario_test/run_all_tests.sh | 30 |
9 files changed, 17 insertions, 17 deletions
diff --git a/test/scenario_test/lib/__init__.py b/test/lib/__init__.py index e69de29b..e69de29b 100644 --- a/test/scenario_test/lib/__init__.py +++ b/test/lib/__init__.py diff --git a/test/scenario_test/lib/bagpipe.py b/test/lib/bagpipe.py index c73b6472..c73b6472 100644 --- a/test/scenario_test/lib/bagpipe.py +++ b/test/lib/bagpipe.py diff --git a/test/scenario_test/lib/base.py b/test/lib/base.py index 139cecc4..139cecc4 100644 --- a/test/scenario_test/lib/base.py +++ b/test/lib/base.py diff --git a/test/scenario_test/lib/exabgp.py b/test/lib/exabgp.py index 39298c4c..39298c4c 100644 --- a/test/scenario_test/lib/exabgp.py +++ b/test/lib/exabgp.py diff --git a/test/scenario_test/lib/gobgp.py b/test/lib/gobgp.py index 042d6696..042d6696 100644 --- a/test/scenario_test/lib/gobgp.py +++ b/test/lib/gobgp.py diff --git a/test/scenario_test/lib/quagga.py b/test/lib/quagga.py index 17f855a9..17f855a9 100644 --- a/test/scenario_test/lib/quagga.py +++ b/test/lib/quagga.py diff --git a/test/scenario_test/pip-requires.txt b/test/pip-requires.txt index f8157aed..f8157aed 100644 --- a/test/scenario_test/pip-requires.txt +++ b/test/pip-requires.txt diff --git a/test/scenario_test/README.md b/test/scenario_test/README.md index 07a5e6b4..caca260c 100644 --- a/test/scenario_test/README.md +++ b/test/scenario_test/README.md @@ -68,7 +68,7 @@ Execute the following commands inside the VM to install the dependencies: $ mkdir -p $GOPATH/src/github.com/osrg $ cd $GOPATH/src/github.com/osrg $ git clone https://github.com/osrg/gobgp.git - $ cd ./gobgp/test/scenario_test + $ cd ./gobgp/test $ sudo pip install -r pip-requires.txt ``` <br> @@ -79,7 +79,7 @@ You also need this operation at every modification to the source code. ``` $ cd $GOPATH/src/github.com/osrg/gobgp -$ sudo fab -f ./test/scenario_test/lib/base.py make_gobgp_ctn --set tag=gobgp +$ sudo fab -f ./test/lib/base.py make_gobgp_ctn --set tag=gobgp ``` diff --git a/test/scenario_test/run_all_tests.sh b/test/scenario_test/run_all_tests.sh index 4c56cd2c..4cf584b7 100755 --- a/test/scenario_test/run_all_tests.sh +++ b/test/scenario_test/run_all_tests.sh @@ -32,47 +32,47 @@ cd $GOBGP/test/scenario_test PIDS=() # route server test -sudo -E python route_server_test.py --gobgp-image $GOBGP_IMAGE --test-prefix rs -s -x --with-xunit --xunit-file=${WS}/nosetest.xml & +sudo -E PYTHONPATH=$GOBGP/test python route_server_test.py --gobgp-image $GOBGP_IMAGE --test-prefix rs -s -x --with-xunit --xunit-file=${WS}/nosetest.xml & PIDS=("${PIDS[@]}" $!) # route server ipv4 ipv6 test -sudo -E python route_server_ipv4_v6_test.py --gobgp-image $GOBGP_IMAGE --test-prefix v6 -s -x --with-xunit --xunit-file=${WS}/nosetest_ip.xml & +sudo -E PYTHONPATH=$GOBGP/test python route_server_ipv4_v6_test.py --gobgp-image $GOBGP_IMAGE --test-prefix v6 -s -x --with-xunit --xunit-file=${WS}/nosetest_ip.xml & PIDS=("${PIDS[@]}" $!) # bgp router test -sudo -E python bgp_router_test.py --gobgp-image $GOBGP_IMAGE --test-prefix bgp -s -x --with-xunit --xunit-file=${WS}/nosetest_bgp.xml & +sudo -E PYTHONPATH=$GOBGP/test python bgp_router_test.py --gobgp-image $GOBGP_IMAGE --test-prefix bgp -s -x --with-xunit --xunit-file=${WS}/nosetest_bgp.xml & PIDS=("${PIDS[@]}" $!) # ibgp router test -sudo -E python ibgp_router_test.py --gobgp-image $GOBGP_IMAGE --test-prefix ibgp -s -x --with-xunit --xunit-file=${WS}/nosetest_ibgp.xml & +sudo -E PYTHONPATH=$GOBGP/test python ibgp_router_test.py --gobgp-image $GOBGP_IMAGE --test-prefix ibgp -s -x --with-xunit --xunit-file=${WS}/nosetest_ibgp.xml & PIDS=("${PIDS[@]}" $!) # evpn router test -sudo -E python evpn_test.py --gobgp-image $GOBGP_IMAGE --test-prefix evpn -s -x --with-xunit --xunit-file=${WS}/nosetest_evpn.xml & +sudo -E PYTHONPATH=$GOBGP/test python evpn_test.py --gobgp-image $GOBGP_IMAGE --test-prefix evpn -s -x --with-xunit --xunit-file=${WS}/nosetest_evpn.xml & PIDS=("${PIDS[@]}" $!) # flowspec test -sudo -E python flow_spec_test.py --gobgp-image $GOBGP_IMAGE --test-prefix flow -s -x --with-xunit --xunit-file=${WS}/nosetest_flow.xml & +sudo -E PYTHONPATH=$GOBGP/test python flow_spec_test.py --gobgp-image $GOBGP_IMAGE --test-prefix flow -s -x --with-xunit --xunit-file=${WS}/nosetest_flow.xml & PIDS=("${PIDS[@]}" $!) # route reflector test -sudo -E python route_reflector_test.py --gobgp-image $GOBGP_IMAGE --test-prefix rr -s -x --with-xunit --xunit-file=${WS}/nosetest_rr.xml & +sudo -E PYTHONPATH=$GOBGP/test python route_reflector_test.py --gobgp-image $GOBGP_IMAGE --test-prefix rr -s -x --with-xunit --xunit-file=${WS}/nosetest_rr.xml & PIDS=("${PIDS[@]}" $!) # zebra test -sudo -E python bgp_zebra_test.py --gobgp-image $GOBGP_IMAGE --test-prefix zebra -s -x --with-xunit --xunit-file=${WS}/nosetest_zebra.xml & +sudo -E PYTHONPATH=$GOBGP/test python bgp_zebra_test.py --gobgp-image $GOBGP_IMAGE --test-prefix zebra -s -x --with-xunit --xunit-file=${WS}/nosetest_zebra.xml & PIDS=("${PIDS[@]}" $!) # global policy test -sudo -E python global_policy_test.py --gobgp-image $GOBGP_IMAGE --test-prefix gpol -s -x --with-xunit --xunit-file=${WS}/nosetest_global_policy.xml & +sudo -E PYTHONPATH=$GOBGP/test python global_policy_test.py --gobgp-image $GOBGP_IMAGE --test-prefix gpol -s -x --with-xunit --xunit-file=${WS}/nosetest_global_policy.xml & PIDS=("${PIDS[@]}" $!) # route server malformed message test -NUM=$(sudo -E python route_server_malformed_test.py -s 2> /dev/null | awk '/invalid/{print $NF}') +NUM=$(sudo -E PYTHONPATH=$GOBGP/test python route_server_malformed_test.py -s 2> /dev/null | awk '/invalid/{print $NF}') PARALLEL_NUM=10 for (( i = 1; i < $(( $NUM + 1)); ++i )) do - sudo -E python route_server_malformed_test.py --gobgp-image $GOBGP_IMAGE --test-prefix mal$i --test-index $i -s -x --gobgp-log-level debug --with-xunit --xunit-file=${WS}/nosetest_malform${i}.xml & + sudo -E PYTHONPATH=$GOBGP/test python route_server_malformed_test.py --gobgp-image $GOBGP_IMAGE --test-prefix mal$i --test-index $i -s -x --gobgp-log-level debug --with-xunit --xunit-file=${WS}/nosetest_malform${i}.xml & PIDS=("${PIDS[@]}" $!) sleep 3 done @@ -86,14 +86,14 @@ do done # route server policy test -NUM=$(sudo -E python route_server_policy_test.py -s 2> /dev/null | awk '/invalid/{print $NF}') +NUM=$(sudo -E PYTHONPATH=$GOBGP/test python route_server_policy_test.py -s 2> /dev/null | awk '/invalid/{print $NF}') PARALLEL_NUM=25 for (( i = 0; i < $(( NUM / PARALLEL_NUM + 1)); ++i )) do PIDS=() for (( j = $((PARALLEL_NUM * $i + 1)); j < $((PARALLEL_NUM * ($i+1) + 1)); ++j)) do - sudo -E python route_server_policy_test.py --gobgp-image $GOBGP_IMAGE --test-prefix p$j --test-index $j -s -x --gobgp-log-level debug --with-xunit --xunit-file=${WS}/nosetest_policy${j}.xml & + sudo -E PYTHONPATH=$GOBGP/test python route_server_policy_test.py --gobgp-image $GOBGP_IMAGE --test-prefix p$j --test-index $j -s -x --gobgp-log-level debug --with-xunit --xunit-file=${WS}/nosetest_policy${j}.xml & PIDS=("${PIDS[@]}" $!) if [ $j -eq $NUM ]; then break @@ -112,14 +112,14 @@ do done # route server policy grpc test -NUM=$(sudo -E python route_server_policy_grpc_test.py -s 2> /dev/null | awk '/invalid/{print $NF}') +NUM=$(sudo -E PYTHONPATH=$GOBGP/test python route_server_policy_grpc_test.py -s 2> /dev/null | awk '/invalid/{print $NF}') PARALLEL_NUM=25 for (( i = 0; i < $(( NUM / PARALLEL_NUM + 1)); ++i )) do PIDS=() for (( j = $((PARALLEL_NUM * $i + 1)); j < $((PARALLEL_NUM * ($i+1) + 1)); ++j)) do - sudo -E python route_server_policy_grpc_test.py --gobgp-image $GOBGP_IMAGE --test-prefix pg$j --test-index $j -s -x --gobgp-log-level debug --with-xunit --xunit-file=${WS}/nosetest_policy_grpc${j}.xml & + sudo -E PYTHONPATH=$GOBGP/test python route_server_policy_grpc_test.py --gobgp-image $GOBGP_IMAGE --test-prefix pg$j --test-index $j -s -x --gobgp-log-level debug --with-xunit --xunit-file=${WS}/nosetest_policy_grpc${j}.xml & PIDS=("${PIDS[@]}" $!) if [ $j -eq $NUM ]; then break |