Re: libxslt test run outside of srcdir (possible patch)

Nick Wellnhofer <[email protected]> Fri, 12 Oct 2012 17:57:30 +0200
Newsgroups gmane.comp.gnome.lib.xslt
Message-ID <[email protected]>
On 12/10/2012 11:18, Petr Sumbera wrote:
> Please see attached patch which tries to fix it. Well, some of these are
> not very nice but finally I have clean test run... :-)

These changes look particularly ugly:

@@ -217,6 +217,10 @@
  			cp err.$$name $$err ; \
  		fi ; \
  	  else \
+		grep '../docs/' $$out >/dev/null && \
+		  sed 's|/docs|/general|' result.$$name | \
+		  sed 's|$(srcdir)|../docs|' > result.$$name.tmp && \
+		  mv result.$$name.tmp result.$$name; \
  	  	diff $$out result.$$name; \
  		if [ -s $$err ] ; then \
  	  		diff $$err err.$$name; \

It might be better to first canonicalize the "docs" path:

     real_docs_path=`cd $(srcdir)/../docs && pwd`

And then replace $real_docs_path with "../docs" in the result file. I'm 
not sure if this works, though.

Nick