File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33set -ex
44
55type=$1
6- app=$2
7-
8- export OUTPUT_DIR=" ${REPORTS_DIR} /${type} /${app} "
96
107if [ -n " $CI_JOB_TOKEN " ]; then
118 # Inside BP, so we can assume 24 CPU cores on the second socket available and set CPU affinity
1613
1714source " ${UTILS_DIR} /update-java-version.sh" 17
1815
19- if [ " ${app} " == " petclinic" ]; then
20- HEALTHCHECK_URL=http://localhost:8080
21- elif [ " ${app} " == " insecure-bank" ]; then
22- HEALTHCHECK_URL=http://localhost:8080/login
23- else
24- echo " Unknown app ${app} "
25- exit 1
26- fi
16+ for app in * ; do
17+ export OUTPUT_DIR=" ${REPORTS_DIR} /${type} /${app} "
18+
19+ if [ " ${app} " == " petclinic" ]; then
20+ HEALTHCHECK_URL=http://localhost:8080
21+ elif [ " ${app} " == " insecure-bank" ]; then
22+ HEALTHCHECK_URL=http://localhost:8080/login
23+ else
24+ echo " Unknown app ${app} "
25+ exit 1
26+ fi
2727
28- bash -c " ${UTILS_DIR} /../${type} /${app} /start-servers.sh"
29- bash -c " ${CPU_AFFINITY_K6}${UTILS_DIR} /run-k6-load-test.sh ${HEALTHCHECK_URL} ${OUTPUT_DIR} 'pkill java'"
28+ bash -c " ${UTILS_DIR} /../${type} /${app} /start-servers.sh"
29+ bash -c " ${CPU_AFFINITY_K6}${UTILS_DIR} /run-k6-load-test.sh ${HEALTHCHECK_URL} ${OUTPUT_DIR} 'pkill java'"
30+ done
You can’t perform that action at this time.
0 commit comments