On Tue, 2010-04-13 at 13:04 -0500, Yaakov (Cygwin/X) wrote: > From: Yaakov Selkowitz <[email protected]> > > Signed-off-by: Yaakov Selkowitz <[email protected]> > --- > Makefile.am | 16 ++++++++++++++++ > configure.ac | 5 ++++- > test/.gitignore | 5 +++++ > test/Makefile.am.in | 7 +++++++ > test/configure.ac.in | 46 ++++++++++++++++++++++++++++++++++++++++++++++ > test/runtest | 5 +++++ > 6 files changed, 83 insertions(+), 1 deletions(-) > create mode 100644 test/.gitignore > create mode 100644 test/Makefile.am.in > create mode 100644 test/configure.ac.in > create mode 100755 test/runtest > > diff --git a/Makefile.am b/Makefile.am > index 134a5cc..2dca317 100644 > --- a/Makefile.am > +++ b/Makefile.am > @@ -37,4 +37,20 @@ pkgconfig_DATA = xorg-macros.pc > ChangeLog: > $(CHANGELOG_CMD) > > +TESTS = test/runtest > + > +EXTRA_DIST = $(TESTS) > + > +CLEANFILES = \ > + test/aclocal.m4 \ > + test/ChangeLog \ > + test/config.log \ > + test/config.status \ > + test/configure \ > + test/Makefile \ > + test/Makefile.in > + > +clean-local: > + rm -fr test/autom4te.cache > + > dist-hook: ChangeLog > diff --git a/configure.ac b/configure.ac > index e489435..609ab1e 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -41,5 +41,8 @@ XORG_RELEASE_VERSION > XORG_CHANGELOG > > AC_CONFIG_FILES([xorg-macros.pc > - Makefile xorg-macros.m4:xorg-macros.m4.in:xorgversion.m4]) > + xorg-macros.m4:xorg-macros.m4.in:xorgversion.m4 > + Makefile > + test/configure.ac > + test/Makefile.am]) > AC_OUTPUT > diff --git a/test/.gitignore b/test/.gitignore > new file mode 100644 > index 0000000..c90b73c > --- /dev/null > +++ b/test/.gitignore > @@ -0,0 +1,5 @@ > +# > +# Add & Override patterns for this directory > +# > +Makefile.am > +configure.ac > diff --git a/test/Makefile.am.in b/test/Makefile.am.in > new file mode 100644 > index 0000000..9f62142 > --- /dev/null > +++ b/test/Makefile.am.in > @@ -0,0 +1,7 @@ > +.PHONY: ChangeLog INSTALL > + > +ChangeLog: > + $(CHANGELOG_CMD) > + > +INSTALL: > + $(INSTALL_CMD) > diff --git a/test/configure.ac.in b/test/configure.ac.in > new file mode 100644 > index 0000000..3cb05c6 > --- /dev/null > +++ b/test/configure.ac.in > @@ -0,0 +1,46 @@ > +dnl Process this file with autoconf to create configure. > + > +AC_PREREQ([2.60]) > +AC_INIT([xorg-macros-test], > + [...@package_version@], > + [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], > + [xorg-macros-test]) > +AC_CONFIG_SRCDIR([Makefile.am]) > +AM_INIT_AUTOMAKE([foreign dist-bzip2]) > +AM_MAINTAINER_MODE > + > +m4_include([../xorg-macros.m4]) > + > +XORG_MACROS_VERSION([...@package_version@]) > + > +dnl XORG_DEFAULT_OPTIONS > +XORG_CWARNFLAGS > +XORG_STRICT_OPTION > +XORG_RELEASE_VERSION > +XORG_CHANGELOG > +XORG_INSTALL > +XORG_MANPAGE_SECTIONS > + > +XORG_PROG_RAWCPP > + > +XORG_CHECK_MALLOC_ZERO > +XORG_CHECK_SGML_DOCTOOLS([1.4]) > +XORG_CHECK_LINUXDOC > +XORG_CHECK_DOCBOOK > + > +XORG_WITH_ASCIIDOC([8.5.2]) > +XORG_WITH_DOXYGEN([1.6.1]) > +XORG_WITH_GROFF > +XORG_WITH_FOP > +XORG_WITH_PS2PDF > +XORG_WITH_XMLTO([0.0.18]) > + > +XORG_ENABLE_DOCS > +XORG_ENABLE_DEVEL_DOCS > +XORG_ENABLE_SPECS > + > +XORG_WITH_LINT > +XORG_LINT_LIBRARY > + > +AC_CONFIG_FILES([Makefile]) > +AC_OUTPUT > diff --git a/test/runtest b/test/runtest > new file mode 100755 > index 0000000..add2b17 > --- /dev/null > +++ b/test/runtest > @@ -0,0 +1,5 @@ > +#! /bin/sh > + > +cd test > +autoreconf --force -v --install || exit 1 > +./configure --enable-maintainer-mode --with-lint --enable-lint-library || > exit 2
Have you had a look at Automake Test Suite support? (I haven't yet) http://www.gnu.org/software/automake/manual/automake.html#index-g_t_0040code_007bmkdir-_002dp_007d_002c-macro-check-325 It looks like there could be some benefits from the pre-defined "check" primary variable prefix.
signature.asc
Description: This is a digitally signed message part
_______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
