This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 0/2] testsuite: Support filtering targets by TCL procedure in `run_dump_test'
- From: "Maciej W. Rozycki" <macro at mips dot com>
- To: <binutils at sourceware dot org>
- Cc: Nick Clifton <nickc at redhat dot com>, Alan Modra <amodra at gmail dot com>, Simon Atanasyan <simon at atanasyan dot com>
- Date: Thu, 12 Apr 2018 14:19:48 +0100
- Subject: [PATCH 0/2] testsuite: Support filtering targets by TCL procedure in `run_dump_test'
Hi,
Inspired by GCC's `dg-require-effective-target' and prompted by Simon's
recently submitted test case that fails on MIPS non-shared-library targets
(currently `mipsel-ps2-elf' and `mips64el-ps2-elf') here's a proposed
implementation of a test tag interpretation update, which lets one name a
TCL procedure to call in a .d file interpreted by `run_dump_test' with
tags so far only used to refer to target triplets.
This removes the need to wrap `run_dump_test' calls into an `if' block
whose only reason is to do a feature check, keeps the check within the
test case itself where tool options related to the check might be also
present making it all localised rather than scattered across files, and
ultimately lets one have the test reported as UNSUPPORTED automagically if
required (not currently supported by the LD version of `run_dump_test').
This mini patch series has the implementation across all the three of
binutils, GAS and LD test suites in 1/2 and a MIPS LD test suite update
with `[check_shared_lib_support]' added where appropriate in 2/2. See
individual changes for detailed descriptions.
Maciej