public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michal Kolar <mkolar@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gdb] gdb-17.2-rebase-f44: tests/gdb-testsuite-sanity: adapt to new build behavior
Date: Sun, 28 Jun 2026 00:01:47 GMT	[thread overview]
Message-ID: <178260490719.1.3655480421748269743.rpms-gdb-41ea0e01679c@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : 41ea0e01679cf0cce0b093fa857f3d950d7ce225
Author : Michal Kolar <mkolar@redhat.com>
Date   : 2024-08-04T08:48:30+00:00
Stats  : +7/-6 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/gdb/c/41ea0e01679cf0cce0b093fa857f3d950d7ce225?branch=gdb-17.2-rebase-f44

Log:
tests/gdb-testsuite-sanity: adapt to new build behavior

---
diff --git a/tests/gdb-testsuite-sanity/runtest.sh b/tests/gdb-testsuite-sanity/runtest.sh
index b34d5d4..a13c66e 100755
--- a/tests/gdb-testsuite-sanity/runtest.sh
+++ b/tests/gdb-testsuite-sanity/runtest.sh
@@ -70,13 +70,14 @@ rlJournalStart
     fi
     rlRun "su -c 'rpmbuild -D \"_topdir $TmpDir\" -bp $TmpDir/SPECS/*.spec &>$TmpDir/rpmbuild-bp.log' $BUILD_USER"
     rlRun "rlFileSubmit $TmpDir/rpmbuild-bp.log rpmbuild-bp.log"
-    if test -e $TmpDir/BUILD/gdb-*/gnulib/configure; then
-      rlRun "cd $TmpDir/BUILD/gdb-*/gnulib"
+    rlRun "BUILD_DIR=`find $TmpDir -type f -name README | awk '{ print length, \$0 }' | sort -n -s | head -n 1 | cut -d ' ' -f 2- | sed 's|/README||'`"
+    if test -e $BUILD_DIR/gnulib/configure; then
+      rlRun "cd $BUILD_DIR/gnulib"
       rlRun "su -c 'bash ./configure &>$TmpDir/configure-gnulib.log' $BUILD_USER"
       rlRun "rlFileSubmit $TmpDir/configure-gnulib.log configure-gnulib.log"
     fi
     rlRun "configure_flags=\$(rpmspec -D \"_topdir $TmpDir\" -P $TmpDir/SPECS/*.spec | grep -o -E '\-\-(prefix|with\-gdb\-datadir|with\-separate\-debug\-dir|with\-python)=\S+' | tr '\n' ' ')"
-    rlRun "cd $TmpDir/BUILD/gdb-*/gdb"
+    rlRun "cd $BUILD_DIR/gdb"
     rlRun "su -c './configure $configure_flags &>$TmpDir/configure.log' $BUILD_USER"
     rlRun "rlFileSubmit $TmpDir/configure.log configure.log"
     rlRun "DATADIR=`gdb -ex 'show data-directory' -batch | grep -o -E '/[^\"]+'`"
@@ -100,7 +101,7 @@ rlJournalStart
     while read file; do
       mv "$file" "$file.disabled"
     done <$TmpDir/disable_list
-    rlRun "cd $TmpDir/BUILD/gdb-*/gdb"
+    rlRun "cd $BUILD_DIR/gdb"
   rlPhaseEnd
 
   rlPhaseStartTest "run testsuite"
@@ -114,11 +115,11 @@ rlJournalStart
   rlPhaseStartTest "evaluate results"
     rlRun "tests_count=\$(grep -E '^PASS:' testsuite/gdb.sum | wc -l)"
     [ "$tests_count" -ge "$TESTS_COUNT_MIN" ] && rlLogInfo "Test counter: $tests_count" || rlFail "Test counter $tests_count should be greater than or equal to $TESTS_COUNT_MIN"
-    rlRun "awk 'BEGIN { RS=\"Running /tmp/[^/]+/BUILD/gdb-[^/]+/gdb/testsuite/\" } /\sERROR:|\sFAIL:|\sKPASS:|\sUNRESOLVED:|\sXPASS:/ { print \$0 }' testsuite/gdb.sum >$TmpDir/error.log"  # check for errors, unresolved testcases, unexpected failures and unexpected successes
+    rlRun "awk 'BEGIN { RS=\"Running $BUILD_DIR/gdb/testsuite/\" } /\sERROR:|\sFAIL:|\sKPASS:|\sUNRESOLVED:|\sXPASS:/ { print \$0 }' testsuite/gdb.sum >$TmpDir/error.log"  # check for errors, unresolved testcases, unexpected failures and unexpected successes
     if [ -s $TmpDir/error.log ]; then
       rlFail "Errors observed";
       rlRun "rlFileSubmit $TmpDir/error.log error.log"
-      rlRun "awk 'BEGIN { RS=\"Running /tmp/[^/]+/BUILD/gdb-[^/]+/gdb/testsuite/\" } /\sERROR:|\sFAIL:|\sKPASS:|\sUNRESOLVED:|\sXPASS:/ { print \$1 }' testsuite/gdb.sum >$TmpDir/affected_testcases.log"
+      rlRun "awk 'BEGIN { RS=\"Running $BUILD_DIR/gdb/testsuite/\" } /\sERROR:|\sFAIL:|\sKPASS:|\sUNRESOLVED:|\sXPASS:/ { print \$1 }' testsuite/gdb.sum >$TmpDir/affected_testcases.log"
       rlLogInfo "`echo 'Affected testcases:';cat $TmpDir/affected_testcases.log`"
       rlRun "rlFileSubmit $TmpDir/affected_testcases.log affected_testcases.log"
     else

                 reply	other threads:[~2026-06-28  0:01 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=178260490719.1.3655480421748269743.rpms-gdb-41ea0e01679c@fedoraproject.org \
    --to=mkolar@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