* set up (unit) test framework using gtester
This commit is contained in:
22
Makefile.am
22
Makefile.am
@ -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
|
||||
|
||||
Reference in New Issue
Block a user