973
Comment: Proper place for teams' wikis are under Teams/
|
1793
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
= Workaround for cut backtrace output lines = ERT cuts backtrace output lines at 70 characters by default. This can be configured: `d/elpa-test:` {{{ ert_eval = (setq ert-batch-backtrace-right-margin 500) }}} = Exclude ERT tests = Used in package lsp-mode where upstream also excludes some tests in their Makefile. `d/elpa-test:` {{{ ert_helper = debian/ert-helper.el }}} `d/ert-helper.el:` {{{ (ert-run-tests-batch-and-exit '(not (or ;; Exclude by tag: (tag org) (tag no-win) ;; Exclude some tests by name (actually RegEx): "lsp-test-current-buffer-mode" "lsp-text-document-hover-request" "lsp-text-document-hover-request-tick" )) ) }}} See: * https://www.gnu.org/software/emacs/manual/html_node/ert/Test-Selectors.html |
Workaround for cut backtrace output lines
ERT cuts backtrace output lines at 70 characters by default. This can be configured:
d/elpa-test:
ert_eval = (setq ert-batch-backtrace-right-margin 500)
Exclude ERT tests
Used in package lsp-mode where upstream also excludes some tests in their Makefile.
d/elpa-test:
ert_helper = debian/ert-helper.el
d/ert-helper.el:
(ert-run-tests-batch-and-exit '(not (or ;; Exclude by tag: (tag org) (tag no-win) ;; Exclude some tests by name (actually RegEx): "lsp-test-current-buffer-mode" "lsp-text-document-hover-request" "lsp-text-document-hover-request-tick" )) )
See:
When a package test suite wants to write to $HOME
d/elpa-test:
ert_eval = (setq user-emacs-directory (make-temp-file "foo-test" 'dir-flag))
Rebuild all elpa-* packages in unstable against new Emacs in experimental
aptitude search "~Aunstable~n^elpa-" -F"%e" | while read p; do sbuild --extra-repository='deb http://deb.debian.org/debian experimental main' --build-dep-resolver=aspcud --add-depends="emacs (>= 1:26)" --add-depends="emacs-common (>= 1:26)" --add-depends="emacs-bin-common (>= 1:26)" --add-depends="emacs-nox (>= 1:26)" "$p"; done
You can then run autopkgtest on all the changes files (untested!):
for f in *.changes; do autopkgtest --setup-commands="echo >>/etc/apt/sources.list deb http://deb.debian.org/debian experimental main" --setup-commands="apt-get update" --setup-commands="apt-get install emacs/experimental" "$f" -l "$f.autopkgtest.log"; done