Merge: Activate VM
authorJean Privat <jean@pryen.org>
Sat, 20 Dec 2014 01:24:32 +0000 (20:24 -0500)
committerJean Privat <jean@pryen.org>
Sat, 20 Dec 2014 01:24:32 +0000 (20:24 -0500)
Add option `--vm` to `nit` that allows users (and jenkins) to run the VM from bin/

@jpages c'est pour toi!

Pull-Request: #1051
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

1  2 
tests/tests.sh

diff --combined tests/tests.sh
@@@ -319,7 -319,7 +319,7 @@@ need_skip(
  
        # Skip by OS
        os_skip_file=`uname`.skip
 -      if test -e $os_skip_file && echo "$1" | grep -f "$os_skip_file"; then
 +      if test -e $os_skip_file && echo "$1" | grep -f "$os_skip_file" >/dev/null 2>&1; then
                echo "=> $2: [skip os]"
                echo >>$xml "<testcase classname='`xmlesc "$3"`' name='`xmlesc "$2"`' `timestamp`><skipped/></testcase>"
                return 0
@@@ -418,6 -418,8 +418,8 @@@ case $engine i
                ;;
        nitvm)
                isinterpret=true
+               enginebinname=nit
+               OPT="--vm $OPT"
                savdirs="sav/niti/"
                ;;
        emscripten)