summaryrefslogtreecommitdiffstats
path: root/jrt_test/src/tests/echo/dotest.sh
diff options
context:
space:
mode:
Diffstat (limited to 'jrt_test/src/tests/echo/dotest.sh')
-rw-r--r--jrt_test/src/tests/echo/dotest.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/jrt_test/src/tests/echo/dotest.sh b/jrt_test/src/tests/echo/dotest.sh
index 91b26c7f425..bf54fba26ca 100644
--- a/jrt_test/src/tests/echo/dotest.sh
+++ b/jrt_test/src/tests/echo/dotest.sh
@@ -1,16 +1,18 @@
#!/bin/bash
# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-
+if [ -z "$SOURCE_DIRECTORY" ]; then
+ SOURCE_DIRECTORY="."
+fi
fail=0
. ../../binref/env.sh
export PORT_2
-$BINREF/progctl.sh progdefs.sh start javaserver 1
+$SOURCE_DIRECTORY/../../binref/progctl.sh $SOURCE_DIRECTORY/progdefs.sh start javaserver 1
$BINREF/runjava PollRPCServer tcp/localhost:$PORT_2 || fail=1
$VALGRIND ./jrt_test_echo-client_app tcp/localhost:$PORT_2 > out.txt || fail=1
-$BINREF/progctl.sh progdefs.sh stop javaserver 1
+$SOURCE_DIRECTORY/../../binref/progctl.sh $SOURCE_DIRECTORY/progdefs.sh stop javaserver 1
-if diff -u out.txt ref.txt; then
+if diff -u out.txt $SOURCE_DIRECTORY/ref.txt; then
exit $fail
else
exit 1