Source: dh-elpa Version: 2.0.16 Severity: normal Hi, I would like to propose the inlined patch to implement a new buttercup_eval directive on dh-elpa. Aside from the fact that this is a good-to-have feature, there is a bigger problem at play here: it's currently not possible to eval elisp code when buttercup is invoked during autopkgtest, which makes workarounds like the one uploaded for flycheck (at bug #1028725) incomplete. It'd be great if we could have this in bookworm, but due to the freeze I'd understand if it's not possible. I'd like to have this in unstable ASAP, though, if that's OK with you. Thank you, -- Sergio GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36 Please send encrypted e-mail if possible https://sergiodj.net/ diff --git a/debian/changelog b/debian/changelog index f4bee52..7782294 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +dh-elpa (2.0.17) unstable; urgency=medium + + * dh_elpa_test: Implement new buttercup_eval directive. + + -- Sergio Durigan Junior <sergiodj@debian.org> Wed, 01 Mar 2023 10:26:11 -0500 + dh-elpa (2.0.16) unstable; urgency=medium * Drop dependencies on emacs-el introduced in 2.0.11. diff --git a/dh_elpa_test b/dh_elpa_test index c2504bf..d0a252d 100755 --- a/dh_elpa_test +++ b/dh_elpa_test @@ -86,6 +86,10 @@ run. If this key is not defined, all tests that can be found will be run. Will be passed to buttercup(1) with its B<-p> command line argument. +=item B<buttercup_eval> + +Emacs Lisp code to be run by buttercup's --eval option. + =item B<ert_exclude> A comma-separated list of file globs matching files containing ERT @@ -341,6 +345,8 @@ if ($control->source->Build_Depends->has( "elpa-buttercup" )) { push @args, ('-p', "$pattern"); } } + push @args, ("--eval", $options->{_}->{'buttercup_eval'}) + if (defined $options->{_}->{'buttercup_eval'}); print_and_doit(@args); }
Attachment:
signature.asc
Description: PGP signature