-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathall-docker-tests.sh
More file actions
executable file
·46 lines (35 loc) · 1007 Bytes
/
all-docker-tests.sh
File metadata and controls
executable file
·46 lines (35 loc) · 1007 Bytes
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
#!/usr/bin/env bash
log=testlog.log
# Fedora
export IMAGE=json-path-fedora-bash
cp test/docker/Dockerfile-fedora test/docker/Dockerfile
./test/docker/wrap_in_docker.sh ./all-tests.sh | tee "$log"
a=$(grep 'test(s) failed' "$log")
# Ubuntu
export IMAGE=json-path-ubuntu-bash
cp test/docker/Dockerfile-ubuntu test/docker/Dockerfile
./test/docker/wrap_in_docker.sh ./all-tests.sh | tee "$log"
b=$(grep 'test(s) failed' "$log")
# Centos
export IMAGE=json-path-centos-bash
cp test/docker/Dockerfile-centos test/docker/Dockerfile
./test/docker/wrap_in_docker.sh ./all-tests.sh | tee "$log"
c=$(grep 'test(s) failed' "$log")
# Debian
export IMAGE=json-path-debian-bash
cp test/docker/Dockerfile-debian test/docker/Dockerfile
./test/docker/wrap_in_docker.sh ./all-tests.sh | tee "$log"
d=$(grep 'test(s) failed' "$log")
# Cleanup
rm -- "$log"
rm test/docker/Dockerfile
# Results
echo
echo "Fedora tests"
echo "$a"
echo "Ubuntu tests"
echo "$b"
echo "Centos tests"
echo "$c"
echo "Debian tests"
echo "$d"