This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] nsswitch: Add group merging support


On 12/29/2015 04:58 PM, Mike Frysinger wrote:
>> I performed testing by running the getent utility against my newly-built
>> glibc and configuring /etc/nsswitch.conf with the following entry:
> 
> what will it take to get tests into glibc itself ?  ad-hoc testing is
> a great way for code to rot.

The way I'm going to test this is like so:

(a) Create two dummy nss modules: libnss_testmerge[12].so, which provide some
    data, and a small API to change data sets on the fly for testing.

(b) A master test using __nss_configure_lookup to override /etc/nsswitch.conf
    (This was news to me, but it's a public interface we provide which can
     override any lookup).

Then you iterate over the group lookups and switch test data and verify results.

I should be able to finish this next week, and that should provide some formal
automation to our regression testsuite.

This is orthogonal to the addition of this feature though.

Cheers,
Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]