aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2016-11-17 17:57:20 +0100
committerKarel Kočí <cynerd@email.cz>2016-11-17 17:57:20 +0100
commit33fcbdeef12b2831cff2dc6eee7c5b48e34d0851 (patch)
tree36fde3beca7695ab55e46910443ec25e64d55ea9 /tests
parentad2a23815a49245117cadbfcb6a59dfd6fc95483 (diff)
downloadgeml-33fcbdeef12b2831cff2dc6eee7c5b48e34d0851.tar.gz
geml-33fcbdeef12b2831cff2dc6eee7c5b48e34d0851.tar.bz2
geml-33fcbdeef12b2831cff2dc6eee7c5b48e34d0851.zip
Add tests target and some fixesHEADmaster
For now only cppcheck is implemented.
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.mk16
1 files changed, 16 insertions, 0 deletions
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)