Jerry Flood | ba3b329 | 2017-04-09 11:25:24 -0400 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | INSTALL_DIR=/var/opt/OpenECOMP_ETE |
Jerry Flood | 633a15d | 2017-06-02 16:46:11 -0400 | [diff] [blame] | 3 | # |
| 4 | # Execute tags built to support the hands on demo, |
| 5 | # |
| 6 | function 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 Flood | ba3b329 | 2017-04-09 11:25:24 -0400 | [diff] [blame] | 25 | |
| 26 | cd ${INSTALL_DIR} |
| 27 | export PYTHONPATH=${INSTALL_DIR}/robot/library |
Jerry Flood | 633a15d | 2017-06-02 16:46:11 -0400 | [diff] [blame] | 28 | python -m loadtest.TestMain $@ --logfile /share/logs/soak_$$.log |