diff options
author | Ralf Corsépius <corsepiu@fedoraproject.org> | 2007-08-30 16:04:06 +0200 |
---|---|---|
committer | Ralf Corsépius <corsepiu@fedoraproject.org> | 2007-08-30 16:04:06 +0200 |
commit | 278c26d5122ca1c9f43485de48fe6f9939344417 (patch) | |
tree | 28effb35139c16caa3c5897bd6efb3c31c1b27f0 /tests | |
parent | 333fc3b70efdabd2d6928375ec0ce67ef29797fa (diff) | |
download | librpm-tizen-278c26d5122ca1c9f43485de48fe6f9939344417.tar.gz librpm-tizen-278c26d5122ca1c9f43485de48fe6f9939344417.tar.bz2 librpm-tizen-278c26d5122ca1c9f43485de48fe6f9939344417.zip |
Attempt to make tests/Makefile.am more stabile.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index d7501c37b..6d3b658c8 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -51,7 +51,7 @@ atconfig: ${top_builddir}/config.status CLEANFILES += atconfig -atlocal: atlocal.in +atlocal: atlocal.in Makefile @sed \ -e "s,[@]rpmbindir[@],$(rpmbindir)," \ -e "s,[@]usrbindir[@],$(bindir)," \ @@ -72,7 +72,7 @@ rpmrc: $(top_srcdir)/rpmrc.in CLEANFILES += rpmrc rpmrc.tmp ## Create a customized macros -macros.in: $(top_srcdir)/macros.in +macros.in: $(top_srcdir)/macros.in Makefile @sed \ -e "s,[@]RPMCONFIGDIR[@],`pwd`/testing$(RPMCONFIGDIR),g" \ < $(top_srcdir)/macros.in > macros.in @@ -80,24 +80,35 @@ CLEANFILES += macros.in ## Create a customized rpmpopt -rpmpopt.in: $(top_srcdir)/rpmpopt.in +rpmpopt.in: $(top_srcdir)/rpmpopt.in Makefile @sed \ -e "s,[@]RPMCONFIGDIR[@],`pwd`/testing$(RPMCONFIGDIR),g" \ < $(top_srcdir)/rpmpopt.in > rpmpopt.in CLEANFILES += rpmpopt.in -## Create a test-installation directory "testing" -testing@RPMCONFIGDIR@/rpmrc: rpmrc macros.in rpmpopt.in $(top_builddir)/config.status +# Hack: Abusing testing@RPMCONFIGDIR@/rpmb as stamp file +testing@RPMCONFIGDIR@/rpmb: ../rpmb + rm -rf testing (cd ${top_builddir} && \ - $(MAKE) DESTDIR=`pwd`/${subdir}/testing install) + $(MAKE) DESTDIR=`pwd`/${subdir}/testing install) + +testing@RPMCONFIGDIR@/rpmrc: rpmrc testing@RPMCONFIGDIR@/rpmb $(INSTALL_DATA) rpmrc testing$(RPMCONFIGDIR)/rpmrc + +testing@RPMCONFIGDIR@/macros: macros.in testing@RPMCONFIGDIR@/rpmb (cd ${top_builddir} && \ ./config.status --file=${subdir}/testing$(RPMCONFIGDIR)/macros:${subdir}/macros.in) + +testing@RPMCONFIGDIR@/rpmpopt-@VERSION@: rpmpopt.in testing@RPMCONFIGDIR@/rpmb (cd ${top_builddir} && \ ./config.status --file=${subdir}/testing$(RPMCONFIGDIR)/rpmpopt-@VERSION@:${subdir}/rpmpopt.in) -check_DATA = testing@RPMCONFIGDIR@/rpmrc atconfig atlocal $(TESTSUITE) +check_DATA = atconfig atlocal $(TESTSUITE) +check_DATA += testing@RPMCONFIGDIR@/rpmb +check_DATA += testing@RPMCONFIGDIR@/rpmrc +check_DATA += testing@RPMCONFIGDIR@/macros +check_DATA += testing@RPMCONFIGDIR@/rpmpopt-@VERSION@ check-local: $(check_DATA) $(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS) |