1#!/bin/sh 2 3EXEEXT=@EXEEXT@ 4GREP=@GREP@ 5SED=@SED@ 6srcdir=@srcdir@ 7 8failed=0 9 10for i in $srcdir/test_inputs/schedule/*.sc; do 11 echo $i; 12 base=`basename $i .sc` 13 test=test-$base.st 14 dir=`dirname $i` 15 ref=$dir/$base.st 16 options=`$GREP 'OPTIONS:' $i | $SED 's/.*://'` 17 for o in --schedule-whole-component --no-schedule-whole-component; do 18 ./isl_schedule$EXEEXT $o $options < $i > $test && 19 ./isl_schedule_cmp$EXEEXT $ref $test && rm $test 20 if [ $? -ne 0 ]; then 21 echo $o $options 22 failed=1 23 fi 24 done 25done 26 27test $failed -eq 0 || exit 28