Page MenuHomeFreeBSD

cap_dns tests: Convert to ATF, avoid failing when lookups don't resolve
ClosedPublic

Authored by markj on Mar 24 2023, 12:39 AM.
Tags
None
Referenced Files
F106270366: D39241.diff
Sat, Dec 28, 7:15 AM
Unknown Object (File)
Thu, Dec 5, 5:31 PM
Unknown Object (File)
Nov 12 2024, 6:02 PM
Unknown Object (File)
Sep 27 2024, 12:12 AM
Unknown Object (File)
Sep 21 2024, 2:09 PM
Unknown Object (File)
Sep 21 2024, 6:42 AM
Unknown Object (File)
Sep 20 2024, 3:22 PM
Unknown Object (File)
Sep 17 2024, 6:40 PM
Subscribers

Details

Summary

The cap_dns tests require Internet access. Currently they fail when
that's not available, which for CI purposes is undesirable. Let's
instead skip the tests if none of the non-casper name/addr lookups
succeed.

To that end:

  • Convert the tests to ATF so that skipping is more natural.
  • Break up the tests into separate test cases.
  • If one of the system (i.e., non-casper) lookup functions fails, skip the test if all of them failed, otherwise fail the tests, since partial failure indicates something is flaky.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable