tests: add tests for nitvm
authorJean Privat <jean@pryen.org>
Fri, 13 Jun 2014 19:49:31 +0000 (15:49 -0400)
committerJean Privat <jean@pryen.org>
Mon, 16 Jun 2014 23:36:00 +0000 (19:36 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/niti.skip
tests/nitvm.args [new file with mode: 0644]
tests/sav/nitvm.res [new file with mode: 0644]
tests/sav/nitvm_args1.res [new file with mode: 0644]
tests/sav/nitvm_args2.res [new file with mode: 0644]
tests/sav/nitvm_args3.res [new file with mode: 0644]

index 0cdafa4..f9489e3 100644 (file)
@@ -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 (file)
index 0000000..3011fc1
--- /dev/null
@@ -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 (file)
index 0000000..742b9e8
--- /dev/null
@@ -0,0 +1,3 @@
+Usage: nitvm [OPTION]... <file.nit>...
+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 (file)
index 0000000..3b18e51
--- /dev/null
@@ -0,0 +1 @@
+hello world
diff --git a/tests/sav/nitvm_args2.res b/tests/sav/nitvm_args2.res
new file mode 100644 (file)
index 0000000..f00c965
--- /dev/null
@@ -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 (file)
index 0000000..c76ebf3
--- /dev/null
@@ -0,0 +1,3 @@
+MIX: Before
+MIX: hello world
+MIX: After