X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2FMakefile.am;h=e80d69c3e0ca9be61181eb553e12a579bf9fb985;hb=HEAD;hp=0a5f3ef8e36e827ebcf9518206f72867a2719261;hpb=8fbc54a7960312d1626f4032d5fef5bf8a37db70;p=ppastats.git diff --git a/tests/Makefile.am b/tests/Makefile.am index 0a5f3ef..e80d69c 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -4,14 +4,27 @@ check-local: checkpatch.pl EXTRA_DIST = \ checkpatch.pl \ - test_strrep.c + test-cppcheck.sh \ + test_strrep.c \ + test_ptime.c -check_PROGRAMS = test-strrep +TESTS = test-strrep \ + test-ptime -AM_CPPFLAGS = -pedantic -Werror +check_PROGRAMS = test-strrep test-ptime test_strrep_SOURCES = \ test_strrep.c \ - ../src/str.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 -TESTS = test-strrep +if CPPCHECK +TESTS += test-cppcheck.sh +endif \ No newline at end of file