added cppcheck
[ppastats.git] / tests / Makefile.am
1 check-local: checkpatch.pl
2         find $(top_srcdir)/src -name \*.c -exec $(srcdir)/checkpatch.pl --show-types -q --no-tree  -emacs -f {} \;
3         find $(top_srcdir)/src -name \*.h -exec $(srcdir)/checkpatch.pl --ignore NEW_TYPEDEFS --show-types -q --no-tree  -emacs -f {} \;
4
5 EXTRA_DIST = \
6         checkpatch.pl \
7         test-cppcheck.sh \
8         test_strrep.c \
9         test_ptime.c
10
11 TESTS = test-cppcheck.sh \
12         test-strrep \
13         test-ptime
14
15 check_PROGRAMS = test-strrep test-ptime
16
17 test_strrep_SOURCES = \
18         test_strrep.c \
19         $(top_builddir)/src/pstr.h \
20         $(top_builddir)/src/pstr.c
21 test_strrep_CFLAGS = -I$(top_srcdir)/src
22
23 test_ptime_SOURCES = \
24         test_ptime.c \
25         $(top_builddir)/src/ptime.h \
26         $(top_builddir)/src/ptime.c
27 test_ptime_CFLAGS = -I$(top_srcdir)/src
28