GNU bug report logs -
#77681
[PATCH 0/6 emacs-team] Run emacs tests
Previous Next
Reported by: Morgan Smith <Morgan.J.Smith <at> outlook.com>
Date: Wed, 9 Apr 2025 18:56:02 UTC
Severity: normal
Tags: patch
Done: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Am Mittwoch, dem 09.04.2025 um 15:01 -0400 schrieb Morgan Smith:
> * gnu/packages/emacs.scm
> (emacs-ert-selector): New function.
> (emacs-minimal): Run tests.
> (emacs-next-minimal): Run tests.
> (emacs-next-minimal): Run tests.
> (emacs->emacs-next): Run tests.
Looks like some changes here are duplicated.
> Change-Id: Ib5ffeae9b7f49b5f1a56d348c15ce4c4fb28f5ec
> ---
> gnu/packages/emacs.scm | 89
> ++++++++++++++++++++++++++++++++++++++++--
> 1 file changed, 86 insertions(+), 3 deletions(-)
>
> diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
> index 9a020d89aa..fbde2bd913 100644
> --- a/gnu/packages/emacs.scm
> +++ b/gnu/packages/emacs.scm
> @@ -98,6 +98,26 @@ (define (%emacs-modules build-system)
> (srfi srfi-1)
> (ice-9 ftw))))
>
> +(define* (emacs-ert-selector excluded-tests #:key run-nativecomp
> run-expensive run-unstable)
> + "Create an ERT selector that excludes tests."
> + (string-append
> + "(not (or "
> + (if run-nativecomp
> + ""
> + "(tag :nativecomp) ")
> + (if run-expensive
> + ""
> + "(tag :expensive-test) ")
> + (if run-unstable
> + ""
> + "(tag :unstable) ")
> + (string-join
> + (map
> + (lambda (test)
> + (string-append "\\\"" test "\\\""))
> + excluded-tests))
> + "))"))
> +
> (define-public emacs-minimal
> (package
> (name "emacs-minimal")
> @@ -153,9 +173,24 @@ (define-public emacs-minimal
> (build-system gnu-build-system)
> (arguments
> (list
> - #:tests? #f ; no check target
> #:modules (%emacs-modules build-system)
> #:configure-flags #~(list "--with-gnutls=no" "--disable-build-
> details")
> + #:make-flags #~(list
> + ;; Broken tests. This is inherited by other
> Emacs
> + ;; packages so test them all when changing
> this value
> + (string-append
> + "SELECTOR="
> + #$(emacs-ert-selector
> + '("esh-util-test/path/get-remote"
> + "esh-var-test/path-var/preserve-across-
> hosts"
> + "ffap-tests--c-path"
> + "grep-tests--rgrep-abbreviate-
> properties-darwin"
> + "grep-tests--rgrep-abbreviate-
> properties-gnu-linux"
> + "grep-tests--rgrep-abbreviate-
> properties-windows-nt-dos-semantics"
> + "grep-tests--rgrep-abbreviate-
> properties-windows-nt-sh-semantics"
> + "info-xref-test-makeinfo"
> + "man-tests-find-header-file"
> + "tramp-test48-remote-load-path"))))
Can we bind this selector (or one of its supersets below) to a variable
so as to use (string-append "SELECTOR=" %selector)?
Cheers
This bug report was last modified 93 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.