rename test suite script 87/14687/3
authorMatthewLi <matthew.lijun@huawei.com>
Thu, 26 May 2016 06:02:39 +0000 (02:02 -0400)
committerMatthewLi <matthew.lijun@huawei.com>
Thu, 2 Jun 2016 02:04:20 +0000 (22:04 -0400)
JIRA: YARDSTICK-279

Change-Id: I70accc9a79b59447c907057c386f14f6a4f38346
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
docs/userguide/03-installation.rst
run_tests.sh
tests/ci/docker/yardstick-ci/Dockerfile
tests/ci/docker/yardstick-ci/exec_tests.sh [moved from tests/ci/docker/yardstick-ci/run_tests.sh with 95% similarity]

index 1a74955..a3144ef 100644 (file)
@@ -171,7 +171,7 @@ Run the Docker image:
     -e "INSTALLER_TYPE=${INSTALLER_TYPE}" \
     -e "INSTALLER_IP=${INSTALLER_IP}" \
     opnfv/yardstick \
-    run_tests.sh ${YARDSTICK_DB_BACKEND} ${YARDSTICK_SUITE_NAME}
+    exec_tests.sh ${YARDSTICK_DB_BACKEND} ${YARDSTICK_SUITE_NAME}
 
 Where ``${INSTALLER_TYPE}`` can be apex, compass, fuel or joid, ``${INSTALLER_IP}``
 is the installer master node IP address (i.e. 10.20.0.2 is default for fuel). ``${YARDSTICK_DB_BACKEND}``
@@ -180,6 +180,11 @@ For more details, please refer to the Jenkins job defined in Releng project, lab
 and sshkey are required. See the link
 https://git.opnfv.org/cgit/releng/tree/jjb/yardstick/yardstick-ci-jobs.yml.
 
+Note: exec_tests.sh is used for executing test suite here, furthermore, if someone wants to execute the
+test suite manually, it can be used as long as the parameters are configured correct. Another script
+called run_tests.sh is used for unittest in Jenkins verify job, in local manaul environment,
+it is recommended to run before test suite execuation.
+
 Basic steps performed by the **Yardstick-CI** container:
 
 1. clone yardstick and releng repos
index 82c8251..972f6a2 100755 (executable)
@@ -9,7 +9,7 @@
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
 
-# Run yardstick's test suite(s)
+# Run yardstick's flake8, unit, coverage, functional test
 
 getopts ":f" FILE_OPTION
 
index a2164a8..cc23073 100644 (file)
@@ -49,5 +49,4 @@ RUN cd ${YARDSTICK_REPO_DIR} && pip install .
 
 ADD http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img /home/opnfv/images/
 
-COPY ./run_tests.sh /usr/local/bin/
-
+COPY ./exec_tests.sh /usr/local/bin/
similarity index 95%
rename from tests/ci/docker/yardstick-ci/run_tests.sh
rename to tests/ci/docker/yardstick-ci/exec_tests.sh
index 680a329..9aee240 100755 (executable)
@@ -11,7 +11,7 @@
 set -e
 
 : ${YARDSTICK_REPO:='https://gerrit.opnfv.org/gerrit/yardstick'}
-: ${YARDSTICK_REPO_DIR:='/home/opnfv/yardstick'}
+: ${YARDSTICK_REPO_DIR:='/home/opnfv/repos/yardstick'}
 : ${YARDSTICK_BRANCH:='master'} # branch, tag, sha1 or refspec
 
 : ${RELENG_REPO:='https://gerrit.opnfv.org/gerrit/releng'}
@@ -51,5 +51,5 @@ git_checkout $YARDSTICK_BRANCH $YARDSTICK_REPO
 # setup the environment
 source $YARDSTICK_REPO_DIR/tests/ci/prepare_env.sh
 
-# run tests
+# execute tests
 $YARDSTICK_REPO_DIR/tests/ci/yardstick-verify $@