nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: change identifier enum to values
[nit.git]
/
tests
/
tests.sh
diff --git
a/tests/tests.sh
b/tests/tests.sh
index
b208c71
..
2dfc5e8
100755
(executable)
--- a/
tests/tests.sh
+++ b/
tests/tests.sh
@@
-135,7
+135,7
@@
for ii in "$@"; do
tmp=${ii/../AA}
if [ "x$tmp" = "x$ii" ]; then
tmp=${ii/../AA}
if [ "x$tmp" = "x$ii" ]; then
- oincludes="-I . -I ../lib/standard"
+ oincludes="-I . -I ../lib/standard -I ../lib/standard/collection"
else
oincludes=""
fi
else
oincludes=""
fi
@@
-182,12
+182,12
@@
for ii in "$@"; do
args=""
if [ "x$verbose" = "xtrue" ]; then
echo ""
args=""
if [ "x$verbose" = "xtrue" ]; then
echo ""
- echo "./$ff.bin" $args
+ echo "NIT_NO_STACK=1 ./$ff.bin" $args
fi
if [ -f "$f.inputs" ]; then
fi
if [ -f "$f.inputs" ]; then
- "./$ff.bin" $args < "$f.inputs" > "$ff.res" 2>"$ff.err"
+ NIT_NO_STACK=1 "./$ff.bin" $args < "$f.inputs" > "$ff.res" 2>"$ff.err"
else
else
- "./$ff.bin" $args > "$ff.res" 2>"$ff.err"
+ NIT_NO_STACK=1 "./$ff.bin" $args > "$ff.res" 2>"$ff.err"
fi
if [ "x$verbose" = "xtrue" ]; then
cat "$ff.res"
fi
if [ "x$verbose" = "xtrue" ]; then
cat "$ff.res"
@@
-206,20
+206,19
@@
for ii in "$@"; do
if [ -f "$f.args" ]; then
fargs=$f.args
cptr=0
if [ -f "$f.args" ]; then
fargs=$f.args
cptr=0
- cat $fargs |
while read line; do
((cptr=cptr+1))
args=$line
fff=$ff"_args"$cptr
if [ "x$verbose" = "xtrue" ]; then
echo ""
while read line; do
((cptr=cptr+1))
args=$line
fff=$ff"_args"$cptr
if [ "x$verbose" = "xtrue" ]; then
echo ""
- echo "./$ff.bin" $args
+ echo "NIT_NO_STACK=1 ./$ff.bin" $args
fi
echo -n "==> args #"$cptr " "
if [ -f "$f.inputs" ]; then
fi
echo -n "==> args #"$cptr " "
if [ -f "$f.inputs" ]; then
- "./$ff.bin" $args < "$f.inputs" > "$fff.res" 2>"$fff.err"
+ NIT_NO_STACK=1 "./$ff.bin" $args < "$f.inputs" > "$fff.res" 2>"$fff.err"
else
else
- sh -c "./$ff.bin ''$args > $fff.res 2>$fff.err"
+ sh -c "NIT_NO_STACK=1 ./$ff.bin ''$args > $fff.res 2>$fff.err"
fi
if [ "x$verbose" = "xtrue" ]; then
cat "$fff.res"
fi
if [ "x$verbose" = "xtrue" ]; then
cat "$fff.res"
@@
-234,7
+233,7
@@
for ii in "$@"; do
cat "$fff.err" >> "$fff.res"
fi
process_result $fff
cat "$fff.err" >> "$fff.res"
fi
process_result $fff
- done
+ done < $fargs
fi
else
echo -n "! "
fi
else
echo -n "! "