applied another patch from Joel Reed still failing here but looking better
authorDaniel Veillard <veillard@src.gnome.org>
Mon, 17 Jan 2005 15:51:34 +0000 (15:51 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Mon, 17 Jan 2005 15:51:34 +0000 (15:51 +0000)
* 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
Daniel

ChangeLog
configure.in
libxslt/Makefile.am
libxslt/xsltwin32config.h
tests/Makefile.am
tests/plugins/Makefile.am [new file with mode: 0644]
tests/plugins/testplugin.c

index 4769b73..95e95ae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 33e36e2..9a96cbc 100644 (file)
@@ -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
index b42a22f..c0dc1a3 100644 (file)
@@ -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))
index 417f6ec..a66aec3 100644 (file)
@@ -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:
index 32e22e3..7a13048 100644 (file)
@@ -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 (file)
index 0000000..82083fe
--- /dev/null
@@ -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
+
index ab840d9..f93943d 100644 (file)
@@ -10,7 +10,7 @@
  */
 
 #define IN_LIBXSLT
-#include "libxslt.h"
+#include <libxslt/libxslt.h>
 
 #ifdef WITH_MODULES
 
 #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"