32 lines
638 B
Plaintext
32 lines
638 B
Plaintext
LD_LIBRARY_PATH="${abs_builddir}/testing@usrlibdir@"
|
|
export LD_LIBRARY_PATH
|
|
PATH="${abs_builddir}/testing@rpmbindir@:${abs_builddir}/testing@usrbindir@:$PATH"
|
|
export PATH
|
|
|
|
RPMTEST="${abs_builddir}/testing"
|
|
RPMDATA="${abs_srcdir}/data/"
|
|
|
|
RPM_CONFIGDIR="${RPMTEST}/@RPMCONFIGDIR@"
|
|
export RPM_CONFIGDIR
|
|
|
|
# Popt looks into $HOME
|
|
HOME="${RPMTEST}"
|
|
export HOME
|
|
|
|
TOPDIR="${RPMTEST}/build"
|
|
|
|
RPM_XFAIL=${RPM_XFAIL-1}
|
|
|
|
function run()
|
|
{
|
|
"$@" --define "_topdir ${TOPDIR}"
|
|
}
|
|
|
|
function runroot()
|
|
{
|
|
(cd ${RPMTEST} && \
|
|
mkdir -p etc && touch etc/mtab &&
|
|
FAKECHROOT_BASE="${RPMTEST}" fakechroot "$@" --define "_topdir ${TOPDIR}"
|
|
)
|
|
}
|