]> eyrie.org Git - kerberos/krb5-strength.git/blobdiff - Makefile.am
Fix Clang warning when built with Heimdal
[kerberos/krb5-strength.git] / Makefile.am
index 454879fad227535b6db6445932a30239b3dfb706..a5af3267c694a7fd3e7516de0755f725d7827632 100644 (file)
@@ -8,18 +8,19 @@
 # See LICENSE for licensing terms.
 
 ACLOCAL_AMFLAGS = -I m4
-EXTRA_DIST = .clang-format .gitignore .travis.yml README.md LICENSE        \
-       bootstrap cracklib/HISTORY cracklib/LICENCE cracklib/README         \
-       cracklib/genrules.pl cracklib/mkdict docs/krb5-strength.5.in        \
-       docs/krb5-strength.pod docs/metadata tests/README tests/TESTS       \
-       tests/data/krb5.conf tests/data/make-krb5-conf tests/data/passwords \
-       tests/data/perl.conf tests/data/perlcriticrc tests/data/perltidyrc  \
+EXTRA_DIST = .clang-format .github .gitignore README.md LICENSE bootstrap   \
+       ci/README ci/install ci/test cracklib/HISTORY cracklib/LICENCE      \
+       cracklib/README cracklib/genrules.pl cracklib/mkdict                \
+       docs/krb5-strength.5.in docs/krb5-strength.pod docs/metadata        \
+       tests/README tests/TESTS tests/data/krb5.conf                       \
+       tests/data/make-krb5-conf tests/data/passwords tests/data/perl.conf \
+       tests/data/perlcriticrc tests/data/perltidyrc                       \
        tests/data/valgrind.supp tests/data/wordlist                        \
        tests/data/wordlist.cdb tests/data/wordlist.sqlite                  \
-       tests/docs/pod-spelling-t tests/docs/pod-t tests/docs/urls-t        \
-       tests/perl/critic-t tests/perl/minimum-version-t                    \
-       tests/perl/strict-t tests/tap/libtap.sh tests/tap/perl/Test/RRA.pm  \
-       tests/tap/perl/Test/RRA/Config.pm                                   \
+       tests/docs/pod-spelling-t tests/docs/pod-t tests/perl/critic-t      \
+       tests/perl/minimum-version-t tests/perl/strict-t                    \
+       tests/style/obsolete-strings-t tests/tap/libtap.sh                  \
+       tests/tap/perl/Test/RRA.pm tests/tap/perl/Test/RRA/Config.pm        \
        tests/tap/perl/Test/RRA/Automake.pm tests/tools/heimdal-history-t   \
        tests/tools/heimdal-strength-t tests/tools/wordlist-cdb-t           \
        tests/tools/wordlist-sqlite-t tests/tools/wordlist-t                \
@@ -194,6 +195,14 @@ endif
 check-local: $(check_PROGRAMS) tests/data/dictionary.pwd
        cd tests && ./runtests -l $(abs_top_srcdir)/tests/TESTS
 
+# Used by maintainers to check the source code with cppcheck.
+check-cppcheck:
+       cd $(abs_top_srcdir) &&                                         \
+           find . -name .git -prune -o -name '*.[ch]' -print           \
+           | cppcheck -q --force --error-exitcode=2 --file-list=-      \
+               --suppressions-list=tests/data/cppcheck.supp            \
+               --enable=warning,performance,portability,style
+
 # Used by maintainers to run the main test suite under valgrind.  Suppress
 # the xmalloc and pod-spelling tests because the former won't work properly
 # under valgrind (due to increased memory usage) and the latter is pointless
@@ -202,7 +211,7 @@ check-local: $(check_PROGRAMS) tests/data/dictionary.pwd
 check-valgrind: $(check_PROGRAMS) tests/data/dictionary.pwd
        rm -rf $(abs_top_builddir)/tmp-valgrind
        mkdir $(abs_top_builddir)/tmp-valgrind
-       env RRA_MAINTAINER_TESTS= valgrind --leak-check=full            \
+       env valgrind --leak-check=full          \
            --show-reachable=yes --trace-children=yes                   \
            --log-file=$(abs_top_builddir)/tmp-valgrind/log.%p          \
            --suppressions=$(abs_top_srcdir)/tests/data/valgrind.supp   \