One test is always skipped because it required inexistent /var/db/services.cdb: Replacing by services.db fix the test.
root@fb:/usr/tests # kyua test lib/libc/net/servent_test lib/libc/net/servent_test:servent -> skipped: Required file '/var/db/services.cdb' not found [0.001s] Results file id is usr_tests.20190712-222013-284112 Results saved to /root/.kyua/store/results.usr_tests.20190712-222013-284112.db 1/1 passed (0 failed)
After the patch:
root@fbsd:/usr/tests # kyua test lib/libc/net/servent_test lib/libc/net/servent_test:servent -> passed [0.117s] Results file id is usr_tests.20190712-222045-982234 Results saved to /root/.kyua/store/results.usr_tests.20190712-222045-982234.db 1/1 passed (0 failed)
Some decent examples for how I did this with the tmpfs tests from NetBSD can be found in tests/sys/fs/tmpfs/Makefile. My goal was to leave the tmpfs testcases as untouched as possible so we could pull in future netbsd-tests snapshots with a little porting/hacking as possible :).