diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-04-04 09:05:21 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-04-08 00:47:49 -0400 |
commit | 1bcee7fd87d5335f7408467189cab92a7c837608 (patch) | |
tree | bd39e27397da38d688a43815703b0862545e06fb /sim/testsuite/lib/sim-defs.exp | |
parent | eec8bf7eab693186badfd5285cf713d3e22205e2 (diff) | |
download | binutils-1bcee7fd87d5335f7408467189cab92a7c837608.zip binutils-1bcee7fd87d5335f7408467189cab92a7c837608.tar.gz binutils-1bcee7fd87d5335f7408467189cab92a7c837608.tar.bz2 |
sim: testsuite: skip tests when the port is disabled
If the port hasn't been enabled, don't try to run its tests. Making
this dynamic simplifies the test harnesses and avoids duplicating a
bunch of target tuple checks.
Diffstat (limited to 'sim/testsuite/lib/sim-defs.exp')
-rw-r--r-- | sim/testsuite/lib/sim-defs.exp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sim/testsuite/lib/sim-defs.exp b/sim/testsuite/lib/sim-defs.exp index 1b40216..e627b6e 100644 --- a/sim/testsuite/lib/sim-defs.exp +++ b/sim/testsuite/lib/sim-defs.exp @@ -205,6 +205,11 @@ proc run_sim_test { name requested_machs } { global global_cc_options global global_sim_options + if ![file exists [sim_tool_path]] { + unsupported "$name: missing simulator [sim_tool_path]" + return + } + if [string match "*/*" $name] { set file $name set name [file tail $name] |