summaryrefslogtreecommitdiff
path: root/tests/atlocal.in
diff options
context:
space:
mode:
Diffstat (limited to 'tests/atlocal.in')
-rw-r--r--tests/atlocal.in36
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/atlocal.in b/tests/atlocal.in
new file mode 100644
index 0000000..d0ea0c8
--- /dev/null
+++ b/tests/atlocal.in
@@ -0,0 +1,36 @@
+LD_LIBRARY_PATH="${abs_builddir}/testing@usrlibdir@"
+export LD_LIBRARY_PATH
+PATH="${abs_builddir}/testing@rpmbindir@:${abs_builddir}/testing@usrbindir@:$PATH"
+export PATH
+
+PYLIBDIR=`python -c "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib(1))"`
+PYTHONPATH="${abs_builddir}/testing${PYLIBDIR}"
+export PYTHONPATH
+
+RPMTEST="${abs_builddir}/testing"
+RPMDATA="${abs_srcdir}/data/"
+
+RPM_CONFIGDIR="${RPMTEST}/@RPMCONFIGDIR@"
+RPM_POPTEXEC_PATH="${RPMTEST}/@usrbindir@"
+export RPM_CONFIGDIR RPM_POPTEXEC_PATH
+
+# 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}"
+ )
+}