summaryrefslogtreecommitdiffstats
path: root/jrt_test/src/tests/mandatory-methods/mandatory-methods_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'jrt_test/src/tests/mandatory-methods/mandatory-methods_test.sh')
-rwxr-xr-xjrt_test/src/tests/mandatory-methods/mandatory-methods_test.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/jrt_test/src/tests/mandatory-methods/mandatory-methods_test.sh b/jrt_test/src/tests/mandatory-methods/mandatory-methods_test.sh
index c6ffbe4d3a1..ba0bc04997f 100755
--- a/jrt_test/src/tests/mandatory-methods/mandatory-methods_test.sh
+++ b/jrt_test/src/tests/mandatory-methods/mandatory-methods_test.sh
@@ -1,14 +1,18 @@
#!/bin/bash
+if [ -z "$SOURCE_DIRECTORY" ]; then
+ SOURCE_DIRECTORY="."
+fi
+
fail=0
. ../../binref/env.sh
export PORT_1
-$BINREF/compilejava RPCServer.java || fail=1
+$BINREF/compilejava -d . $SOURCE_DIRECTORY/RPCServer.java || fail=1
-bash ./dotest.sh || fail=1
+bash $SOURCE_DIRECTORY/dotest.sh || fail=1
-$BINREF/progctl.sh progdefs.sh stop all
+$SOURCE_DIRECTORY/../../binref/progctl.sh $SOURCE_DIRECTORY/progdefs.sh stop all
exit $fail