public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Keith Seitz <keiths@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gdb] gdb-17.2-rebase-f44: Add 'tests' definition.
Date: Sun, 28 Jun 2026 00:00:42 GMT	[thread overview]
Message-ID: <178260484202.1.5637220862768350098.rpms-gdb-45e744e200a1@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/gdb
            Branch : gdb-17.2-rebase-f44
            Commit : 45e744e200a1a2b4f6fccb2d946f450544ab0067
            Author : Keith Seitz <keiths@redhat.com>
            Date   : 2022-07-26T18:08:52+00:00
            Stats  : +8/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/gdb/c/45e744e200a1a2b4f6fccb2d946f450544ab0067?branch=gdb-17.2-rebase-f44

            Log:
            Add 'tests' definition.

Defining this option will iimit the tests performed with the "--with testsuite"
option:

$ rpmbuild -bb --with testsuite --define 'tests "gdb.base/break.exp gdb.dwarf2/*.exp"' \
   gdb.spec

The above will build the RPM with testing, but it will only test the listed tests
(just as if they were passed to TESTS="gdb.base/break.exp gdb.dwarf2/*.exp").

---
diff --git a/gdb.spec b/gdb.spec
index 4e753d1..7f992ed 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -6,6 +6,7 @@
 # --with profile: gcc -fprofile-generate / -fprofile-use: Before better
 #                 workload gets run it decreases the general performance now.
 # --define 'scl somepkgname': Independent packages by scl-utils-build.
+# --define 'tests "TEST1 ... TESTN": Limit testing to specified tests.
 
 # Turn off the brp-python-bytecompile automagic
 %global _python_bytecompile_extra 0
@@ -887,7 +888,13 @@ gcc -o ./orphanripper %{SOURCE2} -Wall -lutil -ggdb2
   # See also: gdb-runtest-pie-override.exp
   ###CHECK="$(echo $CHECK|sed 's#check//unix/[^ ]*#& &/-fPIC/-pie#g')"
 
-  ./orphanripper %make_build -k $CHECK || :
+TESTS=""
+%if 0%{?tests:1}
+  for test in %{tests}; do
+    TESTS="${TESTS:+$TESTS }$test"
+  done
+%endif
+  ./orphanripper make %{?_smp_mflags} -k $CHECK TESTS="$TESTS" || :
 )
 for t in sum log
 do

                 reply	other threads:[~2026-06-28  0:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=178260484202.1.5637220862768350098.rpms-gdb-45e744e200a1@fedoraproject.org \
    --to=keiths@redhat.com \
    --cc=git-commits@fedoraproject.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