aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/lisp/info-xref-tests.el18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/lisp/info-xref-tests.el b/test/lisp/info-xref-tests.el
index 7532befae0a..6d3a4618377 100644
--- a/test/lisp/info-xref-tests.el
+++ b/test/lisp/info-xref-tests.el
@@ -144,4 +144,22 @@ text.
144 (format "%s.info" (file-name-sans-extension 144 (format "%s.info" (file-name-sans-extension
145 tempfile2))))))) 145 tempfile2)))))))
146 146
147(ert-deftest info-xref-test-emacs-manuals ()
148 "Test that all internal links in the Emacs manuals work."
149 :tags '(:expensive-test)
150 (require 'info)
151 (let ((default-directory (car (Info-default-dirs)))
152 (Info-directory-list '(".")))
153 (skip-unless (file-readable-p "emacs.info"))
154 (info-xref-check-all)
155 (with-current-buffer info-xref-output-buffer
156 (goto-char (point-max))
157 (should (search-backward "done" nil t))
158 (re-search-forward "\\([0-9]+\\) bad" (line-end-position) t)
159 (should (string-match-p
160 " [0-9]\\{3,\\} good, 0 bad"
161 (buffer-substring-no-properties (line-beginning-position)
162 (line-end-position)))))))
163
164
147;;; info-xref.el ends here 165;;; info-xref.el ends here