unit ci docker test entrance for different test suites 75/12175/1
authorMatthewLi <matthew.lijun@huawei.com>
Tue, 12 Apr 2016 02:27:16 +0000 (22:27 -0400)
committerMatthewLi <matthew.lijun@huawei.com>
Tue, 12 Apr 2016 02:27:16 +0000 (22:27 -0400)
JIRA: BOTTLENECK-48

Change-Id: I317c374166c51612be2aaa934738c9c50068c6b1
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
ci/docker/Dockerfile
ci/docker_run.sh [moved from ci/rubbos_docker_run.sh with 93% similarity]
ci/run.sh

index bb6d64e..217c136 100644 (file)
@@ -8,7 +8,6 @@
 ##############################################################################
 
 FROM ubuntu:14.04
-MAINTAINER Qi Liang <liangqi1@huawei.com>
 
 LABEL image=opnfv/bottlenecks
 
@@ -19,6 +18,7 @@ ENV REPOS_DIR /home/opnfv
 ENV BOTTLENECKS_REPO_DIR ${REPOS_DIR}/bottlenecks
 ENV RELENG_REPO_DIR ${REPOS_DIR}/releng
 
+#new test suite required packages can be added here
 RUN apt-get update && apt-get install -y \
     curl \
     wget \
similarity index 93%
rename from ci/rubbos_docker_run.sh
rename to ci/docker_run.sh
index 2eb3e16..89300d4 100755 (executable)
@@ -22,12 +22,12 @@ fi
 
 envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NET=${EXTERNAL_NETWORK} -e BOTTLENECKS_BRANCH=${BOTTLENECKS_BRANCH} -e GERRIT_REFSPEC_DEBUG=${GERRIT_REFSPEC_DEBUG} -e BOTTLENECKS_DB_TARGET=${BOTTLENECKS_DB_TARGET} -e PACKAGE_URL=${PACKAGE_URL}"
 volumes="-v ${BOTTLENECKS_TOP_DIR}:${BOTTLENECKS_TOP_DIR}"
-run_rubbos_testsuite=${BOTTLENECKS_TOP_DIR}/run_tests.sh -s rubbos
+run_testsuite=${BOTTLENECKS_TOP_DIR}/run_tests.sh -s ${SUITE_NAME}
 
 echo ${envs} ${ops} ${volumes}
 
 # Run docker
-cmd="sudo docker run ${opts} ${envs} ${volumes} opnfv/bottlenecks ${run_rubbos_testsuite}"
+cmd="sudo docker run ${opts} ${envs} ${volumes} opnfv/bottlenecks ${run_testsuite}"
 echo "Bottlenecks: Running docker cmd: ${cmd}"
 ${cmd}
 
index a507df0..6572bfa 100755 (executable)
--- a/ci/run.sh
+++ b/ci/run.sh
@@ -14,7 +14,6 @@ SCRIPT_DIR=`cd ${BASH_SOURCE[0]%/*};pwd`
 export BOTTLENECKS_TOP_DIR=$SCRIPT_DIR/../
 export GERRIT_REFSPEC_DEBUG=$1
 
-$SCRIPT_DIR/rubbos_docker_run.sh
+$SCRIPT_DIR/docker_run.sh
 
 set +ex
-