diff options
author | Ralf Corsépius <corsepiu@fedoraproject.org> | 2007-08-20 14:49:55 +0200 |
---|---|---|
committer | Ralf Corsépius <corsepiu@fedoraproject.org> | 2007-08-20 14:49:55 +0200 |
commit | a6a590b83751007928ddc08acff639981e3a9e48 (patch) | |
tree | 433bf253d25612af4950c0fa41eb70d3e9dff706 /tests | |
parent | c03ee493b704cdeae673d10ddcd3347a233cf125 (diff) | |
download | rpm-a6a590b83751007928ddc08acff639981e3a9e48.tar.gz rpm-a6a590b83751007928ddc08acff639981e3a9e48.tar.bz2 rpm-a6a590b83751007928ddc08acff639981e3a9e48.zip |
Create testing directory. Cosmetics.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 44d81f6c1..078629753 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -3,6 +3,10 @@ EXTRA_DIST = CLEANFILES = +# HACK: This should not be here. +rpmbindir = `echo $(bindir) | sed -e s,usr/bin,bin,` + +## TESTSUITE = $(srcdir)/rpmtests EXTRA_DIST += rpmtests.at $(TESTSUITE) @@ -37,7 +41,8 @@ atconfig: ${top_builddir}/config.status CLEANFILES += atconfig defs: defs.in - @sed -e "s,[@]rpmbindir[@],$(rpmbindir)," \ + @sed \ + -e "s,[@]rpmbindir[@],$(rpmbindir)," \ -e "s,[@]usrbindir[@],$(bindir)," \ -e "s,[@]usrlibdir[@],$(libdir)," \ < $(srcdir)/defs.in > defs @@ -53,6 +58,11 @@ rpmrc.in: $(top_srcdir)/rpmrc.in < $(top_srcdir)/rpmrc.in > rpmrc.in CLEANFILES += rpmrc.in -rpmrc: rpmrc.in - (cd ${top_builddir} && ./config.status --file=${subdir}/rpmrc:${subdir}/rpmrc.in) -CLEANFILES += rpmrc +## Create a test-installation directory "testing" +testing@RPMCONFIGDIR@/rpmrc: rpmrc.in $(top_builddir)/config.status + (cd ${top_builddir} && \ + $(MAKE) DESTDIR=`pwd`/${subdir}/testing install) + (cd ${top_builddir} && \ + ./config.status --file=${subdir}/testing$(RPMCONFIGDIR)/rpmrc:${subdir}/rpmrc.in) + +check_DATA = defs testing@RPMCONFIGDIR@/rpmrc |