Module Name: src Committed By: jschauma Date: Sun Dec 4 02:53:17 UTC 2022
Modified Files: src/tests/lib/libc/net: t_protoent.sh t_servent.sh Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libc/net/t_protoent.sh cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libc/net/t_servent.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.