|
|
2ff057 |
LD_LIBRARY_PATH="${abs_builddir}/testing@usrlibdir@"
|
|
|
2ff057 |
export LD_LIBRARY_PATH
|
|
|
2ff057 |
PATH="${abs_builddir}/testing@rpmbindir@:${abs_builddir}/testing@usrbindir@:$PATH"
|
|
|
2ff057 |
export PATH
|
|
|
2ff057 |
|
|
Panu Matilainen |
e3be7d |
PYTHON=@PYTHON@
|
|
Panu Matilainen |
e3be7d |
PYLIBDIR=$(${PYTHON} -c "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib(1,0,'@execprefix@'))")
|
|
|
2ff057 |
PYTHONPATH="${abs_builddir}/testing${PYLIBDIR}"
|
|
|
2ff057 |
export PYTHONPATH
|
|
|
2ff057 |
|
|
|
2ff057 |
RPMTEST="${abs_builddir}/testing"
|
|
|
2ff057 |
RPMDATA="${abs_srcdir}/data/"
|
|
|
2ff057 |
|
|
|
2ff057 |
RPM_CONFIGDIR="${RPMTEST}/@RPMCONFIGDIR@"
|
|
|
2ff057 |
RPM_POPTEXEC_PATH="${RPMTEST}/@usrbindir@"
|
|
|
2ff057 |
export RPM_CONFIGDIR RPM_POPTEXEC_PATH
|
|
|
2ff057 |
|
|
|
2ff057 |
# Popt looks into $HOME
|
|
|
2ff057 |
HOME="${RPMTEST}"
|
|
|
2ff057 |
export HOME
|
|
|
2ff057 |
|
|
|
2ff057 |
TZ=UTC
|
|
|
2ff057 |
export TZ
|
|
|
2ff057 |
|
|
|
2ff057 |
TOPDIR="${RPMTEST}/build"
|
|
|
2ff057 |
|
|
|
2ff057 |
RPM_XFAIL=${RPM_XFAIL-1}
|
|
|
2ff057 |
|
|
|
2ff057 |
function run()
|
|
|
2ff057 |
{
|
|
|
2ff057 |
"$@" --define "_tmppath ${RPMTEST}/tmp" --define "_topdir ${TOPDIR}" --dbpath="${RPMTEST}/var/lib/rpm/"
|
|
|
2ff057 |
}
|
|
|
2ff057 |
|
|
|
2ff057 |
function rundebug()
|
|
|
2ff057 |
{
|
|
|
2ff057 |
cp ${top_srcdir}/macros.debug ${RPM_CONFIGDIR}/macros.d/
|
|
|
2ff057 |
"$@" --define "_tmppath ${RPMTEST}/tmp" --define "_topdir ${TOPDIR}" --dbpath="${RPMTEST}/var/lib/rpm/"
|
|
|
2ff057 |
rm -f ${RPM_CONFIGDIR}/macros.d/macros.debug
|
|
|
2ff057 |
}
|
|
|
2ff057 |
|
|
|
2ff057 |
function runroot()
|
|
|
2ff057 |
{
|
|
|
2ff057 |
(unset RPM_CONFIGDIR RPM_POPTEXEC_PATH; cd ${RPMTEST} && \
|
|
|
2ff057 |
MAGIC="/magic/magic" FAKECHROOT_BASE="${RPMTEST}" fakechroot "$@" --define "_topdir /build" --noplugins
|
|
|
2ff057 |
)
|
|
|
2ff057 |
}
|
|
|
2ff057 |
|
|
|
2ff057 |
function runroot_other()
|
|
|
2ff057 |
{
|
|
|
2ff057 |
(unset RPM_CONFIGDIR RPM_POPTEXEC_PATH; cd ${RPMTEST} && \
|
|
|
2ff057 |
FAKECHROOT_BASE="${RPMTEST}" fakechroot "$@"
|
|
|
2ff057 |
)
|
|
|
2ff057 |
}
|