summaryrefslogtreecommitdiffstats
path: root/tools/test.sh
diff options
context:
space:
mode:
authorKaspars Skels <kaspars.skels@att.com>2019-09-06 17:52:10 -0500
committerKaspars Skels <kaspars.skels@att.com>2019-09-06 17:56:40 -0500
commit393e530b6b8f2b14d40022f65f15a1925a0e9377 (patch)
tree86ca2785687188cb3b53a091c22b9ced3bd70b22 /tools/test.sh
parentdb6ea6adf7028d0d04574e6d1ec196a197621ce9 (diff)
Update test/deploy scripts
Change-Id: Ia53ec842c5b56f9cc9e42f88ceaf7b45171dd8e6 Signed-off-by: Kaspars Skels <kaspars.skels@att.com>
Diffstat (limited to 'tools/test.sh')
-rwxr-xr-xtools/test.sh23
1 files changed, 11 insertions, 12 deletions
diff --git a/tools/test.sh b/tools/test.sh
index 256c82f..213d46a 100755
--- a/tools/test.sh
+++ b/tools/test.sh
@@ -34,31 +34,30 @@ fi
help() {
- echo "Usage: $0 <healthcheck|smoke>"
+ echo "Usage: $0 <healthcheck|smoke|vnf>"
}
-run_healthcheck_tests() {
- sudo docker run --env-file env \
- -v $(pwd)/openstack.creds:/home/opnfv/functest/conf/env_file \
- -v ${FUNCTEST_CACHE}/images:/home/opnfv/functest/images \
- opnfv/functest-healthcheck:hunter
-}
+run_tests() {
+
+ rm -rf ${FUNCTEST_CACHE}/results && mkdir ${FUNCTEST_CACHE}/results
-run_smoke_tests() {
sudo docker run --env-file env \
-v $(pwd)/openstack.creds:/home/opnfv/functest/conf/env_file \
-v ${FUNCTEST_CACHE}/images:/home/opnfv/functest/images \
- opnfv/functest-smoke:hunter
+ -v ${FUNCTEST_CACHE}/results:/home/opnfv/functest/results \
+ opnfv/functest-${1}:hunter
}
-
case "$1" in
'healthcheck')
- run_healthcheck_tests
+ run_tests $1
;;
'smoke')
- run_smoke_tests
+ run_tests $1
+ ;;
+'vnf')
+ run_tests $1
;;
*) help
exit 1