criu/scripts/ci/java-test.sh
Younes Manton 1ba1c39de4 ci: Clean up and improve Java testing
This patch changes top-level OpenJ9 filename and data references to Java
to make them generic and launches tests against both HotSpot and OpenJ9
JVMs.

Signed-off-by: Younes Manton <ymanton@ca.ibm.com>
2022-08-28 14:34:33 -07:00

25 lines
733 B
Bash
Executable file

#!/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