sim: testsuite: fix objdir handling
authorMike Frysinger <vapier@gentoo.org>
Sun, 21 Nov 2021 08:06:20 +0000 (03:06 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 27 Nov 2021 00:27:21 +0000 (19:27 -0500)
commite1e1ae6e9b5e76daed22c8b2eb79fa3b5ade3335
tree205dafa026bd39afbe1d4d2897ce1300edd3ad83
parent03c0f9c2057d361a1d9e717624ab94e4b7d67bf2
sim: testsuite: fix objdir handling

The tests assume that the cwd is the objdir directory and write its
intermediates to there all the time.  When using runtest's --objdir
setting though, this puts the files in the wrong place.  This isn't
a big problem currently as we never change --objdir, but in order to
support parallel test execution, we're going to start setting that
option, so clean up the code ahead of time.

We also have to tweak some of the cris tests which were making
assumptions about the argv[0] value.
sim/Makefile.in
sim/testsuite/bfin/allinsn.exp
sim/testsuite/cris/c/c.exp
sim/testsuite/cris/c/openpf1.c
sim/testsuite/cris/c/rename2.c
sim/testsuite/cris/c/stat3.c
sim/testsuite/cris/hw/rv-n-cris/rvc.exp
sim/testsuite/lib/sim-defs.exp
sim/testsuite/local.mk