aboutsummaryrefslogtreecommitdiffstats
path: root/messagebus_test/src/tests/compile-java
diff options
context:
space:
mode:
Diffstat (limited to 'messagebus_test/src/tests/compile-java')
-rw-r--r--messagebus_test/src/tests/compile-java/.gitignore4
-rw-r--r--messagebus_test/src/tests/compile-java/CMakeLists.txt2
-rw-r--r--messagebus_test/src/tests/compile-java/DESC2
-rw-r--r--messagebus_test/src/tests/compile-java/FILES1
-rw-r--r--messagebus_test/src/tests/compile-java/TestCompile.java9
-rwxr-xr-xmessagebus_test/src/tests/compile-java/compile-java_test.sh12
6 files changed, 30 insertions, 0 deletions
diff --git a/messagebus_test/src/tests/compile-java/.gitignore b/messagebus_test/src/tests/compile-java/.gitignore
new file mode 100644
index 00000000000..d615ebbafe7
--- /dev/null
+++ b/messagebus_test/src/tests/compile-java/.gitignore
@@ -0,0 +1,4 @@
+*.class
+.depend
+Makefile
+compile-java_test
diff --git a/messagebus_test/src/tests/compile-java/CMakeLists.txt b/messagebus_test/src/tests/compile-java/CMakeLists.txt
new file mode 100644
index 00000000000..f13175939f6
--- /dev/null
+++ b/messagebus_test/src/tests/compile-java/CMakeLists.txt
@@ -0,0 +1,2 @@
+# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+vespa_add_test(NAME messagebus_test_compile-java_test NO_VALGRIND COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/compile-java_test.sh)
diff --git a/messagebus_test/src/tests/compile-java/DESC b/messagebus_test/src/tests/compile-java/DESC
new file mode 100644
index 00000000000..465d625ca9e
--- /dev/null
+++ b/messagebus_test/src/tests/compile-java/DESC
@@ -0,0 +1,2 @@
+simple compilation test to check dependencies.
+
diff --git a/messagebus_test/src/tests/compile-java/FILES b/messagebus_test/src/tests/compile-java/FILES
new file mode 100644
index 00000000000..5b154bb1605
--- /dev/null
+++ b/messagebus_test/src/tests/compile-java/FILES
@@ -0,0 +1 @@
+TestCompile.java
diff --git a/messagebus_test/src/tests/compile-java/TestCompile.java b/messagebus_test/src/tests/compile-java/TestCompile.java
new file mode 100644
index 00000000000..443ae093794
--- /dev/null
+++ b/messagebus_test/src/tests/compile-java/TestCompile.java
@@ -0,0 +1,9 @@
+// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
+import com.yahoo.messagebus.EmptyReply;
+
+public class TestCompile {
+ public static void main(String[] args) {
+ EmptyReply er = new EmptyReply();
+ }
+}
diff --git a/messagebus_test/src/tests/compile-java/compile-java_test.sh b/messagebus_test/src/tests/compile-java/compile-java_test.sh
new file mode 100755
index 00000000000..d99e3e841e5
--- /dev/null
+++ b/messagebus_test/src/tests/compile-java/compile-java_test.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+set -e
+
+if [ -z "$SOURCE_DIRECTORY" ]; then
+ SOURCE_DIRECTORY="."
+fi
+
+. ../../binref/env.sh
+
+$BINREF/compilejava $SOURCE_DIRECTORY/TestCompile.java
+$BINREF/runjava TestCompile
+