diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | configure.in | 5 | ||||
-rw-r--r-- | libxslt/Makefile.am | 16 | ||||
-rw-r--r-- | libxslt/xsltwin32config.h | 2 | ||||
-rw-r--r-- | tests/Makefile.am | 15 | ||||
-rw-r--r-- | tests/plugins/Makefile.am | 37 | ||||
-rw-r--r-- | tests/plugins/testplugin.c | 12 |
7 files changed, 55 insertions, 39 deletions
@@ -1,3 +1,10 @@ +Mon Jan 17 16:50:02 CET 2005 Daniel Veillard <daniel@veillard.com> + + * configure.in libxslt/Makefile.am libxslt/xsltwin32config.h + tests/Makefile.am tests/plugins/Makefile.am + tests/plugins/testplugin.c: applied another patch from Joel Reed + still failing here but looking better + Sun Jan 16 00:09:11 CET 2005 Daniel Veillard <daniel@veillard.com> * libxslt/extensions.c: applied another patch from Joel Reed diff --git a/configure.in b/configure.in index 33e36e2a..9a96cbc8 100644 --- a/configure.in +++ b/configure.in @@ -475,12 +475,12 @@ dnl if test "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XSLT" ; then if test "`uname -i`" != "x86_64" ; then - LIBXML_LIBS="../../XML/.libs/libxml2.a -lpthread -lz" + LIBXML_LIBS="$HOME/XML/.libs/libxml2.a -lpthread -lz" fi DV_LINK="1" XSLTPROCDV="xsltproc.dv" INSTALLED_XSLT_LIB="" - LIBXML_SRC="../../XML/" + LIBXML_SRC="$HOME/XML/" fi WIN32_EXTRA_LIBADD= @@ -572,6 +572,7 @@ tests/exslt/math/Makefile tests/exslt/sets/Makefile tests/exslt/strings/Makefile tests/exslt/date/Makefile +tests/plugins/Makefile doc/Makefile xslt-config libxslt.spec diff --git a/libxslt/Makefile.am b/libxslt/Makefile.am index b42a22f5..c0dc1a3b 100644 --- a/libxslt/Makefile.am +++ b/libxslt/Makefile.am @@ -57,21 +57,5 @@ man_MANS = libxslt.3 EXTRA_DIST = $(man_MANS) trio.h triodef.h - -# somewhat unconventional pkglibdir, but noinst_LTLIBRARIES -# never build DSOs (afaik). NOTE: must be defined outside the AM_CONDITIONAL -pkglibdir=$(shell pwd)/../tests/plugins - -if WITH_MODULES -pkglib_LTLIBRARIES = xmlsoft_org_xslt_testplugin.la - -xmlsoft_org_xslt_testplugin_la_CFLAGS = -DMODULE_COMPILE $(LIBXML_CFLAGS) $(LIBXSLT_CFLAGS) -xmlsoft_org_xslt_testplugin_la_SOURCES = testplugin.c -xmlsoft_org_xslt_testplugin_la_LDFLAGS = -module -avoid-version $(LIBXML_LIBS) $(LIBXSLT_LIBS) - -check-local: install-pkglibLTLIBRARIES - -endif - xsltproc: all @(cd ../xsltproc ; $(MAKE)) diff --git a/libxslt/xsltwin32config.h b/libxslt/xsltwin32config.h index 417f6ec2..a66aec37 100644 --- a/libxslt/xsltwin32config.h +++ b/libxslt/xsltwin32config.h @@ -44,7 +44,7 @@ extern "C" { * * extra version information, used to show a CVS compilation */ -#define LIBXML_VERSION_EXTRA "-CVS980" +#define LIBXML_VERSION_EXTRA "-CVS982" /** * WITH_XSLT_DEBUG: diff --git a/tests/Makefile.am b/tests/Makefile.am index 32e22e3c..7a13048e 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,7 +1,7 @@ ## Process this file with automake to produce Makefile.in SUBDIRS=docs REC1 REC2 REC general namespaces keys numbers documents \ - extensions reports xmlspec multiple XSLTMark docbook exslt + extensions reports xmlspec multiple XSLTMark docbook exslt plugins all: @@ -12,7 +12,6 @@ all: # and (if errors are expected) in *.err test tests: @(cur=`pwd` ; for dir in $(SUBDIRS) ; do cd $$dir ; $(MAKE) CHECKER='$(CHECKER)' tests ; cd $$cur ; done) - $(MAKE) plugin_tests valgrind: @echo '## Running the regression tests under Valgrind' @@ -24,15 +23,3 @@ full: tests docbook_tests docbook_tests: @(cd docbook ; $(MAKE) full) -if WITH_MODULES - -plugin_tests: - @echo Running the plugin tests... - @(cd plugins && LIBXSLT_PLUGINS_PATH=. $(top_builddir)/../xsltproc/xsltproc plugin.xsl plugin.xml) - -else - -plugin_tests: - @echo Skipping the plugin tests. - -endif diff --git a/tests/plugins/Makefile.am b/tests/plugins/Makefile.am new file mode 100644 index 00000000..82083fe3 --- /dev/null +++ b/tests/plugins/Makefile.am @@ -0,0 +1,37 @@ +## Process this file with automake to produce Makefile.in + +# somewhat unconventional pkglibdir, but noinst_LTLIBRARIES +# never build DSOs (afaik). NOTE: must be defined outside the AM_CONDITIONAL +pkglibdir=$(shell pwd)/plugin + +$(top_builddir)/xsltproc/xsltproc: + @(cd ../../../xsltproc ; $(MAKE) xsltproc) + +EXTRA_DIST = plugin.out plugin.xml plugin.xsl + +all: + +if WITH_MODULES +pkglib_LTLIBRARIES = xmlsoft_org_xslt_testplugin.la + +xmlsoft_org_xslt_testplugin_la_CFLAGS = -DMODULE_COMPILE $(LIBXML_CFLAGS) $(LIBXSLT_CFLAGS) +xmlsoft_org_xslt_testplugin_la_SOURCES = testplugin.c +xmlsoft_org_xslt_testplugin_la_LDFLAGS = -module -avoid-version $(LIBXML_LIBS) $(LIBXSLT_LIBS) + +test-logall: + @echo '## Running plugin tests' + @echo '## Note: installing xmlsoft_org_xslt_testplugin.so' + @echo '## to $(pkglibdir)' + +test tests: $(top_builddir)/xsltproc/xsltproc test-logall install-pkglibLTLIBRARIES + @LIBXSLT_PLUGINS_PATH=./plugin $(top_builddir)/xsltproc/xsltproc plugin.xsl plugin.xml > plugin.res + @diff plugin.out plugin.res + @rm plugin.res + +else + +test tests: + @echo Skipping the plugin tests. + +endif + diff --git a/tests/plugins/testplugin.c b/tests/plugins/testplugin.c index ab840d95..f93943d7 100644 --- a/tests/plugins/testplugin.c +++ b/tests/plugins/testplugin.c @@ -10,7 +10,7 @@ */ #define IN_LIBXSLT -#include "libxslt.h" +#include <libxslt/libxslt.h> #ifdef WITH_MODULES @@ -25,11 +25,11 @@ #include <libxml/xpathInternals.h> #include <libxml/list.h> #include <libxml/xmlIO.h> -#include "xslt.h" -#include "xsltInternals.h" -#include "xsltutils.h" -#include "imports.h" -#include "extensions.h" +#include <libxslt/xslt.h> +#include <libxslt/xsltInternals.h> +#include <libxslt/xsltutils.h> +#include <libxslt/imports.h> +#include <libxslt/extensions.h> #define XSLT_TESTPLUGIN_URL "http://xmlsoft.org/xslt/testplugin" |