X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=tests%2FMakefile.am;h=e80d69c3e0ca9be61181eb553e12a579bf9fb985;hb=d2d98cb07bf3438819625ca83adf2162c030f438;hp=97533226676a3254e83daf1152159a287d3d2a9b;hpb=04fee4fe50c459b77f51e702a0cc2322268e8baf;p=ppastats.git diff --git a/tests/Makefile.am b/tests/Makefile.am index 9753322..e80d69c 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,5 +1,30 @@ check-local: checkpatch.pl 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 --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 +EXTRA_DIST = \ + checkpatch.pl \ + test-cppcheck.sh \ + test_strrep.c \ + test_ptime.c + +TESTS = 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 + +if CPPCHECK +TESTS += test-cppcheck.sh +endif \ No newline at end of file