unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Randy Taylor <dev@rjt.dev>
To: "O'Brien, Will" <will.08rien@gmail.com>
Cc: Robert Pluim <rpluim@gmail.com>,
	74786@debbugs.gnu.org, Eli Zaretskii <eliz@gnu.org>,
	"J.P." <jp@neverwas.me>
Subject: bug#74786: [PATCH] Add custom args to test compile step
Date: Wed, 01 Jan 2025 23:50:32 +0000	[thread overview]
Message-ID: <fVi0B3YPasvrpCiggTtcHXjOMksryWljVflJ9LjWn9pKa69TmWAlkMtVuDU7ruK-g8BesvgCSL8xizWe6XKr-Qjc-qw4pS-mcmpYb7fe2Xc=@rjt.dev> (raw)
In-Reply-To: <m2bjx6pc01.fsf@gmail.com>

On Friday, December 20th, 2024 at 11:14, O'Brien, Will <will.08rien@gmail.com> wrote:
> 
> 
> Hi,
> 
> On Thu, Dec 19 2024 at 16:20, "O'Brien, Will" will.08rien@gmail.com wrote:
> 
> > I believe the attached patch should cover your suggestion, Randy,
> > as well as incorporating Robert's and J.P.'s suggestions.

Thanks, the patch looks good to me.
There is a typo:
+  "Return the flags for test invoation."
                              ^invocation

> 
> 
> I think there's a further issue which I believe was pre-existing.
> 
> The package test function looks like this:
> 
> --8<---------------cut here---------------start------------->8---
> 
> (defun go-ts-mode-test-this-package ()
> "Run all the unit tests under the current package."
> (interactive)
> (compile (format "go test -v %s -run %s"
> (go-ts-mode--get-build-tags-flag)
> default-directory)))
> --8<---------------cut here---------------end--------------->8---
> 
> 
> The issue that the argument to the `-run` flag is a regex that
> should match any tests that will be execute. Passing a directory
> has slightly unexpected consequences, and although it seems to
> work, for me typically results tests not running.
> 
> I think that we can remove the `-run` flag from this function.
> What do others think? Also, should this be a separate bug/patch
> (if indeed it is a bug) or I can incorporate this change into the
> current change set.
> 
> best
> --
> will

I believe you are correct, we can get rid of the -run flag.
Please incorporate these changes as part of this patch.

(Side note, maybe we should actually pass the package to
go test instead of relying on default directory but
don't worry about that for this patch).





  reply	other threads:[~2025-01-01 23:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-11 10:18 bug#74786: [PATCH] Add custom args to test compile step O'Brien, Will
2024-12-11 15:45 ` Eli Zaretskii
2024-12-11 15:58   ` Robert Pluim
2024-12-11 16:31     ` O'Brien, Will
2024-12-15  2:17       ` Randy Taylor
2024-12-17  8:34         ` O'Brien, Will
2024-12-19 16:20           ` O'Brien, Will
2024-12-20 16:14             ` O'Brien, Will
2025-01-01 23:50               ` Randy Taylor [this message]
2025-01-02 11:21                 ` O'Brien, Will
2025-01-04 19:05                   ` Randy Taylor
2025-01-05 12:43                     ` Eli Zaretskii
2024-12-17  2:41       ` J.P.
2024-12-17  8:32         ` O'Brien, Will
2024-12-11 16:30   ` O'Brien, Will
2024-12-11 17:10     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='fVi0B3YPasvrpCiggTtcHXjOMksryWljVflJ9LjWn9pKa69TmWAlkMtVuDU7ruK-g8BesvgCSL8xizWe6XKr-Qjc-qw4pS-mcmpYb7fe2Xc=@rjt.dev' \
    --to=dev@rjt.dev \
    --cc=74786@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=jp@neverwas.me \
    --cc=rpluim@gmail.com \
    --cc=will.08rien@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).