diff options
| author | Andreas Politz <politza@hochschule-trier.de> | 2015-01-13 20:19:51 +0100 |
|---|---|---|
| committer | Andreas Politz <politza@hochschule-trier.de> | 2015-01-13 20:19:51 +0100 |
| commit | 69100e45789d3736c62c679b9cc7f1b6cfe84c9e (patch) | |
| tree | c47e4ef817eba2252e89d4a44175049ba2989eb8 | |
| parent | a64503f93d0cfda6c1c1b91ce37883d477140e4c (diff) | |
Catch compile errors/warning when testing.
| -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) |
