components/re2c/patches/fix-tests.patch
author Lukas Rovensky <Lukas.Rovensky@oracle.com>
Fri, 16 Oct 2015 04:21:46 -0700
changeset 4951 8ac3d1ff666a
parent 4945 d9d54aa673b6
child 5589 35e7f040df70
permissions -rw-r--r--
22040704 update COMPONENT_BUGDB in components/proftpd/Makefile

We need to adjust the script that runs the tests to get them out of the
build directory not the original source directory and we need to be able
to specify an alternate re2c binary when running system tests.

This patch should be sent upstream.

--- re2c-0.14.2/run_tests.sh.in.orig	2015-10-13 06:22:20.787156312 -0700
+++ re2c-0.14.2/run_tests.sh.in	2015-10-13 06:33:42.229167381 -0700
@@ -14,7 +14,7 @@
 if uname|grep -q -i 'CYGWIN' && test -x "@WINBUILDDIR@/re2c.exe"; then
 re2c='@WINBUILDDIR@/re2c.exe'
 else
-re2c='@builddir@/re2c'
+re2c="${RE2C_BIN:-@builddir@/re2c}"
 fi
 if test ! -x "${re2c}"; then
   echo "Cannot find re2c executable (${re2c})."
@@ -33,7 +33,7 @@
 fi
 echo "Diffing: ${diff}"
 if test $# = 0; then
-tests=`for i in test lessons; do find @top_srcdir@/$i -name '*.re'; done|sort`
+tests=`for i in test lessons; do find ./$i -name '*.re'; done|sort`
 else
 tests="$@"
 fi;