~ubuntu-branches/ubuntu/trusty/cloog/trusty

« back to all changes in this revision

Viewing changes to isl/codegen_test.sh.in

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-10-17 15:54:24 UTC
  • mfrom: (3.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20131017155424-3q1gw7yhddylfkpj
Tags: 0.18.1-1
* New upstream version.
* Add a comment to build-depend on libpod-latex-perl | perl (<< 5.17.0),
  when the documentation is built. Closes: #711681.
* Use dh_autotools-dev to update config.{sub,guess}. Closes: #719957.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
EXEEXT=@EXEEXT@
4
4
srcdir=@srcdir@
5
5
 
 
6
failed=0
 
7
 
6
8
for i in $srcdir/test_inputs/codegen/*.in \
7
9
                $srcdir/test_inputs/codegen/cloog/*.in \
8
10
                $srcdir/test_inputs/codegen/omega/*.in \
9
11
                $srcdir/test_inputs/codegen/pldi2012/*.in; do
10
12
        echo $i;
11
 
        test=test-`basename $i .in`.c
12
 
        ref=${i%.in}.c
 
13
        base=`basename $i .in`
 
14
        test=test-$base.c
 
15
        dir=`dirname $i`
 
16
        ref=$dir/$base.c
13
17
        (./isl_codegen$EXEEXT < $i > $test &&
14
 
         diff -uw $ref $test && rm $test) || exit
 
18
         diff -uw $ref $test && rm $test) || failed=1
15
19
done
 
20
 
 
21
test $failed -eq 0 || exit