Home | History | Annotate | only in /src/tests/lib/libc/net
History log of /src/tests/lib/libc/net
RevisionDateAuthorComments
 1.14 01-Jun-2020  kamil Avoid redefining _REENTRANT under sanitizers

Switch away from -Wno-macro-redefined which was Clang specific.
 1.13 08-Feb-2020  kamil Expand the -Wno-macro-redefined usage to MKLIBCSANITIZER

_REENTRANT can be redefined and this is considered as an error.
 1.12 27-Aug-2019  kamil Enhance the support of LLVM sanitizers

Define _REENTRANT for MKSANITIZER build. This is needed for at least stdio
code. This caused new build issued with duplicated symbols in few places
and rump kernel code picking different code paths borrowed from libc.
Handle all this in one go.

Add bsd.sanitizer.mk to share common code used by programs and libraries.

Switch from realall to beforeinstall target in .syms files. This is more
reliable in MKSANITIZER.
 1.11 06-Aug-2018  msaitoh branches: 1.11.2;
Add simple test case for if_nametoindex(3).
 1.10 09-Jan-2014  christos branches: 1.10.24; 1.10.26;
Use our own resolv.conf file simplifying the test to not need rump_vfs.
Add debugging on the dns server
One test fails (gethostbyaddr6) why? It runs without rump
 1.9 06-Jan-2014  gson Make t_hostent test cases that query the DNS work on systems with no
Internet connectivity, by hijacking DNS queries and /etc/resolv.conf
accesses using librumphijack and providing a minimal DNS server to
answer the queries.
 1.8 16-Aug-2013  christos test harness for gethostbyname()/gethostbyaddr() and their internal bits.
XXX[1]: How can we avoid using hard-coded hosts for DNS
XXX[2]: How do we test NIS?
 1.7 15-Sep-2012  plunky correct spelling of file to clean
 1.6 01-Nov-2011  pgoyette branches: 1.6.2; 1.6.8;
atf-ify ether_aton test
 1.5 15-Jul-2011  jruoho Few naive unit tests for the getprotoent(3) family.
 1.4 13-Jan-2011  pgoyette Re-add missing -lpthread and fix some structure inializers (not sure how
these ever compiled)
 1.3 13-Jan-2011  pgoyette The nsdispatch test belongs in libc/net and not in libc
 1.2 12-Jan-2011  pgoyette Move the servent and protoent tests to src/tests/lib/libc/net/ (where
they should have gone initially).
 1.1 12-Jan-2011  pgoyette By request, put the getaddrinfo test in tests/lib/libc/net/
 1.6.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.6.8.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.6.2.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.6.2.1 30-Oct-2012  yamt sync with head
 1.10.26.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.10.26.1 10-Jun-2019  christos Sync with HEAD
 1.10.24.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.11.2.1 01-Sep-2019  martin Pull up following revision(s) (requested by kamil in ticket #126):

external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m64/Makefile: revision 1.3
external/bsd/compiler_rt/lib/clang/lib/netbsd/msan_cxx-m64/Makefile: revision 1.3
external/gpl2/lvm2/lvm2tools.mk: revision 1.5
common/lib/libc/gmon/mcount.c: revision 1.14
Makefile: revision 1.331
share/mk/Makefile: revision 1.51
external/bsd/fetch/lib/Makefile: revision 1.12
external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m64/Makefile: revision 1.3
tests/lib/libc/net/Makefile: revision 1.12
external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m64/Makefile: revision 1.3
external/bsd/compiler_rt/lib/clang/lib/netbsd/msan-m64/Makefile: revision 1.3
distrib/sets/lists/base/mi: revision 1.1213
share/mk/bsd.lib.mk: revision 1.380
external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m64/Makefile: revision 1.3
external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m64/Makefile: revision 1.3
share/mk/bsd.sanitizer.mk: revision 1.1
share/mk/bsd.prog.mk: revision 1.323
external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan-m64/Makefile: revision 1.3
external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan_cxx-m64/Makefile: revision 1.3
lib/libc/gen/sysctlgetmibinfo.c: revision 1.14

Enhance the support of LLVM sanitizers

Define _REENTRANT for MKSANITIZER build. This is needed for at least stdio
code. This caused new build issued with duplicated symbols in few places
and rump kernel code picking different code paths borrowed from libc.

Handle all this in one go.

Add bsd.sanitizer.mk to share common code used by programs and libraries.

Switch from realall to beforeinstall target in .syms files. This is more
reliable in MKSANITIZER.
 1.1 11-Jun-2011  christos branches: 1.1.2;
Turn warns on for all tests and fix all the bugs.
 1.1.2.2 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.1.2.1 11-Jun-2011  cherry file Makefile.inc was added on branch cherry-xenmp on 2011-06-23 14:20:39 +0000
 1.1 01-Nov-2011  pgoyette atf-ify ether_aton test
 1.4 29-Mar-2014  gson branches: 1.4.4; 1.4.8;
Use daemon(3) instead of the experimental daemon2_fork() and
daemon2_detach(). Now that newer versions of daemon2_fork() and
daemon2_detach() are used in nfsd, where two-stage daemonization is
actually needed, there is no longer any reason for h_dns_server to
serve as a test case and example of their use.
 1.3 09-Jan-2014  christos Use our own resolv.conf file simplifying the test to not need rump_vfs.
Add debugging on the dns server
One test fails (gethostbyaddr6) why? It runs without rump
 1.2 06-Jan-2014  gson Fix spelling of "daemon". Pointed out by Thomas Klausner.
 1.1 06-Jan-2014  gson Make t_hostent test cases that query the DNS work on systems with no
Internet connectivity, by hijacking DNS queries and /etc/resolv.conf
accesses using librumphijack and providing a minimal DNS server to
answer the queries.
 1.4.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.8.1 29-Mar-2014  tls file h_dns_server.c was added on branch tls-maxphys on 2014-08-20 00:04:50 +0000
 1.4.4.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.4.4.1 29-Mar-2014  yamt file h_dns_server.c was added on branch yamt-pagecache on 2014-05-22 11:42:20 +0000
 1.2 09-Jan-2014  christos branches: 1.2.4; 1.2.8;
Use our own resolv.conf file simplifying the test to not need rump_vfs.
Add debugging on the dns server
One test fails (gethostbyaddr6) why? It runs without rump
 1.1 16-Aug-2013  christos test harness for gethostbyname()/gethostbyaddr() and their internal bits.
XXX[1]: How can we avoid using hard-coded hosts for DNS
XXX[2]: How do we test NIS?
 1.2.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.8.1 09-Jan-2014  tls file h_hostent.c was added on branch tls-maxphys on 2014-08-20 00:04:50 +0000
 1.2.4.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2.4.1 09-Jan-2014  yamt file h_hostent.c was added on branch yamt-pagecache on 2014-05-22 11:42:20 +0000
 1.3 01-Jun-2020  kamil Avoid redefining _REENTRANT under sanitizers

Switch away from -Wno-macro-redefined which was Clang specific.
 1.2 13-Jan-2011  pgoyette Re-add missing -lpthread and fix some structure inializers (not sure how
these ever compiled)
 1.1 13-Jan-2011  pgoyette The nsdispatch test belongs in libc/net and not in libc
 1.2 07-Apr-2011  jruoho Remove the following (literal) text in the TNF copyrights:

* This code is derived from software contributed to The NetBSD Foundation
* by
*

XXX: If these originated from you and you want your name to be mentioned,
please add it.
 1.1 12-Jan-2011  pgoyette Move the servent and protoent tests to src/tests/lib/libc/net/ (where
they should have gone initially).
 1.2 07-Apr-2011  jruoho Remove the following (literal) text in the TNF copyrights:

* This code is derived from software contributed to The NetBSD Foundation
* by
*

XXX: If these originated from you and you want your name to be mentioned,
please add it.
 1.1 12-Jan-2011  pgoyette Move the servent and protoent tests to src/tests/lib/libc/net/ (where
they should have gone initially).
 1.1 16-Aug-2013  christos branches: 1.1.4; 1.1.8;
test harness for gethostbyname()/gethostbyaddr() and their internal bits.
XXX[1]: How can we avoid using hard-coded hosts for DNS
XXX[2]: How do we test NIS?
 1.1.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.8.1 16-Aug-2013  tls file hosts was added on branch tls-maxphys on 2014-08-20 00:04:50 +0000
 1.1.4.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.4.1 16-Aug-2013  yamt file hosts was added on branch yamt-pagecache on 2014-05-22 11:42:20 +0000
 1.1 09-Jan-2014  christos branches: 1.1.4; 1.1.8;
Use our own resolv.conf file simplifying the test to not need rump_vfs.
Add debugging on the dns server
One test fails (gethostbyaddr6) why? It runs without rump
 1.1.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.8.1 09-Jan-2014  tls file resolv.conf was added on branch tls-maxphys on 2014-08-20 00:04:50 +0000
 1.1.4.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.4.1 09-Jan-2014  yamt file resolv.conf was added on branch yamt-pagecache on 2014-05-22 11:42:20 +0000
 1.1 01-Nov-2011  pgoyette atf-ify ether_aton test
 1.2 04-Apr-2012  joerg Be UTF8 clean.
 1.1 15-Jul-2011  jruoho branches: 1.1.2;
Few naive unit tests for the getprotoent(3) family.
 1.1.2.1 17-Apr-2012  yamt sync with head
 1.10 13-Jan-2014  gson branches: 1.10.4; 1.10.8;
When using braces around shell variable names, do so consistently
 1.9 13-Jan-2014  gson Add missing resolv.conf override to the gethostbyaddr6 test case.
 1.8 10-Jan-2014  gson Remove comment that no longer applies.
 1.7 10-Jan-2014  christos Add a cleanup routine because if a test fails, the script exits and the
rest of the code is not executed.
Note that the cleanup routine is executed in a separate shell so environment
variables are not propagated and need to be set again.
 1.6 09-Jan-2014  christos fix copyright botch and add library for netinet6; still does not fix the
problem.
 1.5 09-Jan-2014  christos Use our own resolv.conf file simplifying the test to not need rump_vfs.
Add debugging on the dns server
One test fails (gethostbyaddr6) why? It runs without rump
 1.4 06-Jan-2014  gson Make t_hostent test cases that query the DNS work on systems with no
Internet connectivity, by hijacking DNS queries and /etc/resolv.conf
accesses using librumphijack and providing a minimal DNS server to
answer the queries.
 1.3 20-Dec-2013  christos sixthavenue got upgraded
 1.2 20-Oct-2013  christos broadway changed addresses.
 1.1 16-Aug-2013  christos test harness for gethostbyname()/gethostbyaddr() and their internal bits.
XXX[1]: How can we avoid using hard-coded hosts for DNS
XXX[2]: How do we test NIS?
 1.10.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.10.8.1 13-Jan-2014  tls file t_hostent.sh was added on branch tls-maxphys on 2014-08-20 00:04:50 +0000
 1.10.4.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.10.4.1 13-Jan-2014  yamt file t_hostent.sh was added on branch yamt-pagecache on 2014-05-22 11:42:20 +0000
 1.1 06-Aug-2018  msaitoh branches: 1.1.2; 1.1.4;
Add simple test case for if_nametoindex(3).
 1.1.4.2 10-Jun-2019  christos Sync with HEAD
 1.1.4.1 06-Aug-2018  christos file t_if_nametoindex.c was added on branch phil-wifi on 2019-06-10 22:10:04 +0000
 1.1.2.2 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.1.2.1 06-Aug-2018  pgoyette file t_if_nametoindex.c was added on branch pgoyette-compat on 2018-09-06 06:56:48 +0000
 1.1 13-Jan-2011  pgoyette The nsdispatch test belongs in libc/net and not in libc
 1.5 04-Dec-2022  jschauma 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.
 1.4 28-Nov-2022  jschauma whoops, we don't want an extra space here

(erroneously introduced in my previous commit)
 1.3 28-Nov-2022  jschauma whitespace
 1.2 03-Sep-2012  christos whitespace
 1.1 12-Jan-2011  pgoyette branches: 1.1.6;
Move the servent and protoent tests to src/tests/lib/libc/net/ (where
they should have gone initially).
 1.1.6.1 30-Oct-2012  yamt sync with head
 1.4 04-Dec-2022  jschauma 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.
 1.3 04-Dec-2022  jschauma whitespace
 1.2 08-Mar-2016  joerg libc fallback is known to not produce nice alias entries. Avoid spurious
failures when testing in an empty chroot by requiring the services db.
 1.1 12-Jan-2011  pgoyette Move the servent and protoent tests to src/tests/lib/libc/net/ (where
they should have gone initially).
 1.2 26-Aug-2016  darcy Replace MKMAN with NOMAN as suggested by christos@. Allows
userland to build when building man pages.
 1.1 12-Jan-2011  pgoyette branches: 1.1.24; 1.1.30;
By request, put the getaddrinfo test in tests/lib/libc/net/
 1.1.30.1 18-Jan-2017  skrll Sync with netbsd-5
 1.1.24.1 25-Sep-2016  bouyer Pull up following revision(s) (requested by darcy in ticket #1241):
tests/lib/libc/net/getaddrinfo/Makefile: revision 1.2
tests/lib/libc/regex/Makefile: revision 1.10
Replace MKMAN with NOMAN as suggested by christos@. Allows
userland to build when building man pages.
 1.1 12-Jan-2011  pgoyette By request, put the getaddrinfo test in tests/lib/libc/net/
 1.1 12-Jan-2011  pgoyette By request, put the getaddrinfo test in tests/lib/libc/net/
 1.1 12-Jan-2011  pgoyette By request, put the getaddrinfo test in tests/lib/libc/net/
 1.2 03-Feb-2019  mrg - enlarge buffer to avoid snprintf() truncation
 1.1 12-Jan-2011  pgoyette branches: 1.1.46;
By request, put the getaddrinfo test in tests/lib/libc/net/
 1.1.46.1 10-Jun-2019  christos Sync with HEAD
 1.1 12-Jan-2011  pgoyette By request, put the getaddrinfo test in tests/lib/libc/net/
 1.1 12-Jan-2011  pgoyette By request, put the getaddrinfo test in tests/lib/libc/net/
 1.2 16-Dec-2018  dholland Update error string
 1.1 12-Jan-2011  pgoyette branches: 1.1.44; 1.1.46;
By request, put the getaddrinfo test in tests/lib/libc/net/
 1.1.46.1 10-Jun-2019  christos Sync with HEAD
 1.1.44.1 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.2 18-Dec-2018  dholland Update error string
 1.1 12-Jan-2011  pgoyette branches: 1.1.44; 1.1.46;
By request, put the getaddrinfo test in tests/lib/libc/net/
 1.1.46.1 10-Jun-2019  christos Sync with HEAD
 1.1.44.1 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.1 12-Jan-2011  pgoyette By request, put the getaddrinfo test in tests/lib/libc/net/
 1.1 12-Jan-2011  pgoyette By request, put the getaddrinfo test in tests/lib/libc/net/
 1.1 12-Jan-2011  pgoyette By request, put the getaddrinfo test in tests/lib/libc/net/
 1.1 12-Jan-2011  pgoyette By request, put the getaddrinfo test in tests/lib/libc/net/
 1.1 12-Jan-2011  pgoyette By request, put the getaddrinfo test in tests/lib/libc/net/
 1.3 10-Jan-2019  pgoyette Remove extraneous && from check_output()

With this extra && the test case exits abnormally when the actual and
expected outputs don't match.
 1.2 15-Jun-2011  jmmv branches: 1.2.40; 1.2.42;
Fix obvious typo in test case name. Uncovered by atf 0.14.
 1.1 12-Jan-2011  pgoyette branches: 1.1.4;
By request, put the getaddrinfo test in tests/lib/libc/net/
 1.1.4.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.2.42.1 10-Jun-2019  christos Sync with HEAD
 1.2.40.1 10-Jan-2019  pgoyette Import fix from HEAD.

Now that the test behaves normally under failure (mismatched actual vs
expected outputs), maybe I can figure out why it actually fails.
 1.1 12-Jan-2011  pgoyette By request, put the getaddrinfo test in tests/lib/libc/net/

RSS XML Feed