This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: How to test a patch in resolv/?
- From: Arjun Shankar <arjun dot is at lostca dot se>
- To: Siddhesh Poyarekar <sid at reserved-bit dot com>
- Cc: Florian Weimer <fweimer at redhat dot com>, Stan Shebs <stanshebs at google dot com>, GNU C Library <libc-alpha at sourceware dot org>, ashankar at redhat dot com, Carlos O'Donell <carlos at redhat dot com>
- Date: Wed, 7 Oct 2015 10:21:55 +0000
- Subject: Re: How to test a patch in resolv/?
- Authentication-results: sourceware.org; auth=none
- References: <CA+5-Q5KH4NS8V8GPX0YeQwq59UHWSn7eimmbZ=47jhJae5oqLA at mail dot gmail dot com> <56141DBB dot 7010902 at redhat dot com> <5614A3FE dot 10109 at reserved-bit dot com>
> Another way would be to write a custom resolver that sends crafted
> responses. I know QE in Red Hat does this with a perl script. Arjun
> (in cc now) plans to write such installed-tree tests in future.
Yes, I have used Perl's Net::DNS::Nameserver [1] to write regression tests
for getaddrinfo and friends in the past.
Unfortunately, the upstream testsuite doesn't allow for including tests
like these. We should do something about that too.
Cheers,
Arjun
[1] http://search.cpan.org/dist/Net-DNS/lib/Net/DNS/Nameserver.pm