Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [PATCH 6/7] [gdb/testsuite] Add gdb.src/news.exp
Date: Mon,  2 Nov 2026 17:33:51 +0100	[thread overview]
Message-ID: <20261102163352.2416793-7-tdevries@suse.de> (raw)
In-Reply-To: <20261102163352.2416793-1-tdevries@suse.de>

Add a test-case gdb.src/news.exp that fails when gdb/NEWS is not up-to-date.
---
 gdb/testsuite/gdb.src/news.exp | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 gdb/testsuite/gdb.src/news.exp

diff --git a/gdb/testsuite/gdb.src/news.exp b/gdb/testsuite/gdb.src/news.exp
new file mode 100644
index 00000000000..3bb2bf39dfb
--- /dev/null
+++ b/gdb/testsuite/gdb.src/news.exp
@@ -0,0 +1,23 @@
+# Copyright 2026 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+set repodir $srcdir/../..
+
+with_cwd $repodir {
+
+    set result [remote_exec build "gdb/doc/gen-news.sh --check"]
+    set status [lindex $result 0]
+    gdb_assert {$status == 0} "gdb/NEWS up to date"
+}
-- 
2.51.0


  parent reply	other threads:[~2026-11-02 16:35 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-02 16:33 [PATCH 0/7] [gdb/NEWS] Move NEWS items to gdb/doc/NEWS-* Tom de Vries
2026-11-02 16:33 ` [PATCH 1/7] [gdb/doc] Add NEWS-* files Tom de Vries
2026-11-02 16:33 ` [PATCH 2/7] [gdb/doc] Add gen-news.sh Tom de Vries
2026-11-02 16:33 ` [PATCH 3/7] [gdb/NEWS] Regenerate using gdb/doc/gen-news.sh Tom de Vries
2026-11-02 16:33 ` [PATCH 4/7] [gdb/NEWS] Add header text mentioning it's generated Tom de Vries
2026-11-02 16:33 ` [PATCH 5/7] [gdb/doc] Add gen-news.sh --check Tom de Vries
2026-11-02 16:33 ` Tom de Vries [this message]
2026-11-02 16:33 ` [PATCH 7/7] [pre-commit] Add check-news Tom de Vries
2026-11-02 17:06 ` [PATCH 0/7] [gdb/NEWS] Move NEWS items to gdb/doc/NEWS-* Eli Zaretskii
2026-11-02 17:15   ` Tom de Vries
2026-11-02 17:27     ` Tom de Vries
2026-11-20 17:56     ` Andrew Burgess
2026-11-20 18:59       ` Tom de Vries
2026-11-20 13:47 ` [PING] " Tom de Vries

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

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

  git send-email \
    --in-reply-to=20261102163352.2416793-7-tdevries@suse.de \
    --to=tdevries@suse.de \
    --cc=gdb-patches@sourceware.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox