diff options
Diffstat (limited to 'tests/install-basic.el')
| -rw-r--r-- | tests/install-basic.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/install-basic.el b/tests/install-basic.el index 2073248..b72ed16 100644 --- a/tests/install-basic.el +++ b/tests/install-basic.el @@ -24,8 +24,17 @@ (message "Installing package %s" (buffer-file-name)) (package-install-file (buffer-file-name)) +(when (and (bound-and-true-p byte-compile-log-buffer) + (buffer-live-p (get-buffer byte-compile-log-buffer))) + (with-current-buffer byte-compile-log-buffer + (save-excursion + (goto-char 1) + (when (re-search-forward ":\\(?:Error\\|Warning\\):" nil t) + (error "Compilation had errors and/or warnings."))))) + (message "Installing pdf-tools") (pdf-tools-install) + (message "Running ERT tests") (ert-run-tests-batch-and-exit) |
