public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb/testsuite: require amd-dbgapi support to run rocm tests
@ 2023-02-13 9:52 Lancelot SIX
0 siblings, 0 replies; only message in thread
From: Lancelot SIX @ 2023-02-13 9:52 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=310943c20cdfbc9d5e3abe71a46c39ed0819b719
commit 310943c20cdfbc9d5e3abe71a46c39ed0819b719
Author: Lancelot SIX <lancelot.six@amd.com>
Date: Mon Feb 6 19:08:13 2023 +0000
gdb/testsuite: require amd-dbgapi support to run rocm tests
Update allow_hipcc_tests to check that GDB has the amd-dbgapi support
built-in. Without this support, all tests using hipcc and the rocm
stack will fail.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diff:
---
gdb/testsuite/lib/rocm.exp | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gdb/testsuite/lib/rocm.exp b/gdb/testsuite/lib/rocm.exp
index 1440ac85d32..a78b9f63353 100644
--- a/gdb/testsuite/lib/rocm.exp
+++ b/gdb/testsuite/lib/rocm.exp
@@ -22,6 +22,13 @@ proc allow_hipcc_tests { } {
if {[target_info gdb_protocol] != ""} {
return 0
}
+
+ # Ensure that GDB is built with amd-dbgapi support.
+ set output [remote_exec host $::GDB "$::INTERNAL_GDBFLAGS --configuration"]
+ if { [string first "--with-amd-dbgapi" $output] == -1 } {
+ return 0
+ }
+
return 1
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-13 9:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-13 9:52 [binutils-gdb] gdb/testsuite: require amd-dbgapi support to run rocm tests Lancelot SIX
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).