components/re2c/patches/fix-tests.patch
changeset 4945 d9d54aa673b6
child 5589 35e7f040df70
equal deleted inserted replaced
4944:2efba29a3b65 4945:d9d54aa673b6
       
     1 We need to adjust the script that runs the tests to get them out of the
       
     2 build directory not the original source directory and we need to be able
       
     3 to specify an alternate re2c binary when running system tests.
       
     4 
       
     5 This patch should be sent upstream.
       
     6 
       
     7 --- re2c-0.14.2/run_tests.sh.in.orig	2015-10-13 06:22:20.787156312 -0700
       
     8 +++ re2c-0.14.2/run_tests.sh.in	2015-10-13 06:33:42.229167381 -0700
       
     9 @@ -14,7 +14,7 @@
       
    10  if uname|grep -q -i 'CYGWIN' && test -x "@WINBUILDDIR@/re2c.exe"; then
       
    11  re2c='@WINBUILDDIR@/re2c.exe'
       
    12  else
       
    13 -re2c='@builddir@/re2c'
       
    14 +re2c="${RE2C_BIN:-@builddir@/re2c}"
       
    15  fi
       
    16  if test ! -x "${re2c}"; then
       
    17    echo "Cannot find re2c executable (${re2c})."
       
    18 @@ -33,7 +33,7 @@
       
    19  fi
       
    20  echo "Diffing: ${diff}"
       
    21  if test $# = 0; then
       
    22 -tests=`for i in test lessons; do find @top_srcdir@/$i -name '*.re'; done|sort`
       
    23 +tests=`for i in test lessons; do find ./$i -name '*.re'; done|sort`
       
    24  else
       
    25  tests="$@"
       
    26  fi;