diff options
Diffstat (limited to 'jrt_test/src/tests/echo/dotest.sh')
-rw-r--r-- | jrt_test/src/tests/echo/dotest.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/jrt_test/src/tests/echo/dotest.sh b/jrt_test/src/tests/echo/dotest.sh new file mode 100644 index 00000000000..a01bf1e06ef --- /dev/null +++ b/jrt_test/src/tests/echo/dotest.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. + +. ../../binref/env.sh +export PORT_2 +sh $BINREF/progctl.sh progdefs.sh start javaserver 1 +$BINREF/runjava PollRPCServer tcp/localhost:$PORT_2 +$VALGRIND ./jrt_test_echo-client_app tcp/localhost:$PORT_2 > out.txt +sh $BINREF/progctl.sh progdefs.sh stop javaserver 1 + +if diff -u out.txt ref.txt; then + exit 0 +else + exit 1 +fi |