mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
tests: use correct binaries when run in debug mode
This commit is contained in:
parent
41ae48ad58
commit
e362bba1ed
1 changed files with 13 additions and 4 deletions
|
@ -25,10 +25,19 @@
|
|||
SCRIPT=$(realpath ${BASH_SOURCE[0]})
|
||||
SCRIPTPATH=$(dirname $SCRIPT)
|
||||
|
||||
export SRCDIR=$(realpath ${SCRIPTPATH}/..)
|
||||
export BUILDDIR=${SRCDIR}/build/release
|
||||
export LOGDIR=${BUILDDIR}/tests/integration
|
||||
export PATH=${BUILDDIR}:${PATH}
|
||||
if [ -n "${DEBUG}" ]; then
|
||||
VARIANT="debug"
|
||||
else
|
||||
VARIANT="release"
|
||||
fi
|
||||
|
||||
SRCDIR=${SRCDIR:-$(realpath ${SCRIPTPATH}/..)}
|
||||
BUILDDIR=${BUILDDIR:-${SRCDIR}/build/${VARIANT}}
|
||||
|
||||
LOGDIR=${BUILDDIR}/tests/integration
|
||||
PATH=${BUILDDIR}:${PATH}
|
||||
|
||||
export PATH SRCDIR BUILDDIR LOGDIR
|
||||
|
||||
# Default values
|
||||
VERBOSE=${VERBOSE:-0}
|
||||
|
|
Loading…
Add table
Reference in a new issue