summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2011-03-13 14:25:15 +0000
committerJakob Odersky <jodersky@gmail.com>2011-03-13 14:25:15 +0000
commit30cc264b7381cd1895ea8a3b709567e6eaf1113d (patch)
tree3683e4fe3647dbb5332b0d2988c0f3b07085194f /Makefile
parentf2163b32810d75bb4ea3e3f7c91ccdf2c6ada61a (diff)
downloadvhc-30cc264b7381cd1895ea8a3b709567e6eaf1113d.tar.gz
vhc-30cc264b7381cd1895ea8a3b709567e6eaf1113d.tar.bz2
vhc-30cc264b7381cd1895ea8a3b709567e6eaf1113d.zip
Creation d'un systeme de test automatise.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 12 insertions, 6 deletions
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