summaryrefslogtreecommitdiffstats
path: root/jrt_test/src/binref
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2016-06-15 23:09:44 +0200
committerJon Bratseth <bratseth@yahoo-inc.com>2016-06-15 23:09:44 +0200
commit72231250ed81e10d66bfe70701e64fa5fe50f712 (patch)
tree2728bba1131a6f6e5bdf95afec7d7ff9358dac50 /jrt_test/src/binref
Publish
Diffstat (limited to 'jrt_test/src/binref')
-rw-r--r--jrt_test/src/binref/.gitignore7
-rw-r--r--jrt_test/src/binref/CMakeLists.txt5
-rwxr-xr-xjrt_test/src/binref/compilejava.in11
-rw-r--r--jrt_test/src/binref/env.sh.in15
l---------jrt_test/src/binref/progctl.sh1
-rwxr-xr-xjrt_test/src/binref/runjava.in13
l---------jrt_test/src/binref/sbcmd1
l---------jrt_test/src/binref/simpleserver1
l---------jrt_test/src/binref/slobrok1
l---------jrt_test/src/binref/testrun.sh1
10 files changed, 56 insertions, 0 deletions
diff --git a/jrt_test/src/binref/.gitignore b/jrt_test/src/binref/.gitignore
new file mode 100644
index 00000000000..bf0d7f26c94
--- /dev/null
+++ b/jrt_test/src/binref/.gitignore
@@ -0,0 +1,7 @@
+.depend
+Makefile
+compilejava
+env.sh
+runjava
+testspeed
+testspeedbig
diff --git a/jrt_test/src/binref/CMakeLists.txt b/jrt_test/src/binref/CMakeLists.txt
new file mode 100644
index 00000000000..20594f98d02
--- /dev/null
+++ b/jrt_test/src/binref/CMakeLists.txt
@@ -0,0 +1,5 @@
+# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
+configure_file(compilejava.in compilejava @ONLY)
+configure_file(runjava.in runjava @ONLY)
+configure_file(env.sh.in env.sh @ONLY)
diff --git a/jrt_test/src/binref/compilejava.in b/jrt_test/src/binref/compilejava.in
new file mode 100755
index 00000000000..d2751bb717d
--- /dev/null
+++ b/jrt_test/src/binref/compilejava.in
@@ -0,0 +1,11 @@
+#!/bin/sh
+unset VESPA_LOG_TARGET
+CLASSPATH=@PROJECT_BINARY_DIR@/jrt/target/jrt.jar
+CLASSPATH=$CLASSPATH:@PROJECT_BINARY_DIR@/vespajlib/target/vespajlib.jar
+CLASSPATH=$CLASSPATH:@CMAKE_CURRENT_SOURCE_DIR@/../java/classes
+CLASSPATH=$CLASSPATH:.
+if [ $# -lt 1 ]; then
+ echo "usage: compilejava file ..."
+ exit 1
+fi
+exec javac -classpath $CLASSPATH "$@"
diff --git a/jrt_test/src/binref/env.sh.in b/jrt_test/src/binref/env.sh.in
new file mode 100644
index 00000000000..86c1efbb2aa
--- /dev/null
+++ b/jrt_test/src/binref/env.sh.in
@@ -0,0 +1,15 @@
+BINREF=@CMAKE_CURRENT_BINARY_DIR@
+export BINREF
+# port numbers allocated for this module:
+PORT_0=18230
+PORT_1=18231
+PORT_2=18232
+PORT_3=18233
+PORT_4=18234
+PORT_5=18235
+PORT_6=18236
+PORT_7=18237
+PORT_8=18238
+PORT_9=18239
+PORT_10=18240
+PORT_11=18241
diff --git a/jrt_test/src/binref/progctl.sh b/jrt_test/src/binref/progctl.sh
new file mode 120000
index 00000000000..2c1fb1d47ce
--- /dev/null
+++ b/jrt_test/src/binref/progctl.sh
@@ -0,0 +1 @@
+../../../vespalib/src/vespa/vespalib/testkit/progctl.sh \ No newline at end of file
diff --git a/jrt_test/src/binref/runjava.in b/jrt_test/src/binref/runjava.in
new file mode 100755
index 00000000000..5cbc6ba4988
--- /dev/null
+++ b/jrt_test/src/binref/runjava.in
@@ -0,0 +1,13 @@
+#!/bin/sh
+unset VESPA_LOG_TARGET
+CLASSPATH=@PROJECT_BINARY_DIR@/jrt/target/jrt.jar
+CLASSPATH=$CLASSPATH:@PROJECT_BINARY_DIR@/vespajlib/target/vespajlib.jar
+CLASSPATH=$CLASSPATH:@CMAKE_CURRENT_SOURCE_DIR@/../java/classes
+CLASSPATH=$CLASSPATH:.
+if [ $# -lt 1 ]; then
+ echo "usage: runjava <class> [args]"
+ exit 1
+fi
+CLASS=$1
+shift
+exec java -cp $CLASSPATH $CLASS "$@"
diff --git a/jrt_test/src/binref/sbcmd b/jrt_test/src/binref/sbcmd
new file mode 120000
index 00000000000..a1cd73591a5
--- /dev/null
+++ b/jrt_test/src/binref/sbcmd
@@ -0,0 +1 @@
+../../../slobrok/src/apps/sbcmd/sbcmd \ No newline at end of file
diff --git a/jrt_test/src/binref/simpleserver b/jrt_test/src/binref/simpleserver
new file mode 120000
index 00000000000..7f1f746f093
--- /dev/null
+++ b/jrt_test/src/binref/simpleserver
@@ -0,0 +1 @@
+../../../jrt_test/src/jrt-test/simpleserver/jrt_test_simpleserver_app \ No newline at end of file
diff --git a/jrt_test/src/binref/slobrok b/jrt_test/src/binref/slobrok
new file mode 120000
index 00000000000..77dae12a032
--- /dev/null
+++ b/jrt_test/src/binref/slobrok
@@ -0,0 +1 @@
+../../../slobrok/src/apps/slobrok/slobrok \ No newline at end of file
diff --git a/jrt_test/src/binref/testrun.sh b/jrt_test/src/binref/testrun.sh
new file mode 120000
index 00000000000..56c3c1186d8
--- /dev/null
+++ b/jrt_test/src/binref/testrun.sh
@@ -0,0 +1 @@
+../../../vespalib/src/vespa/vespalib/testkit/testrun.sh \ No newline at end of file