binutils-gdb/sim/testsuite
Mike Frysinger c0d6a6e582 sim: testsuite: rework sim_init usage
The sim_init function was called by runtest for each test when --tool
was set to sim.  When we changed to --tool '' to collapse the testsuite
dir, the init function was no longer called on every test.  However, it
was still being called explicitly by config/default.exp.  It's not clear
why that explicit call ever existed since, in the past, it meant it was
redundant.

Lets drop the single sim_init call in config/default.exp and move it out
to all our tests.  This replicates the runtest behavior so we can setup
variables on a per-test basis which allows us to recollapse the sim_path
logic back.  We'll also leverage this in the future for toolchain setup.

Also add a few comments clarifying the overall runtime behavior.
2021-11-26 19:48:05 -05:00
..
aarch64 sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
arm sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
avr sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
bfin sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
bpf sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
common
config sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
cr16 sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
cris sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
d10v sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
example-synacor sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
frv sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
ft32 sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
h8300 sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
iq2000 sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
lib sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
lm32 sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
m32c sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
m32r sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
m68hc11 sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
mcore sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
microblaze sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
mips sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
mn10300 sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
moxie sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
msp430 sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
or1k sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
pru sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
riscv sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
sh sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
v850 sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
.gitignore
ChangeLog-2021
local.mk sim: testsuite: fix objdir handling 2021-11-26 19:27:21 -05:00