diff options
author | 2019-04-17 14:54:16 -0400 | |
---|---|---|
committer | 2019-04-17 14:54:27 -0400 | |
commit | f51670bdc0a71789176ef7b29c8fb72d0c3e43d5 (patch) | |
tree | 981b74f53f647410871fae8bba94275d1eee2224 /cmso-sonar/docker/integration/ete_test.sh | |
parent | 52383d23af47d2c27121486d38d5728b90263e18 (diff) |
Add cmso-sonar to generate jacoco files
Issue-ID: OPTFRA-474
Change-Id: I0a1cd03708fda09255ada655df727acfa7498d09
Signed-off-by: Jerry Flood <jflood@att.com>
Diffstat (limited to 'cmso-sonar/docker/integration/ete_test.sh')
-rwxr-xr-x | cmso-sonar/docker/integration/ete_test.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/cmso-sonar/docker/integration/ete_test.sh b/cmso-sonar/docker/integration/ete_test.sh new file mode 100755 index 0000000..0d86fef --- /dev/null +++ b/cmso-sonar/docker/integration/ete_test.sh @@ -0,0 +1,34 @@ +#!/bin/bash +docker-compose up >up.txt 2>&1 & + +### Wait for robot to finish +sleep 240 +docker exec cmso-service_cmso-robot_1 ls +while [ $? -ne 1 ]; do + sleep 60 + docker exec cmso-service_cmso-robot_1 ls +done + +### Shut down java with to give time to write the jacoco_exec file +docker exec cmso-service_cmso-service_1 pkill java +docker exec cmso-service_cmso-optimizer_1 pkill java +sleep 10 + +### wait for cmso containers to exit and jacoco files written +docker exec cmso-service_cmso-service_1 ls +while [ $? -ne 1 ]; do + sleep 60 + docker exec cmso-service_cmso-service_1 ls +done + +docker exec cmso-service_cmso-optimizer_1 ls +while [ $? -ne 1 ]; do + sleep 60 + docker exec cmso-service_cmso-optimizer_1 ls +done + +cat up.txt + +docker ps -a +docker-compose down +docker ps -a |