public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gdb] gdb-17.2-rebase-f44: tests/gdb-testsuite-sanity: adapt to new build behavior
@ 2026-06-28 0:01 Michal Kolar
0 siblings, 0 replies; only message in thread
From: Michal Kolar @ 2026-06-28 0:01 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-28 0:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-28 0:01 [rpms/gdb] gdb-17.2-rebase-f44: tests/gdb-testsuite-sanity: adapt to new build behavior Michal Kolar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox