summaryrefslogtreecommitdiffstats
path: root/run_tests.sh
diff options
context:
space:
mode:
authorRex Lee <limingjiang@huawei.com>2017-02-14 06:42:53 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-02-14 06:42:53 +0000
commit43482092ebb75d9f3c5659a2133b99aeefc017d9 (patch)
treeb422ac1127ce932fdb9000197f13cf50e2c51fa7 /run_tests.sh
parent03d764791eeb708ade47b5e2196b18ce04552dd1 (diff)
parent35c03f69182e2b6e663c0fb2c2dc96a11bd296f2 (diff)
Merge "remove trex install from run_tests.sh."
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-xrun_tests.sh23
1 files changed, 0 insertions, 23 deletions
diff --git a/run_tests.sh b/run_tests.sh
index 1f985b6c1..2519d94f6 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -33,32 +33,9 @@ run_flake8() {
fi
}
-get_external_libs() {
- cd $(dirname ${BASH_SOURCE[0]})
- TREX_DOWNLOAD="https://trex-tgn.cisco.com/trex/release/v2.05.tar.gz"
- TREX_DIR=$PWD/trex/scripts
- if [ ! -d "$TREX_DIR" ]; then
- rm -rf ${TREX_DOWNLOAD##*/}
- if [ ! -e ${TREX_DOWNLOAD##*/} ] ; then
- wget -nv $TREX_DOWNLOAD
- fi
- tar xf ${TREX_DOWNLOAD##*/}
- pushd .
- rm -rf trex && mkdir -p trex
- mv v2.05 trex/scripts
- rm -rf v2.05.tar.gz
- touch "$PWD/trex/scripts/automation/trex_control_plane/stl/__init__.py"
- popd
- fi
- echo "Done."
- export PYTHONPATH=$PYTHONPATH:"$PWD/trex/scripts/automation/trex_control_plane"
- export PYTHONPATH=$PYTHONPATH:"$PWD/trex/scripts/automation/trex_control_plane/stl"
- echo $PYTHONPATH
-}
run_tests() {
echo "Get external libs needed for unit test"
- get_external_libs
echo "Running unittest ... "
if [ $FILE_OPTION == "f" ]; then