summaryrefslogtreecommitdiff
path: root/tests/general/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'tests/general/Makefile.am')
-rw-r--r--tests/general/Makefile.am28
1 files changed, 18 insertions, 10 deletions
diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am
index 0c2ef307..0611667b 100644
--- a/tests/general/Makefile.am
+++ b/tests/general/Makefile.am
@@ -209,26 +209,30 @@ test tests: $(top_builddir)/xsltproc/xsltproc
if [ ! -f $$j ] ; then continue ; fi ; \
if [ -d $$j ] ; then continue ; fi ; \
name=`basename $$j .xsl`; \
+ real_docs_path=`cd $(srcdir)/../docs && pwd`; \
out=$(srcdir)/"$$name".out; \
err=$(srcdir)/"$$name".err; \
log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc $$j $$i \
- > result.$$name 2>err.$$name; \
+ 2>&1 > result.$$name | sed 's|$(srcdir)|.|' >err.$$name; \
if [ ! -f $$out ] ; then \
- cp result.$$name $$out ; \
+ cp result.$$name $$out ; \
if [ -s err.$$name ] ; then \
cp err.$$name $$err ; \
fi ; \
else \
- diff $$out result.$$name; \
+ grep '../docs/' $$out >/dev/null && \
+ sed "s|$$real_docs_path|../docs|" result.$$name > \
+ result.$$name.tmp && mv result.$$name.tmp result.$$name; \
+ diff $$out result.$$name; \
if [ -s $$err ] ; then \
- diff $$err err.$$name; \
+ 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 $$name result ; \
echo "$$log" ; \
fi ; \
rm -f result.$$name err.$$name; \
@@ -241,26 +245,30 @@ test tests: $(top_builddir)/xsltproc/xsltproc
if [ ! -f $$j ] ; then continue ; fi ; \
if [ -d $$j ] ; then continue ; fi ; \
name=`basename $$j .xsl`; \
+ real_docs_path=`cd $(srcdir)/../docs && pwd`; \
out=$(srcdir)/"$$name".out; \
err=$(srcdir)/"$$name".err; \
log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc --nodict $$j $$i \
- > result.$$name 2>err.$$name; \
+ 2>&1 > result.$$name | sed 's|$(srcdir)|.|' >err.$$name; \
if [ ! -f $$out ] ; then \
- cp result.$$name $$out ; \
+ cp result.$$name $$out ; \
if [ -s err.$$name ] ; then \
cp err.$$name $$err ; \
fi ; \
else \
- diff $$out result.$$name; \
+ grep '../docs/' $$out >/dev/null && \
+ sed "s|$$real_docs_path|../docs|" result.$$name > \
+ result.$$name.tmp && mv result.$$name.tmp result.$$name; \
+ diff $$out result.$$name; \
if [ -s $$err ] ; then \
- diff $$err err.$$name; \
+ 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 $$name result ; \
echo "$$log" ; \
fi ; \
rm -f result.$$name err.$$name; \