blob: b392e8c7cf9d5e4af5456768981113983180b9b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
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/"
# Popt looks into $HOME
HOME="${RPMTEST}"
export HOME
RPMRC="${RPMTEST}@RPMCONFIGDIR@/rpmrc"
TOPDIR="${RPMTEST}/build"
RPM_XFAIL=${RPM_XFAIL-1}
function run()
{
"$@" --rcfile="${RPMRC}" --define "_topdir ${TOPDIR}"
}
function runroot()
{
(cd ${RPMTEST} && \
mkdir -p etc && touch etc/mtab &&
FAKECHROOT_BASE="${RPMTEST}" fakechroot "$@" --rcfile="${RPMRC}" --define "_topdir ${TOPDIR}"
)
}
|