Page MenuHomeFreeBSD

kyua: convert some tests for execenv=jail demo
AbandonedPublic

Authored by igoro on Feb 26 2024, 4:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 5 2024, 5:42 AM
Unknown Object (File)
Oct 4 2024, 9:28 AM
Unknown Object (File)
Oct 4 2024, 5:06 AM
Unknown Object (File)
Oct 4 2024, 4:47 AM
Unknown Object (File)
Oct 1 2024, 8:53 PM
Unknown Object (File)
Sep 8 2024, 10:11 AM
Unknown Object (File)
Sep 7 2024, 2:58 PM
Unknown Object (File)
Aug 27 2024, 5:37 AM

Details

Reviewers
None
Summary

This is a supplementary patch for https://reviews.freebsd.org/D42350.

Test Plan

In order to test Kyua jail support against main:

  • apply kyua patch: https://reviews.freebsd.org/D42350
  • apply jailed tests demo patch: https://reviews.freebsd.org/D44087
  • full build
  • kldload pf if_epair
  • (jailed parallelism test only) kyua -v parallelism=$(sysctl -n hw.ncpu) test -k /usr/tests/sys/netpfil/pf/Kyuafile pass_block
    • optionally it can be run without parallelism to compare timings
  • (full suite test) kyua test -k /usr/tests/Kyuafile

Extra testing for the cases without jail feature:

  • apply kyua patch: https://reviews.freebsd.org/D42350
  • apply jailed tests demo patch: https://reviews.freebsd.org/D44087
  • full build WITHOUT_JAIL
  • (jailed parallelism test only) kyua -v parallelism=$(sysctl -n hw.ncpu) test -k /usr/tests/sys/netpfil/pf/Kyuafile pass_block
    • it should report what those tests are skipped due to execenv=jail is not supported
  • (full suite test) kyua test -k /usr/tests/Kyuafile

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped