From 30cc264b7381cd1895ea8a3b709567e6eaf1113d Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Sun, 13 Mar 2011 14:25:15 +0000 Subject: Creation d'un systeme de test automatise. --- Makefile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4cc5c84..a8b5021 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,9 @@ # Makefile principale # #=======================================================================# # Les variables suivantes sont definis pour des makefiles plus bas. # -# BASEDIR repertoire de base du projet # -# SRCDIR repertoire contenant le code source # -# BINDIR repertoire ou sont places toutes objets compiles # +# BASEDIR repertoire de base du projet # +# SRCDIR repertoire contenant le code source # +# BINDIR repertoire ou sont places toutes objets compiles # ######################################################################### @@ -31,7 +31,7 @@ export BINDIR = $(BASEDIR)/bin .PHONY: all checkdirs build clean doc -all: checkdirs build test-build doc +all: checkdirs build test-build doc test # Compile les fichiers source principales build: checkdirs @@ -40,7 +40,7 @@ build: checkdirs @echo "Done building main sources." # Compile les tests -test-build: checkdirs build +test-build: build @echo "Building test sources..." make all -C $(SRCDIR)/test @echo "Done building test sources." @@ -59,4 +59,10 @@ $(BINDIR): @mkdir -p $@ clean: - @rm -rf $(BINDIR) \ No newline at end of file + @rm -rf $(BINDIR) + +# Lance les tests +test: test-build + ./testr.sh $(BINDIR)/test + + \ No newline at end of file -- cgit v1.2.3