summaryrefslogtreecommitdiff
path: root/tests/extensions
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2022-09-07 16:43:06 +0200
committerNick Wellnhofer <wellnhofer@aevum.de>2022-09-07 22:18:55 +0200
commit971d5c4dd158095194759a9c7173d47c90645444 (patch)
tree32a686c1519f228bdb60641e1d2d2a21e528ed7a /tests/extensions
parentcc64f2a78b535ba5f8e05448925f56d39d270d65 (diff)
downloadlibxslt-971d5c4dd158095194759a9c7173d47c90645444.tar.gz
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.
Diffstat (limited to 'tests/extensions')
-rw-r--r--tests/extensions/Makefile.am51
1 files changed, 0 insertions, 51 deletions
diff --git a/tests/extensions/Makefile.am b/tests/extensions/Makefile.am
deleted file mode 100644
index 06ac2368..00000000
--- a/tests/extensions/Makefile.am
+++ /dev/null
@@ -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)
-