Merge branch 'master' of https://git.gnus.org/gnus
[gnus] / lisp / Makefile.in
index 97b5cc2..776d5ef 100644 (file)
@@ -25,6 +25,9 @@ clean-some:
 warn: clean-some gnus-load.el
        $(EMACS_COMP) --eval '(dgnushack-compile t)' 2>&1 | egrep -v "variable G|inhibit-point-motion-hooks|coding-system|temp-results|variable gnus|variable nn|scroll-in-place|deactivate-mark|filladapt-mode|byte-code-function-p|print-quoted|ps-right-header|ps-left-header|article-inhibit|print-escape|ssl-program-arguments|message-log-max"
 
+fail-on-warning: clean-some gnus-load.el
+       $(EMACS_COMP) -f dgnushack-compile-error-on-warn
+
 # The "clever" rule is unsafe, since redefined macros are loaded from
 # .elc files, and not the .el file.
 clever some l: gnus-load.el
@@ -32,6 +35,15 @@ clever some l: gnus-load.el
 
 install: install-el-elc list-installed-shadows
 
+# Test rules
+check: test-registry test-nntp
+
+test-registry:
+       $(EMACS) $(FLAGS) -l ert -l gnus-registry.el -f ert-run-tests-batch-and-exit
+
+test-nntp:
+       $(EMACS) $(FLAGS) -l ert -l tests/gnustest-nntp.el -f ert-run-tests-batch-and-exit
+
 # This entry will never install .el files if there are no .elc files.
 install-el: gnus-load.el
        $(SHELL) $(top_srcdir)/mkinstalldirs "$(lispdir)"