Page MenuHomeFreeBSD

pfctl_test: avoid 200 calls to atf_get_srcdir
ClosedPublic

Authored by arichardson on Sep 12 2020, 7:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 20 2024, 10:54 PM
Unknown Object (File)
Nov 18 2024, 12:06 PM
Unknown Object (File)
Sep 28 2024, 1:07 PM
Unknown Object (File)
Sep 28 2024, 11:03 AM
Unknown Object (File)
Sep 28 2024, 4:01 AM
Unknown Object (File)
Sep 27 2024, 9:49 PM
Unknown Object (File)
Sep 27 2024, 1:34 AM
Unknown Object (File)
Sep 26 2024, 7:50 AM
Subscribers

Details

Summary

I have been trying to reduce the time that testsuite runs take for CheriBSD
on QEMU (currently about 22 hours). One of the slowest tests is pfctl_test:
Just listing the available test cases currently takes 98 seconds on a
CheriBSD RISC-V system due to all the processes being spawned. This trivial
patch reduces the time to 92 seconds. The better solution would be to
rewrite the test in C/C++ which I may do as a follow-up change.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable