Commits
jfq authored 3fea273b5e9
1 1 | |
2 2 | |
3 3 | # Source the profile script which should contain the M3 variable |
4 4 | if [ -f ~/.nsp_perf_profile ]; then |
5 5 | . ~/.nsp_perf_profile |
6 6 | fi |
7 7 | |
8 - | TESTPLAN=$1 |
9 - | DISTRIBUTION=$2 |
10 - | NSP_HOST=$3 |
11 - | NSP_PORT=$4 |
8 + | CWD=$1 |
9 + | COMPONENT=$2 |
10 + | TESTPLAN=$3 |
11 + | DISTRIBUTION=$4 |
12 + | NSP_HOST=$5 |
13 + | NSP_PORT=$6 |
14 + | |
15 + | pushd ${CWD}/tests/${COMPONENT} > /dev/null |
12 16 | |
13 17 | if [ "${TESTPLAN}" = "pullpoint" ]; then |
14 18 | if [ "${DISTRIBUTION}" = "pptest900-100" ]; then |
15 19 | ${M3}/mvn -q exec:java -Dexec.mainClass="dk.nsp.jmeter.protocol.nas.backgroundjob.NotificationBrokerBackgroundJob" -Dexec.args="http://${NSP_HOST}:${NSP_PORT}/notificationbroker TESTNAS-TOPIC-PERFORMANCE-01 idtype01 100 1000 3000 2500" |
16 20 | else |
17 21 | ${M3}/mvn -q exec:java -Dexec.mainClass="dk.nsp.jmeter.protocol.nas.backgroundjob.NotificationBrokerBackgroundJob" -Dexec.args="http://${NSP_HOST}:${NSP_PORT}/notificationbroker TESTNAS-TOPIC-PERFORMANCE-01 idtype01 20 1000 3000 500" |
18 22 | fi |
19 23 | else |
20 24 | echo "No background job for testplan ${TESTPLAN}" |
21 25 | fi |
26 + | |
27 + | popd |