aboutsummaryrefslogtreecommitdiffstats
path: root/jrt_test/src/tests/rpc-error/rpc-error_test.sh
blob: 3245bc887a6fb5071ea8939c076b1c16e28f77d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# Copyright Vespa.ai. 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

STATUS=ok
JAVA_PORT=$PORT_3
CPP_PORT=$PORT_4

export JAVA_PORT
export CPP_PORT

$BINREF/compilejava -d . $SOURCE_DIRECTORY/TestErrors.java || fail=1

bash $SOURCE_DIRECTORY/dotest.sh || fail=1

$SOURCE_DIRECTORY/../../binref/progctl.sh $SOURCE_DIRECTORY/progdefs.sh stop all

exit $fail