<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc/tests/net/getaddrinfo/Makefile, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>libc/tests: rename t_getaddrinfo.sh to getaddrinfo_test.sh</title>
<updated>2025-04-08T16:54:04+00:00</updated>
<author>
<name>K Rin</name>
<email>rin@sandb0x.tw</email>
</author>
<published>2025-04-06T00:32:51+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=fe44dee0ef5ca77315c30ad0c819a8b3dabc85a2'/>
<id>fe44dee0ef5ca77315c30ad0c819a8b3dabc85a2</id>
<content type='text'>
This matches FreeBSD style of test names.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This matches FreeBSD style of test names.
</pre>
</div>
</content>
</entry>
<entry>
<title>libc/tests: getaddrinfo_test: test both IPv4 and IPv6 preferred policies</title>
<updated>2025-04-08T16:53:15+00:00</updated>
<author>
<name>K Rin</name>
<email>rin@sandb0x.tw</email>
</author>
<published>2025-04-06T00:27:19+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a709d15529b3dd8479f2a642b4d0e65e09d0515e'/>
<id>a709d15529b3dd8479f2a642b4d0e65e09d0515e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>libc/tests: move getaddrinfo_test data to a subdirectory</title>
<updated>2025-04-08T16:52:33+00:00</updated>
<author>
<name>K Rin</name>
<email>rin@sandb0x.tw</email>
</author>
<published>2025-04-06T00:00:56+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a18476bd7118a28cc402bda52898999b86f15e58'/>
<id>a18476bd7118a28cc402bda52898999b86f15e58</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>libc/tests: copy t_getaddrinfo out from contrib/netbsd-tests</title>
<updated>2025-04-08T16:48:51+00:00</updated>
<author>
<name>K Rin</name>
<email>rin@sandb0x.tw</email>
</author>
<published>2025-04-05T23:47:16+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=65f6c19efa82e5988092d0c71befd10147a1ede3'/>
<id>65f6c19efa82e5988092d0c71befd10147a1ede3</id>
<content type='text'>
It is going to be modified in next commits.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It is going to be modified in next commits.
</pre>
</div>
</content>
</entry>
<entry>
<title>libc/tests: add getaddrinfo test</title>
<updated>2025-03-28T21:36:40+00:00</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2025-03-28T21:34:55+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=53134577806796c8c12119c854a30ed4faf5a73e'/>
<id>53134577806796c8c12119c854a30ed4faf5a73e</id>
<content type='text'>
A test suite for getaddrinfo(3) written in C.  Unlike NetBSD test, this
one will be mostly focused on what the API should return when something
isn't good with your DNS.  Test emulates bad DNS servers in resolv.conf
intercepting fopen(2) and emulates downed network intercepting send(2).

Initial version covers three main scenarios: all good, server(s) timed
out, network down.  For each scenario we test hostname with trailing dot
and without, since libc resolver uses quite different code paths,
sometimes even yielding with different error codes.  All current error
codes in the test are what our libc returns right now, meaning the test
documents what we have, not what there should be.

Reviewed by:		kib
Differential Revision:	https://reviews.freebsd.org/D49410
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A test suite for getaddrinfo(3) written in C.  Unlike NetBSD test, this
one will be mostly focused on what the API should return when something
isn't good with your DNS.  Test emulates bad DNS servers in resolv.conf
intercepting fopen(2) and emulates downed network intercepting send(2).

Initial version covers three main scenarios: all good, server(s) timed
out, network down.  For each scenario we test hostname with trailing dot
and without, since libc resolver uses quite different code paths,
sometimes even yielding with different error codes.  All current error
codes in the test are what our libc returns right now, meaning the test
documents what we have, not what there should be.

Reviewed by:		kib
Differential Revision:	https://reviews.freebsd.org/D49410
</pre>
</div>
</content>
</entry>
<entry>
<title>libc/tests: enable getaddrinfo(1) tests from NetBSD</title>
<updated>2025-03-28T21:36:40+00:00</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2025-03-28T21:32:37+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=0b773a94ab9af13ebe560a3f07799b8e6622a61a'/>
<id>0b773a94ab9af13ebe560a3f07799b8e6622a61a</id>
<content type='text'>
Enable running of contrib/netbsd-tests/lib/libc/net/getaddrinfo without
modifications to the test program itself.  However, create our own version
of expected results files.  They are produced from the NetBSD files, with
the following list of changes:

o AF_INET6 value is different, hence: s/family 24/family 28/.
o SCTP result (socktype 5 protocol 132) needs to be added to many queries
  results.
o NetBSD libc sorts multiple results first by protocol, then by address
  family.  FreeBSD first sorts on address family, then on protocol.  Some
  results need to be reordered.
o Error strings need to be fixed:
  s/hostname nor servname provided, or not known/Name does not resolve/
  s/ai_family not supported/Address family not recognized/
  s/servname not supported for ai_socktype/\
  Service was not recognized for socket type/.

Reviewed by:		ngie, kib
Differential Revision:	https://reviews.freebsd.org/D49409
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Enable running of contrib/netbsd-tests/lib/libc/net/getaddrinfo without
modifications to the test program itself.  However, create our own version
of expected results files.  They are produced from the NetBSD files, with
the following list of changes:

o AF_INET6 value is different, hence: s/family 24/family 28/.
o SCTP result (socktype 5 protocol 132) needs to be added to many queries
  results.
o NetBSD libc sorts multiple results first by protocol, then by address
  family.  FreeBSD first sorts on address family, then on protocol.  Some
  results need to be reordered.
o Error strings need to be fixed:
  s/hostname nor servname provided, or not known/Name does not resolve/
  s/ai_family not supported/Address family not recognized/
  s/servname not supported for ai_socktype/\
  Service was not recognized for socket type/.

Reviewed by:		ngie, kib
Differential Revision:	https://reviews.freebsd.org/D49409
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove residual blank line at start of Makefile</title>
<updated>2024-07-15T22:43:39+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2024-07-15T04:46:32+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e9ac41698b2f322d55ccf9da50a3596edb2c1800'/>
<id>e9ac41698b2f322d55ccf9da50a3596edb2c1800</id>
<content type='text'>
This is a residual of the $FreeBSD$ removal.

MFC After: 3 days (though I'll just run the command on the branches)
Sponsored by: Netflix
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a residual of the $FreeBSD$ removal.

MFC After: 3 days (though I'll just run the command on the branches)
Sponsored by: Netflix
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-16T17:55:03+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:55:03+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf'/>
<id>d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove quotes around Makefile .error/.warn/.info strings</title>
<updated>2022-01-22T19:03:07+00:00</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2022-01-15T21:20:24+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6f6fbfa3a83578332f5605a97108ef28d6726c29'/>
<id>6f6fbfa3a83578332f5605a97108ef28d6726c29</id>
<content type='text'>
The text after .error et al is emitted verbatim.

Reviewed by:	sjg
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D33904
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The text after .error et al is emitted verbatim.

Reviewed by:	sjg
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D33904
</pre>
</div>
</content>
</entry>
<entry>
<title>Re-add PACKAGE=&gt; tests to lib/libc/tests/net/getaddrinfo/Makefile and add</title>
<updated>2016-09-19T06:59:17+00:00</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2016-09-19T06:59:17+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b3ef7604b99862604170dcfb1e506e1654662a0d'/>
<id>b3ef7604b99862604170dcfb1e506e1654662a0d</id>
<content type='text'>
it to lib/libc/tests/sys/Makefile [*]

Even though make -VPACKAGE and make -n install seem to do the right thing,
the effects are a bit different, depending on the build host.

MFC after:		1 week
Obtained from:		HardenedBSD (af602f0db) [*]
Reported by:		Oliver Pinter &lt;oliver.pinter@hardenedbsd.org&gt; [*]
Sponsored by:		Dell EMC Isilon
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
it to lib/libc/tests/sys/Makefile [*]

Even though make -VPACKAGE and make -n install seem to do the right thing,
the effects are a bit different, depending on the build host.

MFC after:		1 week
Obtained from:		HardenedBSD (af602f0db) [*]
Reported by:		Oliver Pinter &lt;oliver.pinter@hardenedbsd.org&gt; [*]
Sponsored by:		Dell EMC Isilon
</pre>
</div>
</content>
</entry>
</feed>
