blob: 827c3a0ee4b1f67567a0b50954bce3b1c37facb0 [file] [log] [blame]
Jerry Floodba3b3292017-04-09 11:25:24 -04001#!/bin/bash
Brian Freemanf6032df2019-02-18 09:59:12 -05002INSTALL_DIR=/var/opt/ONAP
Jerry Flood633a15d2017-06-02 16:46:11 -04003#
4# Execute tags built to support the hands on demo,
5#
6function usage
7{
8 echo "Usage: runSoak.sh [-p <filename> -d <seconds> -c <seconds>]"
9 echo " "
10 echo " -p, --profile"
11 echo " - name of JSON file containing test profile"
12 echo " "
13 echo " -d, --duration"
14 echo " - Duration of soak test (overrides value --profile)"
15 echo " "
16 echo " -c, --cyclelength"
17 echo " - Time between starting iterations of profile"
18 echo " If longer than total run time of a single iteration,"
19 echo " additional wait is added before starting the next iteration."
20 echo " Value has no effect if it is shorter than the total run time"
21 echo " of a single iteration over the profile."
22 echo " (overrides value in --profile)"
23}
24
Jerry Floodba3b3292017-04-09 11:25:24 -040025
26cd ${INSTALL_DIR}
27export PYTHONPATH=${INSTALL_DIR}/robot/library
Brian Freemanf6032df2019-02-18 09:59:12 -050028python -m loadtest.TestMain $@ --logfile /share/logs/soak_$$.log