Browse Source

integration_test.sh supports other build directories then ${SOURCE_ROOT}/src/ptunnel-ng

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Toni Uhlig 2 years ago
parent
commit
d727de62e1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      test/integration_test.sh

+ 2 - 2
test/integration_test.sh

@@ -5,8 +5,8 @@ set -x
 set -o pipefail
 
 
-SRC_ROOT=$(realpath $(dirname $0)/..)
-PTUNNEL_BIN=${PTUNNEL_BIN:-${SRC_ROOT}/src/ptunnel-ng}
+BIN_ROOT="${BIN_ROOT:-$(realpath $(dirname $0)/..)}"
+PTUNNEL_BIN=${PTUNNEL_BIN:-${BIN_ROOT}/src/ptunnel-ng}
 PTUNNEL_ARGS="${PTUNNEL_ARGS:-}"
 VALGRIND_BIN=${VALGRIND_BIN:-valgrind}
 VALGRIND_ARGS="--error-exitcode=1 --exit-on-first-error=yes"