diff options
author | Bilal A <bilal@research.att.com> | 2019-02-27 13:52:05 -0500 |
---|---|---|
committer | Bilal A <bilal@research.att.com> | 2019-02-27 14:06:23 -0500 |
commit | f762f7400752c848cba93d666f0b4549b667a134 (patch) | |
tree | 63acb6fe742ab93f439bae315c088f120ff99fb9 /s3p/generate_perf.sh | |
parent | 7101ee5fe217b6f3d864e2bda979fc0c14f7db92 (diff) |
Changes directory structure of S3P Tests
Changes Include:
a) Moving performance and stability tests into two separate directories.
Change-Id: Ib98713b2c37658de16c5eb6ee8918b867bdf5b8a
Issue-ID: POLICY-1462
Signed-off-by: Bilal A <bilal@research.att.com>
Diffstat (limited to 's3p/generate_perf.sh')
-rwxr-xr-x | s3p/generate_perf.sh | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/s3p/generate_perf.sh b/s3p/generate_perf.sh deleted file mode 100755 index beabb783..00000000 --- a/s3p/generate_perf.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -function print_usage_and_exit { - [ -z "$1" ] || echo "Error: $1" - echo "Usage: $0 <output_dir> <total>" - echo " - <output_dir>: directory where the generated csar file will be put into" - echo " - <total>: total number of csar files to be generated" - exit 1 -} - -[ "$#" -ne 2 ] && print_usage_and_exit -OUTPUT=$1 -TOTAL=$2 - -[ -d $OUTPUT ] || mkdir -p $OUTPUT -[ -d $OUTPUT ] || print_usage_and_exit "$OUTPUT is not a valid directory" -[[ $TOTAL =~ ^[0-9]+$ ]] || print_usage_and_exit "$SEED is not a integer" - - -ROOT_DIR=`dirname $(readlink -f $0)` -TMP_DIR=$ROOT_DIR/perf_tmp - -python $ROOT_DIR/generate_perf.py --dest $TMP_DIR --total $TOTAL --out $ROOT_DIR/perf_data.csv - -rm -f $OUTPUT/*.csar -cp -fr $TMP_DIR/*.csar $OUTPUT/ - -rm -rf $TMP_DIR |