From: Jean Privat Date: Fri, 13 Jun 2014 19:49:31 +0000 (-0400) Subject: tests: add tests for nitvm X-Git-Tag: v0.6.6~30^2 X-Git-Url: http://nitlanguage.org tests: add tests for nitvm Signed-off-by: Jean Privat --- diff --git a/tests/niti.skip b/tests/niti.skip index 0cdafa4..f9489e3 100644 --- a/tests/niti.skip +++ b/tests/niti.skip @@ -6,6 +6,8 @@ shoot_logic bench_ nit_args1 nit_args3 +nitvm_args1 +nitvm_args3 nitc_args1 nitg_args1 nitg_args3 diff --git a/tests/nitvm.args b/tests/nitvm.args new file mode 100644 index 0000000..3011fc1 --- /dev/null +++ b/tests/nitvm.args @@ -0,0 +1,3 @@ +--log --log-dir out/test_nitc_logs ../examples/hello_world.nit +base_simple3.nit +-m test_mixin.nit ../examples/hello_world.nit diff --git a/tests/sav/nitvm.res b/tests/sav/nitvm.res new file mode 100644 index 0000000..742b9e8 --- /dev/null +++ b/tests/sav/nitvm.res @@ -0,0 +1,3 @@ +Usage: nitvm [OPTION]... ... +Executes Nit programs with a virtual machine. +Use --help for help diff --git a/tests/sav/nitvm_args1.res b/tests/sav/nitvm_args1.res new file mode 100644 index 0000000..3b18e51 --- /dev/null +++ b/tests/sav/nitvm_args1.res @@ -0,0 +1 @@ +hello world diff --git a/tests/sav/nitvm_args2.res b/tests/sav/nitvm_args2.res new file mode 100644 index 0000000..f00c965 --- /dev/null +++ b/tests/sav/nitvm_args2.res @@ -0,0 +1,10 @@ +1 +2 +3 +4 +5 +6 +7 +8 +9 +10 diff --git a/tests/sav/nitvm_args3.res b/tests/sav/nitvm_args3.res new file mode 100644 index 0000000..c76ebf3 --- /dev/null +++ b/tests/sav/nitvm_args3.res @@ -0,0 +1,3 @@ +MIX: Before +MIX: hello world +MIX: After