tests: skip gracefully when the tested binary's own package isn't installedpkgbase splits programs and their tests into separate packages (e.g.unifdef/yacc/indent/file2c -> toolchain, jail -> jail
tests: skip gracefully when the tested binary's own package isn't installedpkgbase splits programs and their tests into separate packages (e.g.unifdef/yacc/indent/file2c -> toolchain, jail -> jail, etc), while theirtests always land in the generic tests package. Installing just thetests package therefore leaves these suites unable to find the binarythey exercise, and they fail confusingly instead of skipping.Rather than force all packages to be installed for the tests package,make the tests cope with the missing packages. Add require.progs (or,for TAP/PLAIN-style suites with no atf_set hook: TEST_METADATArequired_programs) for the binary under test in: bectl, certctl,ctfconvert, dhclient, file2c, indent, ipfw, jail, lastcomm, mixer,newsyslog, nvmecontrol, pfctl, praudit, sa, syslogd, tunefs, unifdef,yacc, ztest.I skipped adding data for all the binaries in the base runtimepackage for simplicity.Assisted-by: Claude Code (Sonnet 5)Sponsored by: NetflixReviewed by: ngieDifferential Revision: https://reviews.freebsd.org/D58262
show more ...
ipfw: treat ipv6 address with zero mask as 'any'Make the behaviour similar for both IPv4 and IPv6. Also addthe corresponding tests.PR: 294733MFC after: 1 weekDifferential Revision:
ipfw: treat ipv6 address with zero mask as 'any'Make the behaviour similar for both IPv4 and IPv6. Also addthe corresponding tests.PR: 294733MFC after: 1 weekDifferential Revision: https://reviews.freebsd.org/D56618
ipfw: add support for masked ip-address lookupsCurrent radix-based implementation of lookup tables in ipfw doesnot support non-contiguous prefixes while this type of lookup isneeded to write CPU-
ipfw: add support for masked ip-address lookupsCurrent radix-based implementation of lookup tables in ipfw doesnot support non-contiguous prefixes while this type of lookup isneeded to write CPU-effective firewall configurations.For some of the cases we can reach the goal using a masked tablelookup by adding masked (e.g. zero non-significant bits) recordsinto a table and then zero non-significant bits in lookup keyprior to making a table lookup.Obtained from: Yandex LLCMFC after: 3 weeksRelnotes: yesSponsored by: Yandex LLCDifferential Revision: https://reviews.freebsd.org/D53694
tests/ipfw: Update regression tests to match new 32-bit size rule numbersCommit 4a77657cbc01 increased the size of several opcodes to ipfw_insn_u32.Approved by: aeSponsored by: NetflixDifferent
tests/ipfw: Update regression tests to match new 32-bit size rule numbersCommit 4a77657cbc01 increased the size of several opcodes to ipfw_insn_u32.Approved by: aeSponsored by: NetflixDifferential Revision: https://reviews.freebsd.org/D52876
ipfw: Add tests for the NPTv6 rule parser
ipfw: add state/comment tests
ipfw: add eaction testsMFC after: 2 weeks
ipfw(8): add ioctl/instruction generation testsDifferential Revision: https://reviews.freebsd.org/D40488MFC after: 2 weeks