tests: add nitc test
authorJean-Sebastien Gelinas <calestar@gmail.com>
Fri, 7 Jan 2011 21:21:56 +0000 (16:21 -0500)
committerJean-Sebastien Gelinas <calestar@gmail.com>
Fri, 21 Jan 2011 19:44:28 +0000 (14:44 -0500)
Signed-off-by: Jean-Sebastien Gelinas <calestar@gmail.com>

tests/Makefile
tests/sav/nitc.sav [new file with mode: 0644]

index c51421d..c648d27 100644 (file)
@@ -1,12 +1,12 @@
 
 separate:
-       ./tests.sh *.nit ../examples/*.nit ../src/nitdoc.nit
+       ./tests.sh *.nit ../examples/*.nit ../src/nitdoc.nit ../src/nitc.nit
 
 some:
        ./tests.sh base_compile.nit base_attr.nit base_gen.nit test_gen_inh.nit bench_fib.nit example_objet.nit
 
 global:
-       ./tests.sh -o --global *.nit ../examples/*.nit ../src/nitdoc.nit
+       ./tests.sh -o --global *.nit ../examples/*.nit ../src/nitdoc.nit ../src/nitc.nit
 
 icode:
        ./tests_icode.sh icode*.nit
diff --git a/tests/sav/nitc.sav b/tests/sav/nitc.sav
new file mode 100644 (file)
index 0000000..9d1a658
--- /dev/null
@@ -0,0 +1,29 @@
+usage: nitc [options] file...
+  -W, --warn                      Show warnings
+  -I, --path                      Set include path for loaders (may be used more than once)
+  --log                           Generate various log files
+  --log-dir                       Directory where to generate log files
+  --only-parse                    Only proceed to parse step of loaders
+  --only-metamodel                Stop after meta-model processing
+  -h, -?, --help                  Show Help (This screen)
+  --version                       Show version and exit
+  -v, --verbose                   Verbose
+  -o, --output                    Output file
+  -O, --boost                     Optimize compilation
+  --no-cc                         Do not invoke C compiler
+  --cc-no-link                    Do not invoke C linker
+  --cc-lib-name                   Name of library to use for C compiler
+  --cc-lib-path                   Path to libraries for C compiler
+  --cc-header-path                Path to .h files for C compiler
+  --global                        Use global compilation
+  --clibdir                       NIT C library directory
+  --bindir                        NIT tools directory
+  --compdir                       Intermediate compilation directory
+  -p, --extension-prefix          Append prefix to file extension
+  --no-global-SFT-optimization    Do not use SFT optimization
+  --no-global-DMR-optimization    Do not use dead method removal optimization
+  --global-callgraph              The algorithm to use to build the callgraph <none, cha, rta>
+  --no-global-get-set-inlining    Do not automatically inline getters/setters
+  --no-global-RFIM-analysis       Do not use a specialized algorithm to find reachable methods from initializers
+  --no-global-OOIT-optimization   Do not remove get tests outside object initialization
+  --output-format                 The type of code we want to be generated <none, C, icode>