X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=tests%2FMakefile.am;h=a94900d0c8b0a67428f59766b323864d2945a2eb;hb=2a5acf4e9e701b60e600b86366687c267fb64d9d;hp=c305cb9393043785b9e5f3dd0a72cd69e9c0fe1a;hpb=0ffa32c4daf36b425e7aca8caf1d2f81809be2ee;p=ppastats.git diff --git a/tests/Makefile.am b/tests/Makefile.am index c305cb9..a94900d 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,5 +1,28 @@ check-local: checkpatch.pl - find $(top_srcdir)/src -name \*.c -exec $(srcdir)/checkpatch.pl -q --no-tree -emacs -f {} \; - find $(top_srcdir)/src -name \*.h -exec $(srcdir)/checkpatch.pl -q --no-tree -emacs -f {} \; + find $(top_srcdir)/src -name \*.c -exec $(srcdir)/checkpatch.pl --show-types -q --no-tree -emacs -f {} \; + find $(top_srcdir)/src -name \*.h -exec $(srcdir)/checkpatch.pl --ignore NEW_TYPEDEFS --show-types -q --no-tree -emacs -f {} \; + +EXTRA_DIST = \ + checkpatch.pl \ + test-cppcheck.sh \ + test_strrep.c \ + test_ptime.c + +TESTS = test-cppcheck.sh \ + test-strrep \ + test-ptime + +check_PROGRAMS = test-strrep test-ptime + +test_strrep_SOURCES = \ + test_strrep.c \ + $(top_builddir)/src/pstr.h \ + $(top_builddir)/src/pstr.c +test_strrep_CFLAGS = -I$(top_srcdir)/src + +test_ptime_SOURCES = \ + test_ptime.c \ + $(top_builddir)/src/ptime.h \ + $(top_builddir)/src/ptime.c +test_ptime_CFLAGS = -I$(top_srcdir)/src -EXTRA_DIST = checkpatch.pl