doc: first real reference for the Nit language
[nit.git] / tests / tests.sh
index b208c71..2dfc5e8 100755 (executable)
@@ -135,7 +135,7 @@ for ii in "$@"; do
 
        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
@@ -182,12 +182,12 @@ for ii in "$@"; do
                        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
-                               "./$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
-                               "./$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"
@@ -206,20 +206,19 @@ for ii in "$@"; do
                        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 ""
-                                               echo "./$ff.bin" $args
+                                               echo "NIT_NO_STACK=1 ./$ff.bin" $args
                                        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
-                                               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"
@@ -234,7 +233,7 @@ for ii in "$@"; do
                                                cat "$fff.err" >> "$fff.res"
                                        fi
                                        process_result $fff
-                               done
+                               done < $fargs
                        fi
                else
                        echo -n "! "