Re: [PATCH] dejagnu: add support for silent builds with site.exp

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.sysutils.automake.patches
Message-ID <YZWhBKtQ2DJpTf2R@vapier>
On 17 Nov 2021 14:22, Karl Berry wrote:
> Thanks for the patch, Mike.
> 
>     * lib/am/dejagnu.am (site.exp): Use $(AM_V_GEN) 
> 
> Ok. Can you tell me how to discern that this makes a difference?
> Is there some test where it can be observed?
> I've never actually used dejagnu with Automake. 

i don't know of an easy way to produce a distilled testcase.
i'm using the gdb/binutils project to check behavior.
https://sourceware.org/git/?p=binutils-gdb.git;a=summary

after you configure+make, you can iterate with just `make site.exp`.

>     and merge all independent shell calls into one.
> 
> Is something gained by doing so? I actually find it more readable to
> avoid long \-continued shell commands in Automake wherever
> possible. (Admittedly there are already zillions of places where there
> is no way to avoid it.  Indeed, IMHO those constructs are the single
> hardest-to-debug aspect of Automake.) --thanks, karl.

doesn't make spawn a shell for every line ?  so instead of running bash
like 18 times, we run it just once.

the goal was to simplify the $(AM_V_GEN) logic.  i guess you could replace
the first @ with $(AM_V_GEN) and every subsequent @ with $(AM_V_at) instead.
-mike
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmGVoQQACgkQQWM7n+g3
9YFzqw//e16noHqosYanB3gkmy2TzkIDSeHoZ1HPi6JJ2LpOJ6SPPu8Iy5d1+GSt
t7u+mwbsuglzVkPNriGoAbISlVau5g4qREEfdw5frnocSjS5i8vYsTGKZqbXhmuW
wTUI50tU4RDn60MzYzIE7tJPfGZzaJwg6dXayjIxX5zoYcMJzcTIt4IObKVnWjja
Yz6JqprnWMgRUFARfmP1oNt7Fz0WMJ5uNHxBhhH9d+0SZf0BI4i4VeHZKXPz5SLy
/sI/+B00AW4hCtizQVcMIOeiBV8D80THabMvFnVJQTvjI5AXaRW/F8C95cHkw3ll
HChsazOU0EtmAVJN4poiAvWKZ3CfgiB+POjOTW4J9XLsXVOo66c7asGRlzOasfMn
7UsSryYl6nAKaP8MBqaha9QeFhFEssDh+oDf9Hr/fbIcuQK+0La8x8OmY8CE9bDs
qf0VMOxTK3JR00e2mQcmdTj+opB8JuF9lQ2pfan97EMZ21lHnrdp0kNhcinhDu4M
u4i/VMJDnMbfwGh74ZDiqIfjRLRrdyFmP2a11tfSedLlP+G1lhd7LJsQ5dyfr2Dm
9amMUNlMUFxgRoSlnxNc5N+S5Qy9CoyBAx9caQ0cV5SO/YUzTHMTxoDNf/FuPdqK
zff6SuB6eDgIRPgSUj4RyaOX+G3fwNXwyV43sYvirhAIAwMCfkU=
=yG5A
-----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.