summaryrefslogtreecommitdiff
path: root/tests/REC
diff options
context:
space:
mode:
authorDaniel Richard <oss@teragram.com>2012-09-07 16:11:07 +0800
committerDaniel Veillard <veillard@redhat.com>2012-09-07 16:11:07 +0800
commit343ef27424c708619c7089aca42c67576b62d360 (patch)
treef39cd8b2e5a5302636e7802749762a499beb9268 /tests/REC
parent0ae3194eb58d954d0896ef05e3dacf76350a8bc2 (diff)
downloadlibxslt-343ef27424c708619c7089aca42c67576b62d360.tar.gz
libxslt-343ef27424c708619c7089aca42c67576b62d360.tar.bz2
libxslt-343ef27424c708619c7089aca42c67576b62d360.zip
Cleanups some of the test makefiles
* Added missing $(srcdir)/ qualification to some "[ -s ... ]" stderr-output reference file checks * When printing log output for failed tests, quote the log variable, so that diff output is formatted the way it should be (with newlines!) and is not all collapsed into one line * Updated tests/REC/test-7.1.1-3.out with current output to get rid of a spurious test failure
Diffstat (limited to 'tests/REC')
-rw-r--r--tests/REC/Makefile.am16
-rw-r--r--tests/REC/test-7.1.1-3.out2
2 files changed, 9 insertions, 9 deletions
diff --git a/tests/REC/Makefile.am b/tests/REC/Makefile.am
index 6f89310c..49f09f08 100644
--- a/tests/REC/Makefile.am
+++ b/tests/REC/Makefile.am
@@ -107,7 +107,7 @@ test tests: $(top_builddir)/xsltproc/xsltproc
echo "Fatal error, no $$name.res\n" ; \
else \
diff $(srcdir)/$$name.out $$name.res ; \
- if [ -s $$name.err ] ; then \
+ if [ -s $(srcdir)/$$name.err ] ; then \
diff $(srcdir)/$$name.err $$name.bad ; \
else \
diff /dev/null $$name.bad ; \
@@ -118,7 +118,7 @@ test tests: $(top_builddir)/xsltproc/xsltproc
grep -v "MEMORY ALLOCATED : 0" || true` ; \
if [ -n "$$log" ] ; then \
echo $$name result ; \
- echo $$log ; \
+ echo "$$log" ; \
fi ; \
rm -f $$name.res $$name.bad ; \
done)
@@ -136,7 +136,7 @@ test tests: $(top_builddir)/xsltproc/xsltproc
echo "Fatal error, no $$name.res\n" ; \
else \
diff $(srcdir)/$$name.stand.out $$name.res ; \
- if [ -s $$name.stand.err ] ; then \
+ if [ -s $(srcdir)/$$name.stand.err ] ; then \
diff $(srcdir)/$$name.stand.err $$name.bad ; \
else \
diff /dev/null $$name.bad; \
@@ -146,7 +146,7 @@ test tests: $(top_builddir)/xsltproc/xsltproc
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` ; \
if [ -n "$$log" ] ; then \
echo $$name result ; \
- echo $$log ; \
+ echo "$$log" ; \
fi ; \
rm -f $$name.res $$name.bad ; \
done)
@@ -169,7 +169,7 @@ test tests: $(top_builddir)/xsltproc/xsltproc
echo "Fatal error, no $$name.res\n" ; \
else \
diff $(srcdir)/$$name.out $$name.res ; \
- if [ -s $$name.err ] ; then \
+ if [ -s $(srcdir)/$$name.err ] ; then \
diff $(srcdir)/$$name.err $$name.bad ; \
else \
diff /dev/null $$name.bad ; \
@@ -180,7 +180,7 @@ test tests: $(top_builddir)/xsltproc/xsltproc
grep -v "MEMORY ALLOCATED : 0" || true` ; \
if [ -n "$$log" ] ; then \
echo $$name result ; \
- echo $$log ; \
+ echo "$$log" ; \
fi ; \
rm -f $$name.res $$name.bad ; \
done)
@@ -198,7 +198,7 @@ test tests: $(top_builddir)/xsltproc/xsltproc
echo "Fatal error, no $$name.res\n" ; \
else \
diff $(srcdir)/$$name.stand.out $$name.res ; \
- if [ -s $$name.stand.err ] ; then \
+ if [ -s $(srcdir)/$$name.stand.err ] ; then \
diff $(srcdir)/$$name.stand.err $$name.bad ; \
else \
diff /dev/null $$name.bad; \
@@ -208,7 +208,7 @@ test tests: $(top_builddir)/xsltproc/xsltproc
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true` ; \
if [ -n "$$log" ] ; then \
echo $$name result ; \
- echo $$log ; \
+ echo "$$log" ; \
fi ; \
rm -f $$name.res $$name.bad ; \
done)
diff --git a/tests/REC/test-7.1.1-3.out b/tests/REC/test-7.1.1-3.out
index 29c31b70..00c6f297 100644
--- a/tests/REC/test-7.1.1-3.out
+++ b/tests/REC/test-7.1.1-3.out
@@ -1,2 +1,2 @@
<?xml version="1.0"?>
-<out>SUCCESS</out>
+<out xmlns:doc="http://example.org/doc">SUCCESS</out>