tests: tests_icode also use alterner.pl
[nit.git] / tests / Makefile
index 2b01363..fcc98b7 100644 (file)
@@ -1,10 +1,23 @@
 
-all:
-       ./tests.sh *.nit ../examples/*.nit ../src/nitdoc.nit
+PROGS=*.nit ../examples/*.nit ../lib/*.nit ../src/nitdoc.nit ../src/nits.nit ../src/nitc.nit ../src/test_parser.nit ../src/nit.nit ../src/nitstats.nit ../src/nitg.nit
+
+all: separate global icode
+
+separate:
+       ./tests.sh ${PROGS}
 
 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 ${PROGS}
+
+nitdoc:
+       ./tests.sh ../src/nitdoc.nit
+
+icode:
+       ./tests_icode.sh icode*.nit
+
 failed:
        @[ ! -s errlist ] && echo 'No failed tests to execute' ; true
        @[ -s errlist ] && ./tests.sh `cat errlist | sort -u` ; true
@@ -13,4 +26,6 @@ store:
        ./store_save.sh *.nit
 
 clean:
-       @rm -r -f -- *.bin *.res *.write *.err *.log alt || true
+       rm -r -f -- out/ alt .nit_compile errlist 2> /dev/null || true
+
+distclean: clean