Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNidhi Gupta <itsnidhi16@gmail.com>2019-11-05 12:49:25 +0300
committerAndrei Vagin <avagin@gmail.com>2020-02-04 23:39:04 +0300
commit2b4e653361ec0c3b827fb4af4e0b8848fb9a26f0 (patch)
treeb6fb584bd0a5ace6e784a1a0e25dd441dbd07c65 /scripts/travis
parentf3cca97d80c77a6f2b9702edc8225ea8bb6034e5 (diff)
Run java functional tests on travis
Signed-off-by: Nidhi Gupta <itsnidhi16@gmail.com>
Diffstat (limited to 'scripts/travis')
-rw-r--r--scripts/travis/Makefile3
-rwxr-xr-xscripts/travis/openj9-test.sh22
2 files changed, 25 insertions, 0 deletions
diff --git a/scripts/travis/Makefile b/scripts/travis/Makefile
index baddd6eb1..c6b67935b 100644
--- a/scripts/travis/Makefile
+++ b/scripts/travis/Makefile
@@ -41,5 +41,8 @@ docker-test:
podman-test:
./podman-test.sh
+openj9-test:
+ ./openj9-test.sh
+
%:
$(MAKE) -C ../build $@$(target-suffix)
diff --git a/scripts/travis/openj9-test.sh b/scripts/travis/openj9-test.sh
new file mode 100755
index 000000000..968f064f8
--- /dev/null
+++ b/scripts/travis/openj9-test.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+cd ../..
+
+failures=""
+
+docker build -t criu-openj9-ubuntu-test:latest -f scripts/build/Dockerfile.openj9-ubuntu .
+docker run --rm --privileged criu-openj9-ubuntu-test:latest
+if [ $? -ne 0 ]; then
+ failures=`echo "$failures ubuntu"`
+fi
+
+docker build -t criu-openj9-alpine-test:latest -f scripts/build/Dockerfile.openj9-alpine .
+docker run --rm --privileged criu-openj9-alpine-test:latest
+if [ $? -ne 0 ]; then
+ failures=`echo "$failures alpine"`
+fi
+
+if [ -n "$failures" ]; then
+ echo "Tests failed on $failures"
+ exit 1
+fi