freebsd-src/lib/libcasper
Mark Johnston 615bf03e33 cap_dns tests: Convert to ATF, avoid failing when lookups don't resolve
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 easier to implement.
- 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 and deserves a closer
  look.

Reviewed by:	oshogbo
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D39241
2023-03-30 19:36:00 -04:00
..
libcasper libcasper.3: document cap_init's single-threaded program requirement 2023-01-10 20:53:30 -07:00
services cap_dns tests: Convert to ATF, avoid failing when lookups don't resolve 2023-03-30 19:36:00 -04:00
tests TESTSDIR isn't required; remove it 2017-08-13 01:08:37 +00:00
Makefile libcasper/services: include <src.opts.mk> to hook tests to build 2019-10-23 01:50:41 +00:00
Makefile.inc Introduce caspermocks. 2017-10-28 19:23:57 +00:00