components/cloog/patches/006-checker.sh.patch
changeset 5359 57359db17e2a
equal deleted inserted replaced
5358:fe333c2ff3dc 5359:57359db17e2a
       
     1 # These environment avariables must be explicitly set to be
       
     2 # empty, otherwise the CLooG test harness does not run correctly.
       
     3 --- test/checker.sh	2014-12-08 02:05:37.000000000 -0800
       
     4 +++ test/checker.sh	2015-07-23 10:01:46.415187505 -0700
       
     5 @@ -1,4 +1,4 @@
       
     6 -#!/bin/sh
       
     7 +#!/bin/bash --noprofile
       
     8  #
       
     9  #   /**-------------------------------------------------------------------**
       
    10  #    **                              CLooG                                **
       
    11 @@ -35,6 +35,20 @@
       
    12  # *                                                                           *
       
    13  # *****************************************************************************/
       
    14  
       
    15 +set -o posix
       
    16 +export PATH="/usr/gnu/bin:/usr/bin:.:/usr/sbin"
       
    17 +#
       
    18 +# Avoid "unbound variable" error messages from bash.
       
    19 +#
       
    20 +export EXEEXT=""
       
    21 +export TEST_NAME=""
       
    22 +export TEST_FILES=""
       
    23 +export TEST_GLOBAL_OPTIONS=""
       
    24 +export TEST_INPUT_EXTENSION=""
       
    25 +export TEST_OUTPUT_EXTENSION=""
       
    26 +export TEST_TYPE=""
       
    27 +export LD_LIBRARY_PATH=""
       
    28 +
       
    29  # This is the main test script of CLooG. It checks that CLooG generates
       
    30  # a convenient output for an input set of tests, according to some
       
    31  # parameters (see below). Two checking policies are possible: simply
       
    32 @@ -67,6 +81,9 @@
       
    33                             ## - "run" if the checking policy is to generate,
       
    34                             ##   compile and run, generate only otherwise
       
    35  
       
    36 +export TEST_NAME TEST_FILES TEST_GLOBAL_OPTIONS TEST_INPUT_EXTENSION \
       
    37 +  TEST_OUTPUT_EXTENSION TEST_TYPE
       
    38 +
       
    39  failedtest=0;
       
    40  cloog=$top_builddir/cloog$EXEEXT
       
    41  echo "             /*-----------------------------------------------*"