tests: Add debugedit tests
Copy reduced tests/Makefile.am from RPM upstream and make tests work.
This commit is contained in:
parent
29ac9fc75a
commit
14e97e6b25
@ -8,7 +8,7 @@ EXTRA_DIST = CHANGES CREDITS Doxyheader GROUPS INSTALL \
|
|||||||
po/*.in po/*.po po/rpm.pot \
|
po/*.in po/*.po po/rpm.pot \
|
||||||
rpmpopt-$(VERSION) rpmqv.c
|
rpmpopt-$(VERSION) rpmqv.c
|
||||||
|
|
||||||
SUBDIRS = po rpmio rpmdb lib build @WITH_PYTHON_SUBDIR@ tools scripts doc .
|
SUBDIRS = po rpmio rpmdb lib build @WITH_PYTHON_SUBDIR@ tools scripts doc tests .
|
||||||
|
|
||||||
AM_CPPFLAGS = \
|
AM_CPPFLAGS = \
|
||||||
-I$(top_srcdir)/build \
|
-I$(top_srcdir)/build \
|
||||||
|
@ -10,6 +10,7 @@ AC_PREREQ(2.13)
|
|||||||
AC_CONFIG_SRCDIR(rpmqv.c)
|
AC_CONFIG_SRCDIR(rpmqv.c)
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
AM_INIT_AUTOMAKE([1.4 foreign])
|
AM_INIT_AUTOMAKE([1.4 foreign])
|
||||||
|
AC_CONFIG_TESTDIR(tests)
|
||||||
|
|
||||||
dnl XXX AM_MAINTAINER_MODE
|
dnl XXX AM_MAINTAINER_MODE
|
||||||
|
|
||||||
@ -924,6 +925,8 @@ AC_SUBST(RPM)
|
|||||||
|
|
||||||
AC_SUBST(OBJDUMP)
|
AC_SUBST(OBJDUMP)
|
||||||
|
|
||||||
|
AC_PATH_PROG(AUTOM4TE,autom4te,:)
|
||||||
|
|
||||||
dnl XXX this causes popt to depend on zlib et al
|
dnl XXX this causes popt to depend on zlib et al
|
||||||
dnl # XXX Propagate -lucb to popt ...
|
dnl # XXX Propagate -lucb to popt ...
|
||||||
dnl export LIBS INCPATH CONFIG_SITE
|
dnl export LIBS INCPATH CONFIG_SITE
|
||||||
@ -931,6 +934,7 @@ dnl export LIBS INCPATH CONFIG_SITE
|
|||||||
AC_OUTPUT([ Doxyfile Makefile rpmrc macros platform rpmpopt
|
AC_OUTPUT([ Doxyfile Makefile rpmrc macros platform rpmpopt
|
||||||
rpmio/Makefile rpmdb/Makefile lib/Makefile build/Makefile
|
rpmio/Makefile rpmdb/Makefile lib/Makefile build/Makefile
|
||||||
autodeps/linux.prov autodeps/linux.req tools/Makefile
|
autodeps/linux.prov autodeps/linux.req tools/Makefile
|
||||||
|
tests/Makefile
|
||||||
scripts/Makefile
|
scripts/Makefile
|
||||||
scripts/brp-adjust_libraries
|
scripts/brp-adjust_libraries
|
||||||
scripts/brp-alt
|
scripts/brp-alt
|
||||||
|
43
tests/Makefile.am
Normal file
43
tests/Makefile.am
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
AM_CFLAGS = @RPMCFLAGS@
|
||||||
|
|
||||||
|
EXTRA_DIST =
|
||||||
|
CLEANFILES =
|
||||||
|
|
||||||
|
TESTSUITE = $(srcdir)/rpmtests
|
||||||
|
|
||||||
|
## testsuite components
|
||||||
|
TESTSUITE_AT = rpmtests.at
|
||||||
|
TESTSUITE_AT += debugedit.at
|
||||||
|
|
||||||
|
# testsuite voodoo
|
||||||
|
AUTOTEST = $(AUTOM4TE) --language=autotest
|
||||||
|
$(TESTSUITE): $(srcdir)/package.m4 local.at $(TESTSUITE_AT)
|
||||||
|
$(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
|
||||||
|
mv $@.tmp $@
|
||||||
|
|
||||||
|
$(srcdir)/package.m4: $(top_srcdir)/configure.ac
|
||||||
|
@{ \
|
||||||
|
echo '# Signature of the current package.'; \
|
||||||
|
echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \
|
||||||
|
echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \
|
||||||
|
echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \
|
||||||
|
echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \
|
||||||
|
echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
|
||||||
|
} >'$(srcdir)/package.m4'
|
||||||
|
|
||||||
|
atconfig: ${top_builddir}/config.status
|
||||||
|
(cd ${top_builddir} && ./config.status ${subdir}/atconfig)
|
||||||
|
|
||||||
|
local.at:
|
||||||
|
@echo 'AT_INIT' > local.at
|
||||||
|
|
||||||
|
check_DATA = atconfig $(TESTSUITE)
|
||||||
|
|
||||||
|
check-local: $(check_DATA)
|
||||||
|
PATH=$(srcdir)/tools:$(PATH) $(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS)
|
||||||
|
|
||||||
|
clean-local:
|
||||||
|
test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' --clean
|
||||||
|
rm -f *.tmp
|
||||||
|
if [ -d testing ]; then chmod -R u+w testing/; fi
|
||||||
|
rm -rf testing
|
1
tests/rpmtests.at
Normal file
1
tests/rpmtests.at
Normal file
@ -0,0 +1 @@
|
|||||||
|
m4_include([debugedit.at])
|
Loading…
Reference in New Issue
Block a user