* set up (unit) test framework using gtester

This commit is contained in:
Dirk-Jan C. Binnema
2010-01-25 10:24:33 +02:00
parent 92202ac6eb
commit afcd800a2e
8 changed files with 172 additions and 7 deletions

View File

@ -14,12 +14,22 @@
## along with this program; if not, write to the Free Software Foundation,
## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
include $(top_srcdir)/gtest.mk
SUBDIRS=src man
# calculate the cyclomatic-complexity, which should not go over 10
cc10:
@pmccabe `find . -regex '.*\.\(c\|cc\|h\)$'` | sort -nr | awk '($$1 > 10)'
EXTRA_DIST= \
TODO \
HACKING
# so we can say 'make test'
check: test
tags:
gtags
cc10:
@pmccabe `find -name '*.c' -o -name '*.cc'` | sort -nr | awk '($$1 > 10)'
EXTRA_DIST= \
TODO \
HACKING \
gtest.mk