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: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 to t_make.head and strip atf_init_test_cases()
 - write an awk or shell script to generate atf_init_test_cases()
 - build from t_make.head and the output of the generator script


Home | Main Index | Thread Index | Old Index