aboutsummaryrefslogtreecommitdiffstats
path: root/cmso-sonar/docker/integration/ete_test.sh
blob: 09ad69e47db538cb533043c6b2673fea02ff744d (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
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
set -x
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
docker exec integration_cmso-ticketmgt_1 pkill java
docker exec integration_cmso-topology_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
docker exec integration_cmso-ticketmgt_1 ls
while [ $? -ne 1 ]; do
  sleep 60
  docker exec integration_cmso-ticketmgt_1 ls
done
docker exec integration_cmso-topology_1 ls
while [ $? -ne 1 ]; do
  sleep 60
  docker exec integration_cmso-topology_1 ls
done

cat up.txt

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