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 Thu, Sep 10, 2020 at 11:01:39PM +0000, David Holland wrote:
> - for filename in "$(atf_get_srcdir)"/unit-tests/*.mk ; do
> - basename="${filename##*/}"
> - basename="${basename%.mk}"
> - atfname="$(echo "${basename}" | tr "x-" "x_")"
> + for test in "$(ls "$(atf_get_srcdir)"/unit-tests/*.mk |\
> + sed 's,.*/,,;s,\.mk$,,;h;y/-/_/;G;s,\n,/,')"; do
> + atfname="${test%/*}"
> + basename="${test#*/}"
Erm, that should be $(ls ...), not "$(ls ...)", foo.
(spotted by Joerg)
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index