[HONOLULU] Bump version 1.8.0 of the robot tests
[testsuite.git] / runSoak.sh
1 #!/bin/bash
2 INSTALL_DIR=/var/opt/ONAP
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
25
26 cd ${INSTALL_DIR}
27 export PYTHONPATH=${INSTALL_DIR}/robot/library
28 python -m loadtest.TestMain $@ --logfile /share/logs/soak_$$.log