Permalink
Browse files

Fixed all the tests makefiles to actaully references the tests

files from $(srcdir) and use echo > .memdump instead of the less
portable touch .memdump Daniel
  • Loading branch information...
1 parent f546baf commit 0414c3c55aa8701312c26f756407b1196d0f5a7d Daniel Veillard committed May 3, 2001
Showing with 9 additions and 9 deletions.
  1. +6 −6 tests/REC/Makefile.am
  2. +3 −3 tests/REC1/Makefile.am
View
@@ -67,14 +67,14 @@ EXTRA_DIST = \
all: test
test tests: $(top_builddir)/libxslt/xsltproc
- @(rm -f .memdump ; touch .memdump)
- @(for i in *.xsl ; do \
+ @(echo > .memdump)
+ @(for i in $(srcdir)/*.xsl ; do \
name=`basename $$i .xsl` ; \
- if [ ! -f $$name.xml ] ; then continue ; fi ; \
+ if [ ! -f $(srcdir)/$$name.xml ] ; then continue ; fi ; \
echo $$name.xml ; \
- $(top_builddir)/libxslt/xsltproc $$name.xsl $$name.xml > $$name.res;\
- if [ ! -f $$name.out ] ; then cp $$name.res $$name.out ; \
- else diff $$name.out $$name.res ; fi ; \
+ $(top_builddir)/libxslt/xsltproc $(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res;\
+ if [ ! -f $(srcdir)/$$name.out ] ; then cp $$name.res $(srcdir)/$$name.out ; \
+ else diff $(srcdir)/$$name.out $$name.res ; fi ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
rm -f $$name.res ; \
done)
@@ -8,9 +8,9 @@ EXTRA_DIST = doc.xsl doc.xml doc.dtd result.xml
all: test
test tests: $(top_builddir)/libxslt/xsltproc
- @(rm -f .memdump ; touch .memdump)
- @($(top_builddir)/libxslt/xsltproc doc.xsl doc.xml > doc.res ; \
- diff result.xml doc.res ; \
+ @(echo > .memdump)
+ @($(top_builddir)/libxslt/xsltproc $(srcdir)/doc.xsl $(srcdir)/doc.xml > doc.res ; \
+ diff $(srcdir)/result.xml doc.res ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
rm -f doc.res)

0 comments on commit 0414c3c

Please sign in to comment.