Re: Can we deprecate $subdir?

Ben Elliston <[email protected]>
Newsgroups gmane.comp.sysutils.dejagnu.general
Message-ID <20181126001527.GB3719@bapbop>
On Sat, Nov 24, 2018 at 07:43:41PM -0600, Jacob Bachmeyer wrote:

> As part of the ongoing effort to improve Automake integration and
> mindful of the eventual goal to run test scripts in slave
> interpreters, I have come to the conclusion that it would be better
> to provide an API call for getting filenames in the testsuite rather
> than expecting test scripts to use variables.  API calls can be
> aliased back into a master interpreter, while variable namespaces
> are separate between interpreters.

In principle, I like this idea.

It's difficult to properly control an API when users have direct
access to internal variables of the test framework. Deprecating
$subdir is going to be difficult (*), but perhaps we could do
something like adding another runtest option that helps the
maintainers of testsuites to find and remove deprecated features (for
example, by not setting $subdir and catching the error as it
propagates up to runtest.exp).

* The GCC testsuite uses $subdir extensively and I'm sure other
testsuites do, too.

Cheers,
Ben

_______________________________________________
DejaGnu mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/dejagnu
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEFS8+rdM1/2KWERKFZ9rcPj90NkkFAlv7Ox0ACgkQZ9rcPj90
NknRqw/8CU74o5Pdxehlq1YI/jdc4rX7rbbnl7vDPQ/hzoMDtv5WsnTUFvy4LIUe
Y5Xao9E7EuyeDUzpYFnejNhMpgTgZDSvGO0D0gVO8/GcYdPCeZJJJYXcBMXjosKA
ubot3Ix24jHMHaw04Z8ZDdujFUKQ6hjQMnP4B30OZNQs05ens+lbOvK1UCs7ITPw
H2r6829PIj3J1D1Hf/4NfS7ylEfc0uANoE5jvzanIIEl2ImVpgJvvqmiirfPh53A
NlJLF4WGJnAHACGMVhUVsYeSZZdlZ3Sv0oH3hPixYQZEMzN4CPtysoukMiLuelJJ
n2cCfTEmCYdZArtznsv9How1/B7bCOAJj4FZtfqeBzpzaUapEjiWBmEu7OTqBkjM
ugUAxMZR29Y+isSLf+kP/JomJs6zSiSDjISgUDkkf35hGOUogdoMwJTq61RpW9ot
y/qL3NkeXkTvvmIU2zT9w85KO6GQcHhoeB4w19on91BEdTZRKn73kTpAzjI6g4MR
TeTQTNvHrklApTrPA1pX/5tBDatk49kCEl4FvB4tBSlISZ9o4HLYSIuwjjjuTF0l
s4PJzIy4tFzfQl5dBdLpHdPSbddDGjUQKRucr0ZJoZ20D/YmI7OQPhIxyjRc9R5j
IKxpsijLwhlPeGB9pxctCB3LS7cIFSOyBG3tIYuWArEI0TO/arU=
=4aWv
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.