-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrun-all.sh
executable file
·35 lines (28 loc) · 1.18 KB
/
run-all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
# start tds, no caching config
cd tds/
docker build --no-cache -t thredds-performance-tests:latest .
docker compose up -d tds-no-caching-network-host
until docker inspect --format "{{json .State.Health.Status }}" tds-no-caching-network-host\
| grep -m 1 '"healthy"'; do sleep 1 ; done
# get tds version info
mkdir -p ../tests/version/
docker cp tds-no-caching-network-host:/usr/local/tomcat/webapps/thredds/META-INF/MANIFEST.MF ../tests/version/
# run tests for no caching config
cd ../tests/
mkdir -p results/
docker build --no-cache -t performance-tests:latest .
docker run --rm --network="host" -v ./results/:/usr/tests/results/ --user $(id -u):$(id -g) performance-tests -d /usr/tests/configs/no_caching_tests
# stop tds
cd ../tds/
docker compose down
# start tds, caching config
docker compose up -d tds-caching-network-host
until docker inspect --format "{{json .State.Health.Status }}" tds-caching-network-host\
| grep -m 1 '"healthy"'; do sleep 1 ; done
# run tests for caching config
cd ../tests/
docker run --rm --network="host" -v ./results/:/usr/tests/results/ --user $(id -u):$(id -g) performance-tests -d /usr/tests/configs/caching_tests
# stop tds
cd ../tds/
docker compose down