brintos

brintos / llvm-project-archived public Read only

0
0
Text · 540 B · 16ae020 Raw
28 lines · plain
1#!/bin/sh2 3EXEEXT=@EXEEXT@4GREP=@GREP@5SED=@SED@6srcdir=@srcdir@7 8failed=09 10for i in $srcdir/test_inputs/schedule/*.sc; do11	echo $i;12	base=`basename $i .sc`13	test=test-$base.st14	dir=`dirname $i`15	ref=$dir/$base.st16	options=`$GREP 'OPTIONS:' $i | $SED 's/.*://'`17	for o in --schedule-whole-component --no-schedule-whole-component; do18		./isl_schedule$EXEEXT $o $options < $i > $test &&19		    ./isl_schedule_cmp$EXEEXT $ref $test && rm $test20		if [ $? -ne 0 ]; then21			echo $o $options22			failed=123		fi24	done25done26 27test $failed -eq 0 || exit28