From 6a8257127b3dce1f18a650afe6921a34b6c6f5b8 Mon Sep 17 00:00:00 2001 From: liyin Date: Mon, 8 May 2017 09:04:32 +0000 Subject: Delete testcase of rubbos and vstf. JIRA:BOTTLENECK-167 This patch will delete vstf and rubbos testcase code. Include some testcase config file, if there will be someone who want to use this testcase maybe B or C version code will contain those testcase. if you use the D version code to run this two testcase we will info you that: Rubbos testsuite is not updating anymore. This entrance for running Rubbos within Bottlenecks is no longer supported. Change-Id: I04e4042ff3998b3696df2ed47a9ffab6f1620ec3 Signed-off-by: liyin --- run_posca.sh | 54 ------------------------------------------------------ 1 file changed, 54 deletions(-) delete mode 100644 run_posca.sh (limited to 'run_posca.sh') diff --git a/run_posca.sh b/run_posca.sh deleted file mode 100644 index b47a220a..00000000 --- a/run_posca.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash -############################################################################## -# Copyright (c) 2017 Huawei Technologies Co.,Ltd and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Apache License, Version 2.0 -# which accompanies this distribution, and is available at -# http://www.apache.org/licenses/LICENSE-2.0 -############################################################################## - -pip install -U /home/opnfv/bottlenecks - -function check_testcase(){ - - check_suite="$1" - SUITE_PREFIX="/home/opnfv/bottlenecks/testsuites/posca/testcase_cfg" - - TEST_CASE=$2 - - #find all the test case yaml files first - find $SUITE_PREFIX -name "*yaml" > /tmp/all_testcases.yaml - all_testcases_insuite=`cat /tmp/all_testcases.yaml | awk -F '/' '{print $NF}' | awk -F '.' '{print $1}'` - all_testcases=(${all_testcases_insuite}) - - if [ "${TEST_CASE}" != "" ]; then - testcase_exec=(${TEST_CASE// /}) - for i in "${testcase_exec[@]}"; do - if [[ " ${all_testcases[*]} " != *" $i "* ]]; then - error "unknown test case: $i. available test cases are: ${all_test_cases[@]}" - fi - done - info "tests to execute: ${TEST_CASE}." - else - error "lack of testcase name" - fi -} - -SUITE_PREFIX="/home/opnfv/bottlenecks/testsuites/posca/testcase_cfg" -source /home/opnfv/bottlenecks/common.sh -test_file="/home/opnfv/bottlenecks/testsuites/posca/testsuite_story/posca_factor_test" -if [[ -f $test_file ]]; then - testcases=($(cat $test_file)) -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 - #adjust config parameters - #run test case - file=${SUITE_PREFIX}/${i}.yaml - python /home/opnfv/bottlenecks/testsuites/posca/run_posca.py -done -- cgit 1.2.3-korg