Automate tests
[centaur.git] / Makefile
index c8dee7616279a3a2a91c2fc104a1da46b14a53fa..c93b2abc61d0d24440717d1ce48fcd970fd07ef5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -25,11 +25,7 @@ default: $(EXE)
 
 .PHONY: check
 check: $(EXE)
-       $(error the re-layouting has broken make check for now, sorry.)
-       $(EXE) $(EXE) -o testexe
-       @cmp $(EXE) testexe
-       @rm testexe
-       @echo "Check successful."
+       make -C tests check
 
 
 .PHONY: debug
@@ -53,6 +49,7 @@ clean:
        rm -f $(OBJS)
        rm -f $(TESTEXES)
        rm -rf $(BUILDDIR)/
+       make -C tests clean
 
 
 .PHONY: distclean