summaryrefslogtreecommitdiff
path: root/tests/namespaces/Makefile.am
blob: d034e4c7864e15a88eb4418b4cc78aaa4d231b5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
## Process this file with automake to produce Makefile.in

$(top_builddir)/libxslt/xsltproc:
	@(cd ../../libxslt ; make xsltproc)

EXTRA_DIST = \
    tst.xml tst.xsl tst.out \
    tst2.xml tst2.xsl tst2.out \
    tst3.xml tst3.xsl tst3.out \
    extra.out extra.xml extra.xsl \
    extra2.out extra2.xml extra2.xsl

all: test

test tests: $(top_builddir)/libxslt/xsltproc
	@(rm -f .memdump ; touch .memdump)
	@(for i in $(srcdir)/*.xml ; do \
	  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; \
	  echo $$j ; \
	  $(top_builddir)/libxslt/xsltproc $$j $$i > result.$$name;\
	  if [ ! -f $$out ] ; then cp result.$$name $$out ; \
	  else diff $$out result.$$name ; fi ; \
	  grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
	  rm -f result.$$name ; \
	  done)