Commits

jfq authored 3fea273b5e9
nohup virker anderledes på perf noderne og er ikke nødvendigt da vi faktisk ønsker at sriptet skal være knyttet til master.sh

git-svn-id: https://svn.nspop.dk/svn/components/performance/trunk@885 3203d48c-b89f-428c-a2b9-71f4dc330d7c
No tags

tests/nas/start.sh

Modified
1 1 #!/bin/bash
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

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut