1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-08-01 14:06:55 +03:00

tests: Port most of the test suite to C

Use runtest.c from libxml2 as a starting point.

This finally allows us to run most of tests with CMake and Autotools
VPATH builds.
This commit is contained in:
Nick Wellnhofer
2022-09-07 16:43:06 +02:00
parent cc64f2a78b
commit 971d5c4dd1
327 changed files with 1142 additions and 1844 deletions

1
.gitignore vendored
View File

@ -48,6 +48,7 @@ python/libxsltclass.py
python/libxsltclass.txt
python/tests/foo
stamp-h1
tests/runtest
tests/xmlspec/debug
xslt-config
xsltConf.sh

View File

@ -10,7 +10,4 @@ cd ..
sh autogen.sh $CONFIG --with-libxml-src=libxml2
make -j$(nproc) V=1 CFLAGS="$CFLAGS -Werror"
make -s -C tests tests | tee test.log
make -s -C xsltproc tests | tee -a test.log
grep -qv '^## Running' test.log && exit 1
make -s -C python tests
make -s check

View File

@ -21,8 +21,10 @@ cmake "$@" \
-DCMAKE_C_FLAGS='-Werror' \
-S . -B libxslt-build
cmake --build libxslt-build --target install
(cd libxslt-build && ctest -VV)
mkdir -p libxslt-install/share/libxslt
cp Copyright libxslt-install/share/libxslt
(cd libxslt-install &&
tar -czf ../libxslt-$CI_COMMIT_SHORT_SHA-$SUFFIX.tar.gz *)

View File

@ -26,6 +26,10 @@ option(LIBXSLT_WITH_THREADS "Add multithread support" ON)
set(LIBXSLT_WITH_TRIO OFF)
option(LIBXSLT_WITH_XSLT_DEBUG "Add the debugging code" ON)
if(NOT BUILD_SHARED_LIBS)
set(LIBXSLT_WITH_MODULES OFF)
endif()
if(LIBXSLT_WITH_CRYPTO AND NOT WIN32)
find_package(Gcrypt REQUIRED)
endif()
@ -352,10 +356,38 @@ install(TARGETS xsltproc EXPORT LibXslt RUNTIME DESTINATION ${CMAKE_INSTALL_BIND
if(LIBXSLT_WITH_TESTS)
enable_testing()
if (NOT MSVC)
# TODO:
# - Unsupported encoding windows-1251
# - Segfault in exslt dynamic tests
add_executable(runtest tests/runtest.c)
target_link_libraries(runtest LibXslt LibExslt)
add_test(
NAME runtest COMMAND runtest
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/tests"
)
if (LIBXSLT_WITH_MODULES)
add_library(testplugin SHARED tests/testplugin.c)
target_link_libraries(testplugin LibExslt LibXslt)
set_target_properties(
testplugin PROPERTIES
PREFIX ""
OUTPUT_NAME xmlsoft_org_xslt_testplugin
)
set_tests_properties(
runtest PROPERTIES
ENVIRONMENT "LIBXSLT_PLUGINS_PATH=${CMAKE_CURRENT_BINARY_DIR}"
)
endif()
endif()
if(Threads_FOUND)
add_executable(testThreads xsltproc/testThreads.c)
target_link_libraries(testThreads LibXslt LibExslt Threads::Threads)
add_test(NAME testThreads COMMAND testThreads WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
add_test(NAME testThreads COMMAND testThreads)
endif()
endif()

View File

@ -39,24 +39,6 @@ xsltConf.sh: xsltConf.sh.in Makefile
CLEANFILES = xsltConf.sh
check-local: tests
dummy:
tests: dummy
@echo '## Running the regression test suite'
@(cd tests ; $(MAKE) -s tests)
@(cd xsltproc ; $(MAKE) -s tests)
if WITH_PYTHON
@cd python && $(MAKE) tests
endif
valgrind:
@echo '## Running the regression tests under Valgrind'
@echo '## Go get a cup of coffee it is gonna take a while ...'
@(cd tests ; $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests)
@(cd xsltproc ; $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests)
cleanup:
-@(find . -name .\#\* -exec rm {} \;)

View File

@ -551,33 +551,11 @@ xsltproc/Makefile
python/Makefile
python/tests/Makefile
tests/Makefile
tests/docs/Makefile
tests/REC1/Makefile
tests/REC2/Makefile
tests/REC/Makefile
tests/general/Makefile
tests/reports/Makefile
tests/extensions/Makefile
tests/namespaces/Makefile
tests/keys/Makefile
tests/numbers/Makefile
tests/documents/Makefile
tests/xmlspec/Makefile
tests/multiple/Makefile
tests/xinclude/Makefile
tests/XSLTMark/Makefile
tests/docbook/Makefile
tests/exslt/Makefile
tests/exslt/common/Makefile
tests/exslt/functions/Makefile
tests/exslt/math/Makefile
tests/exslt/saxon/Makefile
tests/exslt/sets/Makefile
tests/exslt/strings/Makefile
tests/exslt/date/Makefile
tests/exslt/dynamic/Makefile
tests/exslt/crypto/Makefile
tests/plugins/Makefile
tests/fuzz/Makefile
doc/Makefile
doc/devhelp/Makefile

View File

@ -69,7 +69,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}{,-python}-%{version}
%check
make tests
make check
%clean
rm -fr %{buildroot}

View File

@ -8,7 +8,7 @@ TESTSPY = \
exampledir = $(docdir)/python/examples
dist_example_DATA = test.xml test.xsl pyxsltproc.py $(TESTSPY)
tests: $(TESTSPY)
check-local: $(TESTSPY)
@(export PYTHONPATH="..:../.libs:$(srcdir)/..:$$PYTHONPATH"; \
export LD_LIBRARY_PATH="$(top_builddir)/libxslt/.libs:$(top_builddir)/libexslt/.libs:$$LD_LIBRARY_PATH"; \
export DYLD_LIBRARY_PATH="$(top_builddir)/libxslt/.libs:$(top_builddir)/libexslt/.libs:$$DYLD_LIBRARY_PATH"; \
@ -23,8 +23,6 @@ tests: $(TESTSPY)
echo "-- $$test" ; \
$(PYTHON) $(srcdir)/$$test; \
done)
else
tests:
endif
CLEANFILES = *.pyc core

View File

@ -1,26 +1,53 @@
## Process this file with automake to produce Makefile.in
SUBDIRS=docs REC1 REC2 REC general namespaces keys numbers documents \
extensions reports xmlspec multiple xinclude XSLTMark docbook \
exslt plugins fuzz
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir)
SUBDIRS = xmlspec multiple xinclude XSLTMark docbook fuzz
DEPENDENCIES = $(top_builddir)/libxslt/libxslt.la \
$(top_builddir)/libexslt/libexslt.la
LDADD = $(top_builddir)/libxslt/libxslt.la \
$(top_builddir)/libexslt/libexslt.la \
$(LIBXML_LIBS)
check_PROGRAMS = runtest
runtest_SOURCES = runtest.c
if WITH_MODULES
check_LTLIBRARIES = xmlsoft_org_xslt_testplugin.la
# our rpath is a rather unorthodox location as we
# don't want to pollute $(DESTDIR) with the test plugin
plugindir = $(abs_builddir)/.libs
xmlsoft_org_xslt_testplugin_la_CFLAGS = $(AM_CFLAGS) -DMODULE_COMPILE
xmlsoft_org_xslt_testplugin_la_SOURCES = testplugin.c
xmlsoft_org_xslt_testplugin_la_LIBADD = $(top_builddir)/libxslt/libxslt.la $(EXTRA_LIBS)
xmlsoft_org_xslt_testplugin_la_LDFLAGS = \
$(AM_LDFLAGS) -no-undefined \
-module -avoid-version -rpath $(plugindir)
endif
all:
# Each subdirectory has it's own Makefile to cater for the unique
# requirements of that subdirectory. In general, xsltproc will be
# run on the *.xsl / *.xml file combinations, and the output of that
# run will be compared with the "expected" output contained in *.out
# 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)
valgrind:
@echo '## Running the regression tests under Valgrind'
@echo '## Go get a cup of coffee it is gonna take a while ...'
$(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
full: tests docbook_tests
check-local:
cd $(srcdir) && LIBXSLT_PLUGINS_PATH=$(plugindir) $(abs_builddir)/runtest
docbook_tests:
@(cd docbook ; $(MAKE) full)
dist-hook:
cp -a $(srcdir)/REC $(distdir)
cp -a $(srcdir)/REC2 $(distdir)
cp -a $(srcdir)/exslt $(distdir)
cp -a $(srcdir)/extensions $(distdir)
cp -a $(srcdir)/general $(distdir)
cp -a $(srcdir)/namespaces $(distdir)
cp -a $(srcdir)/numbers $(distdir)
cp -a $(srcdir)/plugins $(distdir)
cp -a $(srcdir)/reports $(distdir)

View File

@ -1,219 +0,0 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
@(cd ../../xsltproc ; $(MAKE) xsltproc)
EXTRA_DIST = \
article.xsl bigfont.xsl \
test-10-1.out test-10-1.xml test-10-1.xsl \
test-10-2.out test-10-2.xml test-10-2.xsl \
test-11.2-1.out test-11.2-1.xml test-11.2-1.xsl \
test-11.2-2.out test-11.2-2.xml test-11.2-2.xsl \
test-11.2-3.out test-11.2-3.xml test-11.2-3.xsl \
test-11.2-4.out test-11.2-4.xml test-11.2-4.xsl \
test-11.2-5.out test-11.2-5.xml test-11.2-5.xsl \
test-11.2-6.out test-11.2-6.xml test-11.2-6.xsl \
test-12.2-1.out test-12.2-1.xml test-12.2-1.xsl \
test-12.2-2.out test-12.2-2.xml test-12.2-2.xsl \
test-15-1.out test-15-1.xml test-15-1.xsl \
test-16.1-1.out test-16.1-1.xml test-16.1-1.xsl \
test-16.1-2.out test-16.1-2.xml test-16.1-2.xsl \
test-2.3-1.out test-2.3-1.xml test-2.3-1.xsl \
test-2.3-2.out test-2.3-2.xml test-2.3-2.xsl \
test-3.4-1.out test-3.4-1.xml test-3.4-1.xsl \
test-3.4-2.out test-3.4-2.xml test-3.4-2.xsl \
test-3.4-3.out test-3.4-3.xml test-3.4-3.xsl \
test-2.5-1.out test-2.5-1.xml test-2.5-1.xsl test-2.5-1.err \
test-2.6.2-1.out test-2.6.2-1.xml test-2.6.2-1.xsl \
test-5.2-1.out test-5.2-1.xml test-5.2-1.xsl \
test-5.2-2.out test-5.2-2.xml test-5.2-2.xsl \
test-5.2-3.out test-5.2-3.xml test-5.2-3.xsl \
test-5.2-4.out test-5.2-4.xml test-5.2-4.xsl \
test-5.2-5.out test-5.2-5.xml test-5.2-5.xsl \
test-5.2-6.out test-5.2-6.xml test-5.2-6.xsl \
test-5.2-7.out test-5.2-7.xml test-5.2-7.xsl \
test-5.2-8.out test-5.2-8.xml test-5.2-8.xsl \
test-5.2-9.out test-5.2-9.xml test-5.2-9.xsl \
test-5.2-10.out test-5.2-10.xml test-5.2-10.xsl \
test-5.2-11.out test-5.2-11.xml test-5.2-11.xsl \
test-5.2-12.out test-5.2-12.xml test-5.2-12.xsl \
test-5.2-13.out test-5.2-13.xml test-5.2-13.xsl \
test-5.2-14.out test-5.2-14.xml test-5.2-14.xsl \
test-5.2-15.out test-5.2-15.xml test-5.2-15.xsl \
test-5.2-16.out test-5.2-16.xml test-5.2-16.xsl \
test-5.2-17.out test-5.2-17.xml test-5.2-17.xsl \
test-5.2-18.out test-5.2-18.xml test-5.2-18.xsl \
test-5.2-19.out test-5.2-19.xml test-5.2-19.xsl \
test-5.2-20.out test-5.2-20.xml test-5.2-20.xsl \
test-5.2-21.out test-5.2-21.xml test-5.2-21.xsl \
test-5.2-22.out test-5.2-22.xml test-5.2-22.xsl \
test-5.3.out test-5.3.xml test-5.3.xsl \
test-5.4-1.out test-5.4-1.xml test-5.4-1.xsl \
test-5.4-2.out test-5.4-2.xml test-5.4-2.xsl \
test-5.4-3.out test-5.4-3.xml test-5.4-3.xsl \
test-5.4-4.out test-5.4-4.xml test-5.4-4.xsl \
test-5.4-5.out test-5.4-5.xml test-5.4-5.xsl \
test-5.8.out test-5.8.xml test-5.8.xsl \
test-6.out test-6.xml test-6.xsl \
test-6.1.out test-6.1.xml test-6.1.xsl test-6.1.err \
test-7.1.1.out test-7.1.1.xml test-7.1.1.xsl \
test-7.1.1-2.out test-7.1.1-2.xml test-7.1.1-2.xsl \
test-7.1.1-3.out test-7.1.1-3.xml test-7.1.1-3.xsl \
test-7.1.3.out test-7.1.3.xml test-7.1.3.xsl \
test-7.1.4.out test-7.1.4.xml test-7.1.4.xsl \
test-7.3.out test-7.3.xml test-7.3.xsl \
test-7.4.out test-7.4.xml test-7.4.xsl \
test-7.5-1.out test-7.5-1.xml test-7.5-1.xsl \
test-7.6.1-1.out test-7.6.1-1.xml test-7.6.1-1.xsl \
test-7.6.1-2.out test-7.6.1-2.xml test-7.6.1-2.xsl \
test-7.6.1-3.out test-7.6.1-3.xml test-7.6.1-3.xsl \
test-7.6.2-1.out test-7.6.2-1.xml test-7.6.2-1.xsl \
test-7.6.2-2.out test-7.6.2-2.xml test-7.6.2-2.xsl \
test-7.7-1.out test-7.7-1.xml test-7.7-1.xsl \
test-7.7-2.out test-7.7-2.xml test-7.7-2.xsl \
test-7.7-3.out test-7.7-3.xml test-7.7-3.xsl \
test-7.7-4.out test-7.7-4.xml test-7.7-4.xsl \
test-7.7-5.out test-7.7-5.xml test-7.7-5.xsl \
test-7.7-6.out test-7.7-6.xml test-7.7-6.xsl \
test-8-1.out test-8-1.xml test-8-1.xsl \
test-9.1-1.out test-9.1-1.xml test-9.1-1.xsl \
test-9.1-2.out test-9.1-2.xml test-9.1-2.xsl \
test-9.2-1.xsl \
stand-2.7-1.dtd stand-2.7-1.stand.out stand-2.7-1.xsl \
stand-2.7-1.out stand-2.7-1.xml \
stand-2.7-2.stand.out stand-2.7-2.xml stand-2.7-3.xml \
stand-2.7-3.stand.out
CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
$(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@(echo > .memdump)
@echo '## Running REC tests'
-@(for i in $(srcdir)/*.xsl ; do \
name=`basename $$i .xsl` ; \
if [ ! -f $(srcdir)/$$name.xml ] ; then \
continue ; \
fi ; \
log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \
$(srcdir)/$$name.xsl $(srcdir)/$$name.xml \
> $$name.res 2>$$name.bad ; \
if [ ! -f $(srcdir)/$$name.out ] ; then \
cp $$name.res $(srcdir)/$$name.out ; \
if [ -s $$name.bad ] ; then \
cp $$name.bad $(srcdir)/$$name.err ; \
fi ; \
else \
if [ ! -f $$name.res ] ; then \
echo "Fatal error, no $$name.res\n" ; \
else \
diff $(srcdir)/$$name.out $$name.res ; \
if [ -s $(srcdir)/$$name.err ] ; then \
diff $(srcdir)/$$name.err $$name.bad ; \
else \
diff /dev/null $$name.bad ; \
fi ; \
fi ; \
fi ; \
grep "MORY ALLO" .memdump | \
grep -v "MEMORY ALLOCATED : 0" || true` ; \
if [ -n "$$log" ] ; then \
echo $$name result ; \
echo "$$log" ; \
fi ; \
rm -f $$name.res $$name.bad ; \
done)
@(for i in $(srcdir)/stand*.xml ; do \
name=`basename $$i .xml` ; \
log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \
$(srcdir)/$$name.xml > $$name.res 2>$$name.bad ;\
if [ ! -f $(srcdir)/$$name.stand.out ] ; then \
cp $$name.res $(srcdir)/$$name.stand.out ; \
if [ -s $$name.bad ] ; then \
cp $$name.bad $(srcdir)/$$name.stand.err ; \
fi ; \
else \
if [ ! -f $$name.res ] ; then \
echo "Fatal error, no $$name.res\n" ; \
else \
diff $(srcdir)/$$name.stand.out $$name.res ; \
if [ -s $(srcdir)/$$name.stand.err ] ; then \
diff $(srcdir)/$$name.stand.err $$name.bad ; \
else \
diff /dev/null $$name.bad; \
fi ; \
fi ; \
fi ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` ; \
if [ -n "$$log" ] ; then \
echo $$name result ; \
echo "$$log" ; \
fi ; \
rm -f $$name.res $$name.bad ; \
done)
@echo '## Running REC tests without dictionaries'
-@(for i in $(srcdir)/*.xsl ; do \
name=`basename $$i .xsl` ; \
if [ ! -f $(srcdir)/$$name.xml ] ; then \
continue ; \
fi ; \
log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc --nodict \
$(srcdir)/$$name.xsl $(srcdir)/$$name.xml \
> $$name.res 2>$$name.bad ; \
if [ ! -f $(srcdir)/$$name.out ] ; then \
cp $$name.res $(srcdir)/$$name.out ; \
if [ -s $$name.bad ] ; then \
cp $$name.bad $(srcdir)/$$name.err ; \
fi ; \
else \
if [ ! -f $$name.res ] ; then \
echo "Fatal error, no $$name.res\n" ; \
else \
diff $(srcdir)/$$name.out $$name.res ; \
if [ -s $(srcdir)/$$name.err ] ; then \
diff $(srcdir)/$$name.err $$name.bad ; \
else \
diff /dev/null $$name.bad ; \
fi ; \
fi ; \
fi ; \
grep "MORY ALLO" .memdump | \
grep -v "MEMORY ALLOCATED : 0" || true` ; \
if [ -n "$$log" ] ; then \
echo $$name result ; \
echo "$$log" ; \
fi ; \
rm -f $$name.res $$name.bad ; \
done)
@(for i in $(srcdir)/stand*.xml ; do \
name=`basename $$i .xml` ; \
log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc --nodict \
$(srcdir)/$$name.xml > $$name.res 2>$$name.bad ;\
if [ ! -f $(srcdir)/$$name.stand.out ] ; then \
cp $$name.res $(srcdir)/$$name.stand.out ; \
if [ -s $$name.bad ] ; then \
cp $$name.bad $(srcdir)/$$name.stand.err ; \
fi ; \
else \
if [ ! -f $$name.res ] ; then \
echo "Fatal error, no $$name.res\n" ; \
else \
diff $(srcdir)/$$name.stand.out $$name.res ; \
if [ -s $(srcdir)/$$name.stand.err ] ; then \
diff $(srcdir)/$$name.stand.err $$name.bad ; \
else \
diff /dev/null $$name.bad; \
fi ; \
fi ; \
fi ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` ; \
if [ -n "$$log" ] ; then \
echo $$name result ; \
echo "$$log" ; \
fi ; \
rm -f $$name.res $$name.bad ; \
done)

View File

View File

@ -1,23 +0,0 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
@(cd ../../xsltproc ; $(MAKE) xsltproc)
EXTRA_DIST = doc.xsl doc.xml doc.dtd result.xml
CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
$(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
# No special stuff here, just a single test that either works or doesn't!
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running REC1 tests'
@(echo > .memdump)
@($(CHECKER) $(top_builddir)/xsltproc/xsltproc \
$(srcdir)/doc.xsl $(srcdir)/doc.xml > doc.res ; \
diff $(srcdir)/result.xml doc.res ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true; \
rm -f doc.res)

View File

@ -1,30 +0,0 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
@(cd ../../xsltproc ; $(MAKE) xsltproc)
EXTRA_DIST = data.xml vrml.xsl vrml.xml svg.xsl svg.xml html.xsl html.xml
CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
$(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
# Just 3 specific files tested, they either work or don't!
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running REC2 tests'
@(echo > .memdump)
@($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/vrml.xsl $(srcdir)/data.xml > vrml.res ; \
diff $(srcdir)/vrml.xml vrml.res ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
rm -f vrml.res)
@($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/svg.xsl $(srcdir)/data.xml > svg.res ; \
diff $(srcdir)/svg.xml svg.res ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
rm -f svg.res)
@($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/html.xsl $(srcdir)/data.xml > html.res ; \
diff $(srcdir)/html.xml html.res ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
rm -f html.res)

View File

@ -1,21 +0,0 @@
<sales>
<division id="North">
<revenue>10</revenue>
<growth>9</growth>
<bonus>7</bonus>
</division>
<division id="South">
<revenue>4</revenue>
<growth>3</growth>
<bonus>4</bonus>
</division>
<division id="West">
<revenue>6</revenue>
<growth>-1.5</growth>
<bonus>2</bonus>
</division>
</sales>

32
tests/REC2/html.out Normal file
View File

@ -0,0 +1,32 @@
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Sales Results By Division</title>
</head>
<body><table border="1">
<tr>
<th>Division</th>
<th>Revenue</th>
<th>Growth</th>
<th>Bonus</th>
</tr>
<tr>
<td><em>North</em></td>
<td>10</td>
<td>9</td>
<td>7</td>
</tr>
<tr>
<td><em>West</em></td>
<td>6</td>
<td style="color:red">-1.5</td>
<td>2</td>
</tr>
<tr>
<td><em>South</em></td>
<td>4</td>
<td>3</td>
<td>4</td>
</tr>
</table></body>
</html>

View File

@ -1,32 +1,21 @@
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Sales Results By Division</title>
</head>
<body><table border="1">
<tr>
<th>Division</th>
<th>Revenue</th>
<th>Growth</th>
<th>Bonus</th>
</tr>
<tr>
<td><em>North</em></td>
<td>10</td>
<td>9</td>
<td>7</td>
</tr>
<tr>
<td><em>West</em></td>
<td>6</td>
<td style="color:red">-1.5</td>
<td>2</td>
</tr>
<tr>
<td><em>South</em></td>
<td>4</td>
<td>3</td>
<td>4</td>
</tr>
</table></body>
</html>
<sales>
<division id="North">
<revenue>10</revenue>
<growth>9</growth>
<bonus>7</bonus>
</division>
<division id="South">
<revenue>4</revenue>
<growth>3</growth>
<bonus>4</bonus>
</division>
<division id="West">
<revenue>6</revenue>
<growth>-1.5</growth>
<bonus>2</bonus>
</division>
</sales>

18
tests/REC2/svg.out Normal file
View File

@ -0,0 +1,18 @@
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/Graphics/SVG/SVG-19990812.dtd" width="3in" height="3in">
<g style="stroke: #000000">
<line x1="0" x2="150" y1="150" y2="150"/>
<line x1="0" x2="0" y1="0" y2="150"/>
<text x="0" y="10">Revenue</text>
<text x="150" y="165">Division</text>
<rect x="10" y="50" width="20" height="100"/>
<text x="10" y="165">North</text>
<text x="10" y="45">10</text>
<rect x="50" y="110" width="20" height="40"/>
<text x="50" y="165">South</text>
<text x="50" y="105">4</text>
<rect x="90" y="90" width="20" height="60"/>
<text x="90" y="165">West</text>
<text x="90" y="85">6</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 684 B

View File

@ -1,18 +1,21 @@
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/Graphics/SVG/SVG-19990812.dtd" width="3in" height="3in">
<g style="stroke: #000000">
<line x1="0" x2="150" y1="150" y2="150"/>
<line x1="0" x2="0" y1="0" y2="150"/>
<text x="0" y="10">Revenue</text>
<text x="150" y="165">Division</text>
<rect x="10" y="50" width="20" height="100"/>
<text x="10" y="165">North</text>
<text x="10" y="45">10</text>
<rect x="50" y="110" width="20" height="40"/>
<text x="50" y="165">South</text>
<text x="50" y="105">4</text>
<rect x="90" y="90" width="20" height="60"/>
<text x="90" y="165">West</text>
<text x="90" y="85">6</text>
</g>
</svg>
<sales>
<division id="North">
<revenue>10</revenue>
<growth>9</growth>
<bonus>7</bonus>
</division>
<division id="South">
<revenue>4</revenue>
<growth>3</growth>
<bonus>4</bonus>
</division>
<division id="West">
<revenue>6</revenue>
<growth>-1.5</growth>
<bonus>2</bonus>
</division>
</sales>

Before

Width:  |  Height:  |  Size: 684 B

After

Width:  |  Height:  |  Size: 489 B

38
tests/REC2/vrml.out Normal file
View File

@ -0,0 +1,38 @@
#VRML V2.0 utf8
# externproto definition of a single bar element
EXTERNPROTO bar [
field SFInt32 x
field SFInt32 y
field SFInt32 z
field SFString name
]
"http://www.vrml.org/WorkingGroups/dbwork/barProto.wrl"
# inline containing the graph axes
Inline {
url "http://www.vrml.org/WorkingGroups/dbwork/barAxes.wrl"
}
bar {
x 10
y 9
z 7
name "North"
}
bar {
x 4
y 3
z 4
name "South"
}
bar {
x 6
y -1.5
z 2
name "West"
}

View File

@ -1,38 +1,21 @@
#VRML V2.0 utf8
<sales>
# externproto definition of a single bar element
EXTERNPROTO bar [
field SFInt32 x
field SFInt32 y
field SFInt32 z
field SFString name
]
"http://www.vrml.org/WorkingGroups/dbwork/barProto.wrl"
<division id="North">
<revenue>10</revenue>
<growth>9</growth>
<bonus>7</bonus>
</division>
# inline containing the graph axes
Inline {
url "http://www.vrml.org/WorkingGroups/dbwork/barAxes.wrl"
}
<division id="South">
<revenue>4</revenue>
<growth>3</growth>
<bonus>4</bonus>
</division>
<division id="West">
<revenue>6</revenue>
<growth>-1.5</growth>
<bonus>2</bonus>
</division>
bar {
x 10
y 9
z 7
name "North"
}
bar {
x 4
y 3
z 4
name "South"
}
bar {
x 6
y -1.5
z 2
name "West"
}
</sales>

View File

@ -61,14 +61,10 @@ xsltproc = $(top_builddir)/xsltproc/xsltproc
$(xsltproc):
cd ../../xsltproc && $(MAKE) xsltproc
test tests:
check-local:
@echo '## Running XSLTMark tests'
@$(MAKE) $(ALL_TESTS)
valgrind:
@echo '## Running the regression tests under Valgrind'
$(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
CLEANFILES = *.tmp *~ .memdump core db100.xml db1000.xml db10000.xml
@ -740,4 +736,4 @@ depth: $(xsltproc)
fi
@rm -f $@.tmp
.PHONY: test tests valgrind $(ALL_TESTS)
.PHONY: $(ALL_TESTS)

View File

@ -1,13 +1,9 @@
## Process this file with automake to produce Makefile.in
tests:
check-local:
@$(MAKE) single
@$(MAKE) xtchunk
valgrind:
@echo '## Running the regression tests under Valgrind'
$(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
$(top_builddir)/xsltproc/xsltproc:
@(cd ../../xsltproc ; $(MAKE) xsltproc)

View File

@ -1,228 +0,0 @@
## Process this file with automake to produce Makefile.in
#
# Contains only test documents
#
EXTRA_DIST = \
bug-1-.xml \
bug-2-.xml \
bug-3-.xml \
bug-4-.xml \
bug-5-.xml \
bug-6-.xml \
bug-7-.xml \
bug-8-.xml \
bug-9-.xml \
bug-10-.xml \
bug-11-.xml \
bug-12-.xml \
bug-13-.xml \
bug-14-.xml \
bug-15-.xml \
bug-16-.xml \
bug-17-.xml \
bug-18-.xml \
bug-19-.xml \
bug-20-.xml \
bug-21-.xml \
bug-22-.xml \
bug-23-.xml \
bug-24-.xml \
bug-25-.xml \
bug-26-.xml \
bug-27-.xml \
bug-28-.xml \
bug-29-.xml bug-29-.ent \
bug-30-.xml \
bug-31-.xml \
bug-32-.xml \
bug-33-.xml \
bug-35-.xml \
bug-36-.xml \
bug-37-.xml \
bug-38-.xml \
bug-39-.xml \
bug-40-.xml \
bug-41-.xml \
bug-42-.xml \
bug-43-.xml \
bug-44-.xml \
bug-45-.xml \
bug-46-.xml \
bug-47-.xml \
bug-48-.xml \
bug-49-.xml \
bug-50-.xml \
bug-52.xml \
bug-53.xml \
bug-54.xml \
bug-55.xml \
bug-56.xml \
bug-57.xml \
bug-59.xml \
bug-60.xml \
bug-61.xml \
bug-62.xml \
bug-63.xml \
bug-64.xml \
bug-65.xml \
bug-66.xml \
bug-68.xml \
bug-69.xml \
bug-70.xml \
bug-71.xml \
bug-72.xml \
bug-73.xml \
bug-74.xml \
bug-75.xml \
bug-76.xml \
bug-77.xml \
bug-78.xml \
bug-79.xml \
bug-80.xml \
bug-81.xml \
bug-82.xml \
bug-83.xml \
bug-84.xml \
bug-86.xml \
bug-87.xml \
bug-88.xml \
bug-89.xml \
bug-90.xml \
bug-91.xml \
bug-92.xml \
bug-93.xml \
bug-94.xml \
bug-95.xml \
bug-96.xml \
bug-97.xml \
bug-98.xml \
bug-99.xml \
bug-100.xml \
bug-101.xml \
bug-102.xml \
bug-103.xml \
bug-104.xml \
bug-105.xml \
bug-106.xml \
bug-107.xml \
bug-108.xml \
bug-109.xml \
bug-110.xml bug-110.ent \
bug-111.xml \
bug-112.xml \
bug-113.xml \
bug-114.xml \
bug-115.xml \
bug-116.xml \
bug-117.xml \
bug-118.xml \
bug-119.xml \
bug-120.xml \
bug-121.xml \
bug-122.xml \
bug-123.xml \
bug-124.xml \
bug-125.xml \
bug-126.xml \
bug-127.xml \
bug-128.xml \
bug-129.xml \
bug-130.xml bug-130.doc \
bug-131.xml \
bug-132.xml \
bug-133.xml \
bug-134.xml \
bug-135.xml \
bug-136.xml \
bug-137.xml \
bug-138.xml \
bug-139.xml \
bug-140.xml \
bug-141.xml \
bug-142.xml \
bug-143.xml \
bug-144.xml \
bug-145.xml \
bug-146.xml \
bug-147.xml \
bug-148.xml \
bug-149.xml \
bug-150.xml \
bug-151.xml \
bug-152.xml \
bug-153.xml bug-153.doc \
bug-154.xml \
bug-155.xml \
bug-156.xml \
bug-157.xml \
bug-158.xml bug-158.doc \
bug-159.xml \
bug-160.xml \
bug-161.xml \
bug-163.xml \
bug-164.xml \
bug-165.xml \
bug-166.xml \
bug-167.xml \
bug-168.xml \
bug-169.xml \
bug-170.xml \
bug-171.xml \
bug-172.xml \
bug-173.xml \
bug-174.xml \
bug-175.xml \
bug-176.xml \
bug-177.xml \
bug-178.xml \
bug-179.xml \
bug-180.xml \
bug-181.xml \
bug-182.xml \
bug-183.xml \
bug-184.xml \
bug-186.xml \
bug-187.xml \
bug-188.xml \
bug-189.xml \
bug-190.xml \
bug-191.xml \
bug-192.xml \
bug-193.xml \
bug-194.xml \
bug-195.xml \
bug-196.xml \
bug-197.xml \
bug-198.xml \
bug-199.xml \
bug-200.xml \
bug-201.xml \
bug-202.xml \
bug-203.xml \
bug-204.xml \
bug-205.xml \
bug-206.xml \
bug-207.xml \
bug-208.xml \
bug-209.xml \
bug-210.xml \
bug-211.xml \
bug-212.xml \
bug-213.xml \
bug-214.xml \
bug-215.xml \
bug-216.xml \
bug-217.xml \
bug-218.xml \
bug-219.xml \
bug-220.xml \
bug-221.xml \
bug-222.xml \
character.xml \
date_add.xml \
array.xml \
items.xml
tests:

View File

@ -1,42 +0,0 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
@(cd ../../xsltproc ; $(MAKE) xsltproc)
EXTRA_DIST = \
bredfort.css bredfort.xsl doc_file.xml docfile.xml \
fragment2.xml fragment.result fragment.xml fragment.xsl \
index.xml menu.xml message.result message.xml message.xsl \
result.xhtml system.xml test_bad.err test_bad.result \
test_bad.xml test.result test.xml test.xsl worklog.xml
CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
$(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@(echo > .memdump)
@($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/bredfort.xsl $(srcdir)/index.xml > result ; \
diff $(srcdir)/result.xhtml result; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
rm -f result)
@($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/test.xsl $(srcdir)/test.xml > result ; \
diff $(srcdir)/test.result result; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
rm -f result)
@($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/test.xsl $(srcdir)/test_bad.xml > result 2>err ; \
diff $(srcdir)/test_bad.result result; \
diff $(srcdir)/test_bad.err err; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
rm -f result err)
@($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/message.xsl $(srcdir)/message.xml > result 2>&1 ; \
diff $(srcdir)/message.result result; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
rm -f result)
@($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/fragment.xsl $(srcdir)/fragment.xml > result 2>&1 ; \
diff $(srcdir)/fragment.result result; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
rm -f result)

View File

@ -1,2 +1,2 @@
warning: failed to load external entity "foofile.xml"
warning: failed to load external entity "foo_file.xml"
I/O warning : failed to load external entity "foofile.xml"
I/O warning : failed to load external entity "foo_file.xml"

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="text" encoding="iso-8859-1"/>
<xsl:template match="/files/file">
<xsl:variable name="file" select="document(@name)"/>
<xsl:if test="not($file)">
<xsl:text>Can't Open File: </xsl:text>
<xsl:value-of select="@name"/>
</xsl:if>
<xsl:value-of select="$file/tag1"/>
</xsl:template>
</xsl:stylesheet>

View File

@ -1,12 +0,0 @@
## Process this file with automake to produce Makefile.in
SUBDIRS=common functions math saxon sets strings dynamic date $(CRYPTO_TESTDIR)
DIST_SUBDIRS = common functions math saxon sets strings dynamic date crypto
test tests:
@(cur=`pwd` ; for dir in $(SUBDIRS) ; do cd $$dir ; $(MAKE) CHECKER='$(CHECKER)' tests ; cd $$cur ; done)
valgrind:
@echo '## Running the regression tests under Valgrind'
$(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests

View File

@ -1,56 +0,0 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
@(cd ../../../xsltproc ; $(MAKE) xsltproc)
EXTRA_DIST = \
node-set.1.xml node-set.1.xsl node-set.1.out \
node-set.2.xml node-set.2.xsl node-set.2.out \
node-set.3.xml node-set.3.xsl node-set.3.out \
node-set.4.xml node-set.4.xsl node-set.4.out \
node-set.5.xml node-set.5.xsl node-set.5.out \
node-set.6.xml node-set.6.xsl node-set.6.out \
node-set.7.xml node-set.7.xsl node-set.7.out \
node-set.8.xml node-set.8.xsl node-set.8.out \
object-type.1.xml object-type.1.xsl object-type.1.out \
import-test1a.imp import-test1b.imp import-test1.out \
import-test1.xml import-test1.xsl
CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
$(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running exslt common tests'
@(echo > .memdump)
@(for i in $(srcdir)/*.xsl ; do \
name=`basename $$i .xsl` ; \
if [ ! -f $(srcdir)/$$name.xml ] ; then continue ; fi ; \
log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \
$(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res 2>$$name.bad;\
if [ ! -f $(srcdir)/$$name.out ] ; then \
cp $$name.res $(srcdir)/$$name.out ; \
if [ -s $$name.bad ] ; then \
mv $$name.bad $(srcdir)/$$name.err ; \
fi ; \
else \
if [ ! -s $$name.res ] ; then \
echo "Fatal error, no $$name.res\n" ; \
else \
diff $(srcdir)/$$name.out $$name.res ; \
if [ -s $(srcdir)/$$name.err ] ; then \
diff $(srcdir)/$$name.err $$name.bad; \
else \
diff /dev/null $$name.bad; \
fi ; \
fi ; \
fi; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true`;\
if [ -n "$$log" ] ; then \
echo $$name result ; \
echo "$$log" ; \
fi ; \
rm -f $$name.res $$name.bad; \
done)

View File

@ -1,47 +0,0 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
@(cd ../../../xsltproc ; $(MAKE) xsltproc)
EXTRA_DIST = \
crypt.1.out crypt.1.xml crypt.1.xsl \
hash.1.out hash.1.xml hash.1.xsl
CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
$(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running exslt crypto tests'
@(echo > .memdump)
@(for i in $(srcdir)/*.xsl ; do \
name=`basename $$i .xsl` ; \
if [ ! -f $(srcdir)/$$name.xml ] ; then continue ; fi ; \
log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \
$(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res 2>$$name.bad;\
if [ ! -f $(srcdir)/$$name.out ] ; then \
cp $$name.res $(srcdir)/$$name.out ; \
if [ -s $$name.bad ] ; then \
mv $$name.bad $(srcdir)/$$name.err ; \
fi ; \
else \
if [ ! -s $$name.res ] ; then \
echo "Fatal error, no $$name.res\n" ; \
else \
diff $(srcdir)/$$name.out $$name.res ; \
if [ -s $(srcdir)/$$name.err ] ; then \
diff $(srcdir)/$$name.err $$name.bad; \
else \
diff /dev/null $$name.bad; \
fi ; \
fi ; \
fi; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true`;\
if [ -n "$$log" ] ; then \
echo $$name result ; \
echo "$$log" ; \
fi ; \
rm -f $$name.res $$name.bad ; \
done)

View File

@ -1,86 +0,0 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
@(cd ../../../xsltproc ; $(MAKE) xsltproc)
EXTRA_DIST = \
current.xsl \
date.1.out date.1.xml date.1.xsl \
date.2.out date.2.xml date.2.xsl \
datetime.1.out datetime.1.xml datetime.1.xsl \
datetime.2.out datetime.2.xml datetime.2.xsl \
gday.1.out gday.1.xml gday.1.xsl \
gday.2.out gday.2.xml gday.2.xsl \
gmonth.1.out gmonth.1.xml gmonth.1.xsl \
gmonth.2.out gmonth.2.xml gmonth.2.xsl \
gmonthday.1.out gmonthday.1.xml gmonthday.1.xsl \
gmonthday.2.out gmonthday.2.xml gmonthday.2.xsl \
gyear.1.out gyear.1.xml gyear.1.xsl \
gyear.2.out gyear.2.xml gyear.2.xsl \
gyearmonth.1.out gyearmonth.1.xml gyearmonth.1.xsl \
gyearmonth.2.out gyearmonth.2.xml gyearmonth.2.xsl \
time.1.out time.1.xml time.1.xsl \
time.2.out time.2.xml time.2.xsl \
add.1.out add.1.xml add.1.xsl \
add.2.out add.2.xml add.2.xsl \
add-duration.1.out add-duration.1.xml add-duration.1.xsl \
add-duration.2.out add-duration.2.xml add-duration.2.xsl \
sum.1.out sum.1.xml sum.1.xsl \
sum.2.out sum.2.xml sum.2.xsl sum.2.err \
difference.1.out difference.1.xml difference.1.xsl \
difference.2.out difference.2.xml difference.2.xsl \
duration.1.out duration.1.xml duration.1.xsl \
duration.2.out duration.2.xml duration.2.xsl \
seconds.1.out seconds.1.xml seconds.1.xsl \
seconds.2.out seconds.2.xml seconds.2.xsl
CLEANFILES = .memdump
test-current:
@(echo > .memdump)
@(if [ -z "$$CI" ]; then \
echo \<doc/\> >current.xml ; \
echo "#" ; \
echo "# Inspect the following for correctness" ; \
echo "#" ; \
for i in $(srcdir)/current.xsl ; do \
name=`basename $$i .xsl` ; \
if [ ! -f $(srcdir)/$$name.xml ] ; then continue ; fi ; \
$(top_builddir)/xsltproc/xsltproc $(srcdir)/$$name.xsl $(srcdir)/$$name.xml;\
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
done ; \
rm -f current.xml ; \
fi)
test tests: $(top_builddir)/xsltproc/xsltproc test-current
@echo '## Running exslt date tests'
@(echo > .memdump)
@(for i in $(srcdir)/*.xsl ; do \
name=`basename $$i .xsl` ; \
if [ ! -f $(srcdir)/$$name.xml ] ; then continue ; fi ; \
log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \
$(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res 2>$$name.bad;\
if [ ! -f $(srcdir)/$$name.out ] ; then \
cp $$name.res $(srcdir)/$$name.out ; \
if [ -s $$name.bad ] ; then \
mv $$name.bad $(srcdir)/$$name.err ; \
fi ; \
else \
if [ ! -s $$name.res ] ; then \
echo "Fatal error, no $$name.res\n" ; \
else \
diff $(srcdir)/$$name.out $$name.res ; \
if [ -s $(srcdir)/$$name.err ] ; then \
diff $(srcdir)/$$name.err $$name.bad; \
else \
diff /dev/null $$name.bad; \
fi ; \
fi ; \
fi; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true`;\
if [ -n "$$log" ] ; then \
echo $$name result ; \
echo "$$log" ; \
fi ; \
rm -f $$name.res $$name.bad; \
done)

View File

@ -1,52 +0,0 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
@(cd ../../../xsltproc ; $(MAKE) xsltproc)
EXTRA_DIST = \
dynmap.out \
dynmap.xml \
dynmap.xsl \
recursion.err \
recursion.out \
recursion.xml \
recursion.xsl
CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
$(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running exslt dynamic tests'
@(echo > .memdump)
@(for i in $(srcdir)/*.xsl ; do \
name=`basename $$i .xsl` ; \
if [ ! -f $(srcdir)/$$name.xml ] ; then continue ; fi ; \
log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \
$(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res 2>$$name.bad;\
if [ ! -f $(srcdir)/$$name.out ] ; then \
cp $$name.res $(srcdir)/$$name.out ; \
if [ -s $$name.bad ] ; then \
mv $$name.bad $(srcdir)/$$name.err ; \
fi ; \
else \
if [ ! -s $$name.res ] ; then \
echo "Fatal error, no $$name.res\n" ; \
else \
diff $(srcdir)/$$name.out $$name.res ; \
if [ -s $(srcdir)/$$name.err ] ; then \
diff $(srcdir)/$$name.err $$name.bad; \
else \
diff /dev/null $$name.bad; \
fi ; \
fi ; \
fi; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true`;\
if [ -n "$$log" ] ; then \
echo $$name result ; \
echo "$$log" ; \
fi ; \
rm -f $$name.res $$name.bad ; \
done)

View File

@ -1,56 +0,0 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
@(cd ../../../xsltproc ; $(MAKE) xsltproc)
EXTRA_DIST = \
function.1.out function.1.xml function.1.xsl \
function.2.out function.2.xml function.2.xsl \
function.3.out function.3.xml function.3.xsl \
function.4.out function.4.xml function.4.xsl \
function.5.out function.5.xml function.5.xsl \
function.6.out function.6.xml function.6.xsl \
function.7.out function.7.xml function.7.xsl \
function.8.out function.8.xml function.8.xsl \
function.9.out function.9.xml function.9.xsl \
function.10.out function.10.xml function.10.xsl \
function.11.out function.11.xml function.11.xsl
CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
$(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running exslt function tests'
@(echo > .memdump)
@(for i in $(srcdir)/*.xsl ; do \
name=`basename $$i .xsl` ; \
if [ ! -f $(srcdir)/$$name.xml ] ; then continue ; fi ; \
log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \
$(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res 2>$$name.bad;\
if [ ! -f $(srcdir)/$$name.out ] ; then \
cp $$name.res $(srcdir)/$$name.out ; \
if [ -s $$name.bad ] ; then \
mv $$name.bad $(srcdir)/$$name.err ; \
fi ; \
else \
if [ ! -s $$name.res ] ; then \
echo "Fatal error, no $$name.res\n" ; \
else \
diff $(srcdir)/$$name.out $$name.res ; \
if [ -s $(srcdir)/$$name.err ] ; then \
diff $(srcdir)/$$name.err $$name.bad; \
else \
diff /dev/null $$name.bad; \
fi ; \
fi ; \
fi; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true`;\
if [ -n "$$log" ] ; then \
echo $$name result ; \
echo "$$log" ; \
fi ; \
rm -f $$name.res $$name.bad ; \
done)

View File

@ -1,57 +0,0 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
@(cd ../../../xsltproc ; $(MAKE) xsltproc)
EXTRA_DIST = \
highest.1.out highest.1.xml highest.1.xsl \
highest.2.out highest.2.xml highest.2.xsl \
highest.5.out highest.5.xml highest.5.xsl \
lowest.1.out lowest.1.xml lowest.1.xsl \
lowest.2.out lowest.2.xml lowest.2.xsl \
max.1.out max.1.xml max.1.xsl \
max.2.out max.2.xml max.2.xsl \
max.3.out max.3.xml max.3.xsl \
max.5.out max.5.xml max.5.xsl \
power.1.out power.1.xml power.1.xsl \
min.1.out min.1.xml min.1.xsl \
min.2.out min.2.xml min.2.xsl
CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
$(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running exslt math tests'
@(echo > .memdump)
@(for i in $(srcdir)/*.xsl ; do \
name=`basename $$i .xsl` ; \
if [ ! -f $(srcdir)/$$name.xml ] ; then continue ; fi ; \
log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \
$(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res 2>$$name.bad;\
if [ ! -f $(srcdir)/$$name.out ] ; then \
cp $$name.res $(srcdir)/$$name.out ; \
if [ -s $$name.bad ] ; then \
mv $$name.bad $(srcdir)/$$name.err ; \
fi ; \
else \
if [ ! -s $$name.res ] ; then \
echo "Fatal error, no $$name.res\n" ; \
else \
diff $(srcdir)/$$name.out $$name.res ; \
if [ -s $(srcdir)/$$name.err ] ; then \
diff $(srcdir)/$$name.err $$name.bad; \
else \
diff /dev/null $$name.bad; \
fi ; \
fi ; \
fi; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true`;\
if [ -n "$$log" ] ; then \
echo $$name result ; \
echo "$$log" ; \
fi ; \
rm -f $$name.res $$name.bad ; \
done)

View File

@ -1,45 +0,0 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
@(cd ../../../xsltproc ; $(MAKE) xsltproc)
EXTRA_DIST = \
eval.1.out eval.1.xml eval.1.xsl \
eval.2.out eval.2.xml eval.2.xsl eval.2.err \
eval.3.out eval.3.xml eval.3.xsl eval.3.err \
lineno.1.out lineno.1.xml lineno.1.xsl
CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
$(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running exslt saxon tests'
@(echo > .memdump)
@(for i in $(srcdir)/*.xsl ; do \
name=`basename $$i .xsl` ; \
if [ ! -f $(srcdir)/$$name.xml ] ; then continue ; fi ; \
log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \
$(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res 2>$$name.bad;\
if [ ! -f $(srcdir)/$$name.out ] ; then \
cp $$name.res $(srcdir)/$$name.out ; \
if [ -s $$name.bad ] ; then \
mv $$name.bad $(srcdir)/$$name.err ; \
fi ; \
else \
diff $(srcdir)/$$name.out $$name.res ; \
if [ -s $(srcdir)/$$name.err ] ; then \
diff $(srcdir)/$$name.err $$name.bad; \
else \
diff /dev/null $$name.bad; \
fi ; \
fi; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true`;\
if [ -n "$$log" ] ; then \
echo $$name result ; \
echo "$$log" ; \
fi ; \
rm -f $$name.res $$name.bad ; \
done)

View File

@ -1,50 +0,0 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
@(cd ../../../xsltproc ; $(MAKE) xsltproc)
EXTRA_DIST = \
difference.1.out difference.1.xml difference.1.xsl \
distinct.1.out distinct.1.xml distinct.1.xsl \
has-same-node.1.out has-same-node.1.xml has-same-node.1.xsl \
leading.1.out leading.1.xml leading.1.xsl \
trailing.1.out trailing.1.xml trailing.1.xsl
CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
$(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running exslt sets tests'
@(echo > .memdump)
@(for i in $(srcdir)/*.xsl ; do \
name=`basename $$i .xsl` ; \
if [ ! -f $(srcdir)/$$name.xml ] ; then continue ; fi ; \
log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \
$(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res 2>$$name.bad;\
if [ ! -f $(srcdir)/$$name.out ] ; then \
cp $$name.res $(srcdir)/$$name.out ; \
if [ -s $$name.bad ] ; then \
mv $$name.bad $(srcdir)/$$name.err ; \
fi ; \
else \
if [ ! -s $$name.res ] ; then \
echo "Fatal error, no $$name.res\n" ; \
else \
diff $(srcdir)/$$name.out $$name.res ; \
if [ -s $(srcdir)/$$name.err ] ; then \
diff $(srcdir)/$$name.err $$name.bad; \
else \
diff /dev/null $$name.bad; \
fi ; \
fi ; \
fi; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true`;\
if [ -n "$$log" ] ; then \
echo $$name result ; \
echo "$$log" ; \
fi ; \
rm -f $$name.res $$name.bad ; \
done)

View File

@ -1,53 +0,0 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
@(cd ../../../xsltproc ; $(MAKE) xsltproc)
EXTRA_DIST = \
align.1.xml align.1.xsl align.1.out \
padding.1.xml padding.1.xsl padding.1.out \
replace.1.xml replace.1.xsl replace.1.out \
split.1.xml split.1.xsl split.1.out \
tokenize.1.xml tokenize.1.xsl tokenize.1.out \
tokenize.2.xml tokenize.2.xsl tokenize.2.out \
tokenize.3.xml tokenize.3.xsl tokenize.3.out \
uri.xml uri.xsl uri.out
CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
$(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running exslt string tests'
@(echo > .memdump)
@(for i in $(srcdir)/*.xsl ; do \
name=`basename $$i .xsl` ; \
if [ ! -f $(srcdir)/$$name.xml ] ; then continue ; fi ; \
log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \
$(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res 2>$$name.bad;\
if [ ! -f $(srcdir)/$$name.out ] ; then \
cp $$name.res $(srcdir)/$$name.out ; \
if [ -s $$name.bad ] ; then \
mv $$name.bad $(srcdir)/$$name.err ; \
fi ; \
else \
if [ ! -s $$name.res ] ; then \
echo "Fatal error, no $$name.res\n" ; \
else \
diff $(srcdir)/$$name.out $$name.res ; \
if [ -s $(srcdir)/$$name.err ] ; then \
diff $(srcdir)/$$name.err $$name.bad; \
else \
diff /dev/null $$name.bad; \
fi ; \
fi ; \
fi; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true`;\
if [ -n "$$log" ] ; then \
echo $$name result ; \
echo "$$log" ; \
fi ; \
rm -f $$name.res $$name.bad ; \
done)

View File

@ -1,51 +0,0 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
@(cd ../../xsltproc ; $(MAKE) xsltproc)
EXTRA_DIST = \
evaluate.xml evaluate.xsl evaluate.out \
module.xml module.xsl module.out \
list.xml list.xsl list.out
CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
$(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running extensions tests'
@(echo > .memdump)
-@(for i in $(srcdir)/*.xml ; do \
if [ -d $$i ] ; then continue ; fi ; \
doc=`basename $$i .xml` ; \
j=$(srcdir)/$$doc*.xsl ; \
if [ ! -f $$j ] ; then continue ; fi ; \
if [ -d $$j ] ; then continue ; fi ; \
name=`basename $$j .xsl`; \
out=$(srcdir)/"$$name".out; \
err=$(srcdir)/"$$name".err; \
log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc $$j $$i \
> result.$$name 2>err.$$name; \
if [ ! -f $$out ] ; then \
cp result.$$name $$out ; \
if [ -s err.$$name ] ; then \
cp err.$$name $$err ; \
fi ; \
else \
diff $$out result.$$name; \
if [ -s $$err ] ; then \
diff $$err err.$$name; \
else \
diff /dev/null err.$$name; \
fi ; \
fi ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true`;\
if [ -n "$$log" ] ; then \
echo $$name result ; \
echo "$$log" ; \
fi ; \
rm -f result.$$name err.$$name; \
done)

View File

@ -24,11 +24,9 @@ $(top_builddir)/libxslt/libxslt.la:
$(top_builddir)/libexslt/libexslt.la: $(top_builddir)/libxslt/libxslt.la
cd $(top_builddir)/libexslt && $(MAKE) libexslt.la
.PHONY: tests fuzz-xpath fuzz-xslt
.PHONY: fuzz-xpath fuzz-xslt
tests:
fuzz: $(check_PROGRAMS)
check-local: $(check_PROGRAMS)
@echo '## Running fuzz target tests'
@./testTargets $(srcdir)

View File

@ -1,310 +0,0 @@
## Process this file with automake to produce Makefile.in
$(top_builddir)/xsltproc/xsltproc:
@(cd ../../xsltproc ; $(MAKE) xsltproc)
EXTRA_DIST = \
bug-1-.out bug-1-.xsl \
bug-2-.out bug-2-.xsl \
bug-3-.out bug-3-.xsl \
bug-4-.out bug-4-.xsl \
bug-5-.out bug-5-.xsl \
bug-6-.out bug-6-.xsl \
bug-7-.out bug-7-.xsl \
bug-8-.out bug-8-.xsl \
bug-9-.out bug-9-.xsl \
bug-10-.out bug-10-.xsl \
bug-11-.out bug-11-.xsl \
bug-12-.out bug-12-.xsl \
bug-13-.out bug-13-.xsl \
bug-14-.out bug-14-.xsl \
bug-15-.out bug-15-.xsl \
bug-16-.out bug-16-.xsl \
bug-17-.out bug-17-.xsl \
bug-18-.out bug-18-.xsl \
bug-19-.out bug-19-.xsl \
bug-20-.out bug-20-.xsl \
bug-21-.out bug-21-.xsl \
bug-22-.out bug-22-.xsl \
bug-23-.out bug-23-.xsl \
bug-24-.out bug-24-.xsl \
bug-25-.out bug-25-.xsl \
bug-26-.out bug-26-.xsl \
bug-27-.out bug-27-.xsl \
bug-28-.out bug-28-.xsl \
bug-29-.out bug-29-.xsl \
bug-30-.out bug-30-.xsl \
bug-31-.out bug-31-.xsl \
bug-32-.out bug-32-.xsl \
bug-33-.out bug-33-.xsl \
bug-35-.out bug-35-.xsl \
bug-36-.out bug-36-.xsl \
bug-36-inc.out bug-36-inc.xsl \
bug-37-.out bug-37-.xsl \
bug-37-inc.out bug-37-inc.xsl \
array.out array.xsl \
bug-38-.out bug-38-.xsl \
bug-39-.out bug-39-.xsl \
bug-40-.out bug-40-.xsl \
bug-41-.out bug-41-.xsl \
bug-42-.out bug-42-.xsl \
bug-43-.out bug-43-.xsl \
bug-44-.out bug-44-.xsl \
bug-45-.out bug-45-.xsl \
bug-46-.out bug-46-.xsl \
bug-47-.out bug-47-.xsl \
bug-48-.out bug-48-.xsl \
bug-49-.out bug-49-.xsl \
bug-50-.out bug-50-.xsl \
bug-52.out bug-52.xsl \
bug-53.out bug-53.xsl \
bug-54.out bug-54.xsl \
bug-55.out bug-55.xsl \
bug-56.out bug-56.xsl \
bug-57.out bug-57.xsl \
bug-59.out bug-59.xsl \
bug-60.out bug-60.xsl bug-60.err \
bug-61.out bug-61.xsl \
bug-62-inc.out bug-62-inc.xsl \
bug-62.out bug-62.xsl \
bug-63.out bug-63.xsl \
bug-64.out bug-64.xsl \
bug-65.ent bug-65.out bug-65.xsl \
bug-66.out bug-66.xsl \
bug-68.out bug-68.xsl \
bug-69.out bug-69.xsl \
bug-70.out bug-70.xsl \
bug-71.out bug-71.xsl \
bug-72.out bug-72.xsl \
bug-73.out bug-73.xsl \
bug-74.out bug-74.xsl \
bug-75.out bug-75.xsl \
bug-76.out bug-76.xsl \
bug-77.out bug-77.xsl \
bug-78.out bug-78.xsl \
bug-79.out bug-79.xsl \
bug-80.out bug-80.xsl \
bug-81.out bug-81.xsl \
bug-82.out bug-82.xsl \
bug-83.out bug-83.xsl \
bug-84.out bug-84.xsl \
bug-86.out bug-86.xsl \
bug-87.out bug-87.xsl \
bug-88.out bug-88.xsl \
bug-89.out bug-89.xsl \
bug-90.out bug-90.xsl \
bug-91.out bug-91.xsl \
bug-92.out bug-92.xsl \
bug-93.out bug-93.xsl \
bug-93-inc.out bug-93-inc.xsl \
bug-94.out bug-94.xsl \
bug-95.out bug-95.xsl \
bug-96.out bug-96.xsl \
bug-97.out bug-97.xsl \
bug-98.out bug-98.xsl \
bug-99.out bug-99.xsl \
bug-100.out bug-100.xsl \
bug-101.out bug-101.xsl \
bug-102.out bug-102.xsl \
bug-102-inc.out bug-102-inc.xsl \
bug-103.out bug-103.xsl \
bug-104.out bug-104.xsl \
bug-105.out bug-105.xsl \
bug-106.out bug-106.xsl \
bug-107.out bug-107.xsl \
bug-108.out bug-108.xsl \
bug-109.out bug-109.xsl \
bug-110.out bug-110.xsl bug-110.err \
bug-111.out bug-111.xsl \
bug-112.out bug-112.xsl \
bug-113.out bug-113.xsl \
bug-114.out bug-114.xsl \
bug-115.out bug-115.xsl \
bug-116.out bug-116.xsl \
bug-117.out bug-117.xsl \
bug-118.out bug-118.xsl \
bug-119.out bug-119.xsl \
bug-120.out bug-120.xsl \
bug-121.out bug-121.xsl \
bug-122.out bug-122.xsl \
bug-123.out bug-123.xsl \
bug-124.out bug-124.xsl \
bug-125.out bug-125.xsl \
bug-126.out bug-126.xsl \
bug-127.out bug-127.xsl \
bug-128.out bug-128.xsl \
bug-129.out bug-129.xsl \
bug-130.out bug-130.xsl \
bug-130-imp1.imp bug-130-imp2.imp bug-130-imp3.imp bug-130-imp4.imp \
bug-131.out bug-131.xsl bug-131-imp.imp \
bug-132.out bug-132.xsl \
bug-133.out bug-133.xsl \
bug-134.out bug-134.xsl \
bug-135.out bug-135.xsl \
bug-136.out bug-136.xsl \
bug-137.imp bug-137.out bug-137.xsl \
bug-138.out bug-138.xsl \
bug-139.out bug-139.xsl \
bug-140.out bug-140.xsl \
bug-141.out bug-141.xsl \
bug-142.out bug-142.xsl \
bug-143.out bug-143.xsl \
bug-144.out bug-144.xsl \
bug-145.out bug-145.xsl bug-145.err \
bug-146.out bug-146.xsl \
bug-147.out bug-147.xsl \
bug-147-1.imp bug-147-2.imp bug-147-3.imp \
bug-147-4.imp bug-147-5.imp bug-147-6.imp \
bug-148.out bug-148.xsl \
bug-149.out bug-149.xsl \
bug-150.out bug-150.xsl \
bug-151.out bug-151.xsl \
bug-152.out bug-152.xsl \
bug-153.out bug-153.xsl \
bug-154.out bug-154.xsl \
bug-155.out bug-155.xsl \
bug-156.err bug-156.out bug-156.xsl \
bug-156.imp1.imp bug-156.imp2.imp \
bug-157.err bug-157.out bug-157.xsl \
bug-158.out bug-158.xsl \
bug-159.out bug-159.xsl \
bug-160.out bug-160.xsl \
bug-161.out bug-161.xsl \
bug-163.out bug-163.xsl \
bug-164.out bug-164.xsl \
bug-165.out bug-165.xsl bug-165.err \
bug-166.out bug-166.xsl \
bug-167.out bug-167.xsl \
bug-168.out bug-168.xsl \
bug-169.out bug-169.xsl bug-169.imp \
bug-170.out bug-170.xsl \
bug-171.out bug-171.xsl \
bug-172.out bug-172.xsl \
bug-173.out bug-173.xsl \
bug-174.out bug-174.xsl bug-174.err \
bug-175.out bug-175.xsl bug-175.err \
bug-176.out bug-176.xsl \
bug-177.out bug-177.xsl \
bug-178.out bug-178.xsl \
bug-179.out bug-179.xsl \
bug-180.out bug-180.xsl bug-180.err \
bug-181.out bug-181.xsl \
bug-182.out bug-182.xsl \
bug-183.out bug-183.xsl \
bug-184.out bug-184.xsl bug-184.err \
bug-186.out bug-186.xsl \
bug-187.out bug-187.xsl bug-187.err \
bug-188.out bug-188.xsl bug-188-imp.out bug-188-imp.xsl \
bug-189.out bug-189.xsl \
bug-190.out bug-190.xsl bug-190-imp.out bug-190-imp.xsl \
bug-191.out bug-191.xsl bug-191.err bug-191-imp.out bug-191-imp.xsl \
bug-192.out bug-192.xsl \
bug-193.out bug-193.xsl \
bug-194.out bug-194.xsl bug-194.err \
bug-195.out bug-195.xsl \
bug-196.out bug-196.xsl \
bug-197.out bug-197.xsl \
bug-198.out bug-198.xsl \
bug-199.out bug-199.xsl \
bug-200.out bug-200.xsl \
bug-201.out bug-201.xsl bug-201.err \
bug-202.out bug-202.xsl bug-202.err \
bug-203.out bug-203.xsl bug-203.err \
bug-204.out bug-204.xsl bug-204.err \
bug-205.out bug-205.xsl \
bug-206.out bug-206.xsl \
bug-207.out bug-207.xsl \
bug-208.out bug-208.xsl bug-208.err \
bug-209.out bug-209.xsl \
bug-210.out bug-210.xsl \
bug-211.out bug-211.xsl \
bug-212.out bug-212.xsl \
bug-213.out bug-213.xsl \
bug-214.out bug-214.xsl \
bug-215.out bug-215.xsl bug-215.err \
bug-216.out bug-216.xsl \
bug-217.out bug-217.xsl \
bug-218.out bug-218.xsl \
bug-219.out bug-219.xsl \
bug-220.out bug-220.xsl \
bug-221.out bug-221.xsl \
bug-222.out bug-222.xsl \
character.out character.xsl \
character2.out character2.xsl \
itemschoose.out itemschoose.xsl \
inner.xsl \
date_add.out date_add.xsl
CLEANFILES = .memdump
valgrind:
@echo '## Running the regression tests under Valgrind'
$(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
test tests: $(top_builddir)/xsltproc/xsltproc
@echo '## Running general tests'
@(echo > .memdump)
-@(for i in $(srcdir)/../docs/*.xml ; do \
if [ -d $$i ] ; then continue ; fi ; \
doc=`basename $$i .xml` ; \
for j in $(srcdir)/$$doc*.xsl ; do \
if [ ! -f $$j ] ; then continue ; fi ; \
if [ -d $$j ] ; then continue ; fi ; \
name=`basename $$j .xsl`; \
out=$(srcdir)/"$$name".out; \
err=$(srcdir)/"$$name".err; \
log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc --maxdepth 200 $$j $$i \
> result.$$name 2>err.$$name; \
if [ ! -f $$out ] ; then \
cp result.$$name $$out ; \
if [ -s err.$$name ] ; then \
cp err.$$name $$err ; \
fi ; \
else \
diff $$out result.$$name; \
if [ -s $$err ] ; then \
diff $$err err.$$name; \
else \
diff /dev/null err.$$name; \
fi ; \
fi ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true`;\
if [ -n "$$log" ] ; then \
echo $$name result ; \
echo "$$log" ; \
fi ; \
rm -f result.$$name err.$$name; \
done ; done)
@echo '## Running general tests without dictionaries'
-@(for i in $(srcdir)/../docs/*.xml ; do \
if [ -d $$i ] ; then continue ; fi ; \
doc=`basename $$i .xml` ; \
for j in $(srcdir)/$$doc*.xsl ; do \
if [ ! -f $$j ] ; then continue ; fi ; \
if [ -d $$j ] ; then continue ; fi ; \
name=`basename $$j .xsl`; \
out=$(srcdir)/"$$name".out; \
err=$(srcdir)/"$$name".err; \
log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc --nodict --maxdepth 200 $$j $$i \
> result.$$name 2>err.$$name; \
if [ ! -f $$out ] ; then \
cp result.$$name $$out ; \
if [ -s err.$$name ] ; then \
cp err.$$name $$err ; \
fi ; \
else \
diff $$out result.$$name; \
if [ -s $$err ] ; then \
diff $$err err.$$name; \
else \
diff /dev/null err.$$name; \
fi ; \
fi ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true`;\
if [ -n "$$log" ] ; then \
echo $$name result ; \
echo "$$log" ; \
fi ; \
rm -f result.$$name err.$$name; \
done ; done)

View File

@ -10,7 +10,7 @@
<xsl:output method="html" indent="no"/>
<xsl:variable name="g.doc.root" select="document('../docs/bug-130.doc')"/>
<xsl:variable name="g.doc.root" select="document('bug-130.doc')"/>
<xsl:template match="/">
<html>

Some files were not shown because too many files have changed in this diff Show More