projects
/
platform
/
upstream
/
isl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
076a978
)
codegen_test.sh: avoid use of constructs not supported by /bin/sh on Solaris
author
Sven Verdoolaege
<skimo@kotnet.org>
Thu, 28 Feb 2013 15:59:03 +0000
(16:59 +0100)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Thu, 28 Feb 2013 15:59:03 +0000
(16:59 +0100)
Reported-by: Amos <a.goo0h@gmail.com>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
codegen_test.sh.in
patch
|
blob
|
history
diff --git
a/codegen_test.sh.in
b/codegen_test.sh.in
index
4a4852d
..
dd0c488
100644
(file)
--- a/
codegen_test.sh.in
+++ b/
codegen_test.sh.in
@@
-8,8
+8,10
@@
for i in $srcdir/test_inputs/codegen/*.in \
$srcdir/test_inputs/codegen/omega/*.in \
$srcdir/test_inputs/codegen/pldi2012/*.in; do
echo $i;
- test=test-`basename $i .in`.c
- ref=${i%.in}.c
+ base=`basename $i .in`
+ test=test-$base.c
+ dir=`dirname $i`
+ ref=$dir/$base.c
(./isl_codegen$EXEEXT < $i > $test &&
diff -uw $ref $test && rm $test) || exit
done