diff options
author | Michael Lando <ml636r@att.com> | 2017-06-17 22:40:44 +0300 |
---|---|---|
committer | Michael Lando <ml636r@att.com> | 2017-06-18 07:20:49 +0300 |
commit | 4d97d5fac309ce0d66938e5ccd0349e2660d4e23 (patch) | |
tree | 3f921054f997d1962fa6f9db9a0119e31a851eea /catalog-fe/src/test/resources/CI/tests/runTests.sh | |
parent | 89786d31f266a205857cae0177904c249ac6a512 (diff) |
[sdc] update code of sdc
Change-Id: If9f37c80b659cb67b34d18e6c019defecca58b9a
Signed-off-by: Michael Lando <ml636r@att.com>
Diffstat (limited to 'catalog-fe/src/test/resources/CI/tests/runTests.sh')
-rw-r--r-- | catalog-fe/src/test/resources/CI/tests/runTests.sh | 90 |
1 files changed, 0 insertions, 90 deletions
diff --git a/catalog-fe/src/test/resources/CI/tests/runTests.sh b/catalog-fe/src/test/resources/CI/tests/runTests.sh deleted file mode 100644 index 3fc0d39897..0000000000 --- a/catalog-fe/src/test/resources/CI/tests/runTests.sh +++ /dev/null @@ -1,90 +0,0 @@ -#!/bin/sh - -DEBUG=0 - -function cdAndExit() { - cd - >> /dev/null - exit $1 -} - -function usage() { - echo "$0 <envronment file>" - exit 3 -} - - -if [ $# -ne 1 ] -then - usage -fi - -envFile=$1 - -echo $envFile - -source $envFile - -#source ./envCatalogBE.sh - -echo "******************************************" -echo "********* CATALOG_FE_HOST $CATALOG_FE_HOST " -echo "********* CATALOG_FE_PORT $CATALOG_FE_PORT " -echo "********* CATALOG_BE_HOST $CATALOG_BE_HOST " -echo "********* CATALOG_BE_PORT $CATALOG_BE_PORT " -echo "******************************************" - -if [[ ${DEBUG} -eq 1 ]] -then - read stam -fi - -for folder in * -do - -if [[ -d $folder && $folder != "env" ]] -then - -echo "processing folder" $folder -cd $folder - -commandResult=`./command` - -if [ $? -ne 0 ] -then - echo "command $folder failed" - cdAndExit 2 -fi - -echo "command result is $commandResult" -results=`cat results` - -echo "Going to match $commandResult with pattern $results" - -matchNumber=`echo $commandResult | grep -c "$results" ` -echo $matchNumber -if [ $matchNumber -eq 1 ] -then - echo "command $folder succeed." -else - echo "command $folder failed. Going to exit" - cdAndExit 1 - -fi - -echo "Finish processing folder $folder" -echo "********************************************************" - -cd - >> /dev/null - -#if folder -fi - -#loop on folder -done - -echo "***************************************" -echo "* SUCCESS ${envFile} *" -echo "***************************************" - - - |