binutils-gdb/sim/testsuite
Hans-Peter Nilsson 81064d7abc sim/testsuite: Support "requires: simoption <--name-of-option>"
Simulator features can be present or not, typically
depending on different-valued configure options, like
--enable-sim-hardware[=off|=on].  To avoid failures in
test-suite-runs when testing such configurations, a new
predicate is needed, as neither "target", "progos" nor
"mach" fits cleanly.

The immediate need was to check for presence of a simulator
option, but rather than a specialized "requires-simoption:"
predicate I thought I'd handle the general (parametrized)
need, so here's a generic predicate machinery and a (first)
predicate to use together with it; checking whether a
particular option is supported, by looking at "run --help"
output.  This was inspired by the check_effective_target_
machinery in the gcc test-suite.

Multiple "requires: <requirement> <parameter>" form a list of
predicates (with parameters), to be used as a conjunction.

sim/testsuite:
	* lib/sim-defs.exp (sim_check_requires_simoption): New function.
	(run_sim_test): Support "requires: <requirement> <parameter>".
2022-02-14 23:50:48 +01:00
..
aarch64 sim: testsuite: drop most specific istarget checks 2021-11-28 21:55:16 -05:00
arm sim: testsuite: drop most specific istarget checks 2021-11-28 21:55:16 -05:00
avr sim: testsuite: drop most specific istarget checks 2021-11-28 21:55:16 -05:00
bfin sim: testsuite: drop most specific istarget checks 2021-11-28 21:55:16 -05:00
bpf sim: testsuite: drop most specific istarget checks 2021-11-28 21:55:16 -05:00
common sim: testsuite: migrate to standard uintXX_t types 2022-01-06 01:17:38 -05:00
config sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
cr16 sim: testsuite: drop most specific istarget checks 2021-11-28 21:55:16 -05:00
cris sim/testsuite/cris/hw/rv-n-cris/irq1.ms: Disable due to randomness 2022-02-14 23:50:42 +01:00
d10v sim: testsuite: drop most specific istarget checks 2021-11-28 21:55:16 -05:00
example-synacor sim: testsuite: clean up arch specific toolchain settings 2021-11-27 01:27:17 -05:00
frv sim: frv: split up testsuite a bit 2021-12-04 12:52:35 -05:00
ft32 sim: testsuite: drop most specific istarget checks 2021-11-28 21:55:16 -05:00
h8300 sim: testsuite: drop most specific istarget checks 2021-11-28 21:55:16 -05:00
iq2000 sim: testsuite: drop most specific istarget checks 2021-11-28 21:55:16 -05:00
lib sim/testsuite: Support "requires: simoption <--name-of-option>" 2022-02-14 23:50:48 +01:00
lm32 sim: testsuite: drop most specific istarget checks 2021-11-28 21:55:16 -05:00
m32c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
m32r sim: testsuite: drop most specific istarget checks 2021-11-28 21:55:16 -05:00
m68hc11 sim: testsuite: drop most specific istarget checks 2021-11-28 21:55:16 -05:00
mcore sim: testsuite: drop most specific istarget checks 2021-11-28 21:55:16 -05:00
microblaze sim: testsuite: drop most specific istarget checks 2021-11-28 21:55:16 -05:00
mips sim: mips: Add simulator support for mips32r6/mips64r6 2022-02-04 19:37:26 -05:00
mn10300 sim: testsuite: drop most specific istarget checks 2021-11-28 21:55:16 -05:00
moxie sim: testsuite: drop most specific istarget checks 2021-11-28 21:55:16 -05:00
msp430 sim: testsuite: drop most specific istarget checks 2021-11-28 21:55:16 -05:00
or1k Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
pru Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
riscv sim: testsuite: drop most specific istarget checks 2021-11-28 21:55:16 -05:00
sh sim: testsuite: drop most specific istarget checks 2021-11-28 21:55:16 -05:00
v850 sim: testsuite: drop most specific istarget checks 2021-11-28 21:55:16 -05:00
.gitignore
ChangeLog-2021 sim: rename ChangeLog files to ChangeLog-2021 2021-08-17 20:27:36 -04:00
local.mk Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00