From 33fcbdeef12b2831cff2dc6eee7c5b48e34d0851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 17 Nov 2016 17:57:20 +0100 Subject: Add tests target and some fixes For now only cppcheck is implemented. --- tests/tests.mk | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/tests.mk (limited to 'tests') diff --git a/tests/tests.mk b/tests/tests.mk new file mode 100644 index 0000000..33bc1e4 --- /dev/null +++ b/tests/tests.mk @@ -0,0 +1,16 @@ +# vim:ts=4:sw=4:noexpandtab + +.PHONY: help-test +help-test:: + @echo "General extendable macro language make test targets:" + @echo " tests - Executes all tests" + @echo " help-test - Prits help for all implemented tests" + @echo " cppcheck - Executes cppcheck on all compilled sources" + +.PHONY: tests +tests: cppcheck + +.PHONY: +cppcheck: $(CSRC) + @echo " CPPCHECK" + $(Q)$(CPPCHECK) --enable=all --std=c11 --error-exitcode=1 $(CSRC) -- cgit v1.2.3