diff options
author | Yu Yang (Gabriel) <Gabriel.yuyang@huawei.com> | 2016-11-01 05:48:41 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-11-01 05:48:41 +0000 |
commit | a51397eb59fd8159806375e78a2aa65f9edfa16d (patch) | |
tree | 96295f753d5330a6d2b62239daf9970c1f71e373 | |
parent | b60b5daa668899d528c70c1d4858421eb71e73a6 (diff) | |
parent | de41dd897c1adb5049633a6dbf17c2bae5e1de44 (diff) |
Merge "Add random key generation"
-rwxr-xr-x | run_tests.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/run_tests.sh b/run_tests.sh index ad0b31c5..62f87386 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -28,6 +28,8 @@ report=true arr_test_suite=(rubbos vstf posca) +Bottlenecks_key_dir="/home/opnfv/bottlenecks/utils/infra_setup" + function check_testcase(){ check_suite="$1" @@ -76,6 +78,7 @@ function run_test(){ else error "no rubbos test suite file" fi + for i in "${testcases[@]}"; do #check if the testcase is legal or not check_testcase -rubbos $i @@ -93,6 +96,7 @@ function run_test(){ else error "no vstf test suite file " fi + for i in "${testcases[@]}"; do #check if the testcase is legal or not check_testcase -vstf $i @@ -110,6 +114,7 @@ function run_test(){ else error "no posca test suite file " fi + for i in "${testcases[@]}"; do #check if the testcase is legal or not check_testcase -posca $i @@ -149,6 +154,18 @@ done BASEDIR=`dirname $0` source ${BASEDIR}/common.sh +#Add random key generation +if [ ! -d $Bottlenecks_key_dir/bottlenecks_key ]; then + mkdir $Bottlenecks_key_dir/bottlenecks_key +else + rm -rf $Bottlenecks_key_dir/bottlenecks_key + mkdir $Bottlenecks_key_dir/bottlenecks_key +fi +chmod 700 $Bottlenecks_key_dir/bottlenecks_key + +ssh-keygen -t rsa -f $Bottlenecks_key_dir/bottlenecks_key/bottlenecks_key -q -N "" +chmod 600 $Bottlenecks_key_dir/bottlenecks_key/* + #check the test suite name is correct if [ "${SUITE}" != "" ]; then suite_exec=(${SUITE//,/ }) |