[0/1] Add functionality to disable test for specific architecture

Message ID 20230223141815.996942-1-stephan.rohr@intel.com
Headers
Series Add functionality to disable test for specific architecture |

Message

Rohr, Stephan Feb. 23, 2023, 2:18 p.m. UTC
  From: "Rohr, Stephan" <stephan.rohr@intel.com>

Hi all,

the proposed patch adds functionality to disable a test for an architecture
as specified by the user.  The current 'register_test_foreach_arch'
implementation skips all tests if the architecture is listed inside the
'skip_arch' function.  However, if the user wants to skip a limited set of
tests for a given architecture, this is currently not supported by the
interface.  The proposed patch extends the 'register_test_foreach_arch'
interface and allows the user to provide a set of architectures for which the
test shall not be executed, e.g.,

  selftests::register_test_foreach_arch ("test_name",
                                         function_name,
                                         std::set<std::string> ({"arch"}));


I tested this patch with the following targets:
  * unix
  * unix/-m32
  * native-gdbserver
  * native-extended-gdbserver

No regressions are identified.

Rohr, Stephan (1):
  gdb: Add functionality to disable test for specific architecture

 gdb/selftest-arch.c | 11 ++++++++---
 gdb/selftest-arch.h |  5 ++++-
 2 files changed, 12 insertions(+), 4 deletions(-)