Skip to content

Commit 16daf05

Browse files
committed
test: Move config variables on the same line with commands
Before all configuration variables will be moved at the beginning.
1 parent ef99b9f commit 16daf05

File tree

5 files changed

+17
-26
lines changed

5 files changed

+17
-26
lines changed

test/MODCLUSTER-734/testit.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,15 @@ httpd_remove
99
# build httpd + mod_proxy_cluster
1010
rm -f nohup.out
1111

12-
MPC_CONF=${MPC_CONF:-MODCLUSTER-734/mod_proxy_cluster.conf}
13-
MPC_NAME=MODCLUSTER-734
14-
15-
httpd_start
12+
MPC_NAME=MODCLUSTER-734 MPC_CONF=${MPC_CONF:-MODCLUSTER-734/mod_proxy_cluster.conf} httpd_start
1613

1714
# wait until httpd is started
1815
httpd_wait_until_ready || exit 1
1916

2017
sleep 10
2118

2219
# start tomcat1 and tomcat2
23-
tomcat_start_two
20+
MPC_NAME=MODCLUSTER-734 tomcat_start_two
2421

2522
# wait until they are in mod_proxy_cluster tables
2623
tomcat_wait_for_n_nodes 2

test/MODCLUSTER-736/testit.sh

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
httpd_remove
66
tomcat_all_remove
77

8-
MPC_NAME=MODCLUSTER-736
98
# We must shift tomcat ports so that they do not collide with proxy
109
PORT=9000
1110
SHUTDOWN_PORT=7005
1211

13-
httpd_start
12+
MPC_NAME=MODCLUSTER-736 httpd_start
1413

1514
# Start a bunch ($1, or 6 if no argument is given) of tomcat
1615
# containers, then test them and stop them
@@ -23,7 +22,7 @@ runtomcatbatch() {
2322

2423
for i in $(seq $t 10);
2524
do
26-
tomcat_start $i
25+
MPC_NAME=MODCLUSTER-736 tomcat_start $i
2726
done
2827

2928
tomcat_count=$(expr 3 + 11 - $t)
@@ -80,7 +79,7 @@ runtomcatbatch() {
8079
singlecycle() {
8180
echo "singlecycle: Testing tomcat$1"
8281
R=$1
83-
tomcat_start $1 || exit 1
82+
MPC_NAME=MODCLUSTER-736 tomcat_start $1 || exit 1
8483

8584
# Wait for it to start
8685
echo "Testing(0) tomcat$1 waiting..."
@@ -194,9 +193,9 @@ cyclestomcats() {
194193
# basically start and stop random tomcats...
195194
runmodcluster736() {
196195
# start 3 tomcats
197-
tomcat_start 2
198-
tomcat_start 3
199-
tomcat_start 4
196+
MPC_NAME=MODCLUSTER-736 tomcat_start 2
197+
MPC_NAME=MODCLUSTER-736 tomcat_start 3
198+
MPC_NAME=MODCLUSTER-736 tomcat_start 4
200199
tomcat_wait_for_n_nodes 3 || exit 1
201200
# check them
202201
tomcat_start_webapp 2 || exit 1
@@ -231,7 +230,7 @@ runmodcluster736() {
231230
exit 1
232231
fi
233232
tomcat_remove 2
234-
tomcat_start 5
233+
MPC_NAME=MODCLUSTER-736 tomcat_start 5
235234

236235
tomcat_wait_for_n_nodes 3
237236
if [ $? -ne 0 ]; then
@@ -251,7 +250,7 @@ runmodcluster736() {
251250
fi
252251
# we have 5 3 4 in shared memory
253252
# read 2
254-
tomcat_start 2
253+
MPC_NAME=MODCLUSTER-736 tomcat_start 2
255254
tomcat_wait_for_n_nodes 4
256255
if [ $? -ne 0 ]; then
257256
echo "tomcat_wait_for_n_nodes 4: runmodcluster736 Failed!"

test/MODCLUSTER-755/testit.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@ httpd_remove
1212
tomcat_all_remove
1313

1414
MPC_CONF=${MPC_CONF:-MODCLUSTER-755/mod_proxy_cluster.conf}
15-
MPC_NAME=MODCLUSTER-755
1615

17-
httpd_start
16+
MPC_NAME=MODCLUSTER-755 httpd_start
1817

1918
httpd_wait_until_ready
2019

21-
tomcat_start 1
20+
MPC_NAME=MODCLUSTER-755 tomcat_start 1
2221

2322
NODE_COUNT="${NODE_COUNT:-500}"
2423
APP_COUNT="${APP_COUNT:-2}"

test/MODCLUSTER-785/testit.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@ httpd_remove
1010
# build httpd + mod_proxy_cluster
1111
rm -f nohup.out
1212

13-
MPC_CONF=${MPC_CONF:-MODCLUSTER-785/mod_proxy_cluster.conf}
14-
MPC_NAME=MODCLUSTER-785
1513
PORT=9000
1614

17-
httpd_start
15+
MPC_NAME=MODCLUSTER-785 MPC_CONF=${MPC_CONF:-MODCLUSTER-785/mod_proxy_cluster.conf} httpd_start
1816

1917
# start tomcat1 on 8080
20-
tomcat_start 1
18+
MPC_NAME=MODCLUSTER-785 tomcat_start 1
2119

2220
# wait until tomcat1 is in mod_proxy_cluster tables
2321
tomcat_wait_for_n_nodes 1
@@ -49,7 +47,7 @@ sleep 15
4947

5048
# start tomcat1 on 8080
5149
tomcat_remove 1
52-
tomcat_start 1
50+
MPC_NAME=MODCLUSTER-785 tomcat_start 1
5351

5452
# wait until tomcat1 is in mod_proxy_cluster tables
5553
tomcat_wait_for_n_nodes 1

test/MODCLUSTER-794/testit.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@ httpd_remove
88

99
# due to conflict with proxy's 8090 port we shift tomcats
1010
PORT=9000
11-
MPC_CONF=${MPC_CONF:-MODCLUSTER-794/mod_proxy_cluster.conf}
12-
MPC_NAME=MODCLUSTER-794
13-
httpd_start
11+
MPC_NAME=MODCLUSTER-794 MPC_CONF=${MPC_CONF:-MODCLUSTER-794/mod_proxy_cluster.conf} httpd_start
1412

1513

1614
for i in $(seq 1 20); do
17-
tomcat_start $i
15+
MPC_NAME=MODCLUSTER-794 tomcat_start $i
1816
done
1917

2018
sleep 20

0 commit comments

Comments
 (0)