summaryrefslogtreecommitdiffstats
path: root/cmso-sonar/docker/integration/ete_test.sh
blob: 5c38fa24c000972ebe8202e7010b74ed5f185dc2 (plain)
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
#!/bin/bash
docker-compose up >up.txt 2>&1 &

### Wait for robot to finish
sleep 240
docker exec integration_cmso-robot_1 ls
while [ $? -ne 1 ]; do
  sleep 60
  docker exec integration_cmso-robot_1 ls
done

### Shut down java with to give time to write the jacoco_exec file
docker exec integration_cmso-service_1 pkill java
docker exec integration_cmso-optimizer_1 pkill java
sleep 10

### wait for  cmso  containers to exit and jacoco files written
docker exec integration_cmso-service_1 ls
while [ $? -ne 1 ]; do
  sleep 60
  docker exec integration_cmso-service_1 ls
done

docker exec integration_cmso-optimizer_1 ls
while [ $? -ne 1 ]; do
  sleep 60
  docker exec integration_cmso-optimizer_1 ls
done

cat up.txt

docker ps -a
docker-compose down
docker ps -a