Blame tests/testenv.sh

Packit Service af52df
#!/bin/sh
Packit Service af52df
Packit Service af52df
if [ -z "$top_srcdir" ]; then
Packit Service af52df
    echo "*** top_srcdir must be set"
Packit Service af52df
fi
Packit Service af52df
Packit Service af52df
# If no top_builddir is set, use top_srcdir
Packit Service af52df
: "${top_builddir:=$top_srcdir}"
Packit Service af52df
Packit Service af52df
if [ -z "$PYTHONPATH" ]; then
Packit Service af52df
    PYTHONPATH="${top_srcdir}/src/python"
Packit Service af52df
else
Packit Service af52df
    PYTHONPATH="${PYTHONPATH}:${top_srcdir}/src/python"
Packit Service af52df
fi
Packit Service af52df
Packit Service af52df
if [ -z "$LD_LIBRARY_PATH" ]; then
Packit Service af52df
    LD_LIBRARY_PATH="${top_builddir}/src/.libs"
Packit Service af52df
else
Packit Service af52df
    LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${top_builddir}/src/.libs"
Packit Service af52df
fi
Packit Service af52df
Packit Service af52df
export PYTHONPATH
Packit Service af52df
export LD_LIBRARY_PATH
Packit Service af52df
export top_srcdir
Packit Service af52df
export top_builddir