From 4ec93ca371e8b72cd4903433400a3ddd0adaa87a Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Fri, 13 Jun 2014 15:49:31 -0400 Subject: [PATCH] tests: add tests for nitvm Signed-off-by: Jean Privat --- tests/niti.skip | 2 ++ tests/nitvm.args | 3 +++ tests/sav/nitvm.res | 3 +++ tests/sav/nitvm_args1.res | 1 + tests/sav/nitvm_args2.res | 10 ++++++++++ tests/sav/nitvm_args3.res | 3 +++ 6 files changed, 22 insertions(+) create mode 100644 tests/nitvm.args create mode 100644 tests/sav/nitvm.res create mode 100644 tests/sav/nitvm_args1.res create mode 100644 tests/sav/nitvm_args2.res create mode 100644 tests/sav/nitvm_args3.res 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 -- 1.7.9.5