Move test scripts to tools/ 75/46875/6
authorEmma Foley <emma.l.foley@intel.com>
Tue, 7 Nov 2017 21:04:08 +0000 (21:04 +0000)
committerEmma Foley <emma.l.foley@intel.com>
Fri, 17 Nov 2017 17:19:17 +0000 (17:19 +0000)
Move the scripts that tox uses for running tests
to the tools/ directory:
* run_tests.sh -> tools/run_tests.sh
* tests/ci/cover.{sh,awk} -> tools/

JIRA: YARDSTICK-837
Change-Id: I817c9e5f58c06b45f1de3f369318f4bb24168677
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
tools/cover.awk [moved from tests/ci/cover.awk with 100% similarity]
tools/cover.sh [moved from tests/ci/cover.sh with 100% similarity]
tools/run_tests.sh [moved from run_tests.sh with 98% similarity]
tox.ini

similarity index 100%
rename from tests/ci/cover.awk
rename to tools/cover.awk
similarity index 100%
rename from tests/ci/cover.sh
rename to tools/cover.sh
similarity index 98%
rename from run_tests.sh
rename to tools/run_tests.sh
index dda7602..f253327 100755 (executable)
@@ -20,7 +20,7 @@ export PYTHONDONTWRITEBYTECODE=1
 PY_VER="py$( python --version | sed 's/[^[:digit:]]//g' | cut -c-2 )"
 export PY_VER
 
-COVER_DIR_NAME="./tests/ci/"
+COVER_DIR_NAME="./tools/"
 export COVER_DIR_NAME
 
 run_tests() {
diff --git a/tox.ini b/tox.ini
index ed2fd4a..9a82878 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -13,7 +13,7 @@ whitelist_externals = /bin/bash
 
 [testenv:py27]
 commands =
-  /bin/bash ./run_tests.sh --unit
+  /bin/bash {toxinidir}/tools/run_tests.sh --unit
 
 [testenv:py3]
 basepython = python3
@@ -32,11 +32,11 @@ commands =
 [testenv:coverage]
 basepython = python3
 commands =
-  /bin/bash ./run_tests.sh --coverage
+  /bin/bash {toxinidir}/tools/run_tests.sh --coverage
 
 [testenv:functional]
 commands =
-  /bin/bash ./run_tests.sh --functional
+  /bin/bash {toxinidir}/tools/run_tests.sh --functional
 
 [testenv:functional-py3]
 basepython = python3