blob: 7cf704f074da3686f27d90b6c96d27c20ed979d8 (
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
|
#!/bin/bash
cd ../.. || exit 1
failures=""
docker build -t criu-openj9-ubuntu-test:latest -f scripts/build/Dockerfile.openj9-ubuntu .
if ! docker run --rm --privileged criu-openj9-ubuntu-test:latest; then
failures="$failures openj9-ubuntu"
fi
docker build -t criu-hotspot-alpine-test:latest -f scripts/build/Dockerfile.hotspot-alpine .
if ! docker run --rm --privileged criu-hotspot-alpine-test:latest; then
failures="$failures hotspot-alpine"
fi
docker build -t criu-hotspot-ubuntu-test:latest -f scripts/build/Dockerfile.hotspot-ubuntu .
if ! docker run --rm --privileged criu-hotspot-ubuntu-test:latest; then
failures="$failures hotspot-ubuntu"
fi
if [ -n "$failures" ]; then
echo "Tests failed on $failures"
exit 1
fi
|