summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorjschauma <jschauma@NetBSD.org>2022-12-04 02:53:17 +0000
committerjschauma <jschauma@NetBSD.org>2022-12-04 02:53:17 +0000
commitb9366bee9289bb4063c296700341acad94a1e30f (patch)
tree129952dd6bd7083000e279d2c22cd5149b0c7ee9 /sys/dev
parent324e630a4fb8f9e3314b4af1a42530c3fde0d9e6 (diff)
allow testing of files other than those in /etc
To test e.g., the file "/some/where/protocols" instead of "/etc/protocols", set TEST_FILE=/some/where/protocols in your environment. Note: this now compares the contents of the file you gave versus what getprotoent(3)/getservent(3) uses (which still is /etc/protocols via h_protoent.c / /etc/services or /var/db/services.cdb via h_servent.c). When you have expected changes in the services or protocols file that you're generating, this necessarily produces a difference. To really allow testing the file versus what the library function returns, you'd have to install the file on the system running the test, but at least with this change you can now generate the file and verify that it didn't caused unexpected differences.
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions