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)
Feb 17 2024, 6:17 AM
Unknown Object (File)
Dec 23 2023, 12:52 AM
Unknown Object (File)
Sep 19 2023, 2:15 AM
Unknown Object (File)
Sep 13 2023, 6:46 PM
Unknown Object (File)
Sep 3 2023, 5:05 PM
Unknown Object (File)
Sep 3 2023, 5:03 PM
Unknown Object (File)
Sep 3 2023, 4:48 PM
Unknown Object (File)
Jun 25 2023, 5:35 PM
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