Sanitize python object -> tag number exception handling
[platform/upstream/rpm.git] / tests / atlocal.in
1 LD_LIBRARY_PATH="${abs_builddir}/testing@usrlibdir@"
2 export LD_LIBRARY_PATH
3 PATH="${abs_builddir}/testing@rpmbindir@:${abs_builddir}/testing@usrbindir@:$PATH"
4 export PATH
5
6 RPMTEST="${abs_builddir}/testing"
7 RPMDATA="${abs_srcdir}/data/"
8
9 RPM_CONFIGDIR="${RPMTEST}/@RPMCONFIGDIR@"
10 export RPM_CONFIGDIR
11
12 # Popt looks into $HOME
13 HOME="${RPMTEST}"
14 export HOME
15
16 TOPDIR="${RPMTEST}/build"
17
18 RPM_XFAIL=${RPM_XFAIL-1}
19
20 function run()
21 {
22     "$@" --define "_topdir ${TOPDIR}"
23 }
24
25 function runroot()
26 {
27     (cd ${RPMTEST} && \
28      mkdir -p etc && touch etc/mtab &&
29      FAKECHROOT_BASE="${RPMTEST}" fakechroot "$@" --define "_topdir ${TOPDIR}"
30     )
31 }