tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Slow test execution for usr.bin/make
On Mon, Aug 31, 2020 at 05:53:19PM +0200, Martin Husemann wrote:
> On Mon, Aug 31, 2020 at 05:38:27PM +0200, Roland Illig wrote:
> > Is there another good explanation why these tests may take so long?
>
> The ATF test is written very poorly, see PR 55595.
>
> Instead of the for loop at the end of the script all calls to
> "atf_add_test_case" and "test_case" should be generated at
> build time. Something like:
>
> - rename t_make.sh to t_make.head and strip atf_init_test_cases()
> - write an awk or shell script to generate atf_init_test_cases()
> - build t_make.sh from t_make.head and the output of the generator script
Will that help? You still have to call atf_add_test_case O(N) times
and the further inefficiency is AIUI inside atf...
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index