summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2014-12-16Get -pedanticLuke Shumaker
2014-12-15be stricter everywhere (-D_FORTIFY_SOURCE=2)Luke Shumaker
2014-11-28buildsystemLuke Shumaker
2014-06-12Use other IP range for testsArthur de Jong
This uses IP addresses from the RFC 5737 TEST-NET-1 range that is meant for use in documentation. This avoids issues with running the tests environments that also use the 10.0.0.0/8 range.
2014-06-06Add missing include for FreeBSDArthur de Jong
2014-06-05Introduce lookup_groupbyuser test commandArthur de Jong
This command can be used to perform a lookup using getgrouplist() to present a list of returned numeric group ids. This can be used to avoid the additional lookups that are done with the id and groups commands.
2014-05-04Add a test for setting member attribute mappingArthur de Jong
2014-03-10Run the correct executables for the testsArthur de Jong
This fixes issues with running the tests when using a separate build directory (fixes ef0eddaa).
2014-03-10Fix nslcd-test.conf permissions for testArthur de Jong
This ensures that configuration file is not world readable when the tests are run. This avoids test failure for the use of the rootpwmodpw option.
2014-01-05Fix memory leaks related to set_pop()Arthur de Jong
Some pieces of code did not properly free() the value returned by set_pop(). The leak in group code was related to the introduction of nested group functionality in 41ba574 (merged in 3daa68d) so should only be present in releases 0.9.0 forward. The leak in the netgroup code only ended up in the Solaris version of the NSS module and was introduced in 4ea9ad1 (merged in 5c8779d). This leak is present in all releases from 0.8.0 forward.
2014-01-04Fix compiler warnings in the myldap testArthur de Jong
2013-12-21Add a test for new configuration optionArthur de Jong
2013-10-29Portability fixes to environment testsArthur de Jong
This mostly tries to reduce the influences of the test environment (local users and groups) on the tests. This uses another username (vsefcovic) in the PAM tests instead of the user arthur to avoid clashes with existing users. The PAM tests are skipped if passwd claims that it cannot modify LDAP passwords (for FreeBSD).
2013-10-25Distribute setup_slapd.sh and associated filesArthur de Jong
2013-10-22Improve portability of ldap testArthur de Jong
This supports old ldapsearch commands that don't support the -x and -H options and ldapsearch commands that don't exit with a failure code if nothing is found. This also switches the test_myldap test to use the testenv check for the LDAP server.
2013-10-22Handle other responses in test_pamcmdsArthur de Jong
This extends test_pamcmds to handle other pam/su/passwd errors and responses (as seen on CentOS 5). Also switch to stronger password when changing the test user's password to avoid problems with password strength checks.
2013-10-22Make script to check test environmentArthur de Jong
This changes the in_testenv.sh script into testenv.sh which has more checks and a few functions to configure the test environment.
2013-10-22Remove unnecessary attributes from test.ldifArthur de Jong
2013-10-22Update tests READMEArthur de Jong
This refreshes the documentation of the tests, especially the test environment.
2013-10-22Provide a script for setting up slapdArthur de Jong
The setup_slapd.sh script can be used to set up and start a slapd instance in a single (temporary) directory. The slapd instance is configured and loaded with test data for use in the test environment.
2013-10-22Fix sortgroup functionArthur de Jong
This fixes an issue with the sortgroup function which failed to handle a group line with only two colons correctly. Such group entries have been seen in the wild on FreeBSD. Also, comment lines in group files are now ignored (also seen on FreeBSD).
2013-09-15Cleanups and fixes related to automake upgradeArthur de Jong
This removes a few legacy workarounds and fixes for older versions of automake. This also removes adding specific DEBUG flags for tests since subdir objects are handled differently now.
2013-09-02Fix permissions of test configurationArthur de Jong
This sets the permissions on the nslcd-test.conf file while running the tests to ensure that the permission checks for the bindpwn and rootpwmodpw options do not fail the test.
2013-09-02Add a test for tio timeout calculationsArthur de Jong
This test checks whether the proposed remaining time to sleep is reasonable.
2013-09-02Add a test for clock_gettime() supported clocksArthur de Jong
This probes the system for available clocks to see if they can be reliably used to get a monotonic-like timer (the test doesn't verify the monotonic part, just usability).
2013-09-02Small protability fixArthur de Jong
2013-09-01Improve robustness of test_manpagesArthur de Jong
2013-08-25Only run pynslcd tests if it is enabledArthur de Jong
2013-08-23Add a test for the manual pagesArthur de Jong
This replaces e0491d2 to run xmlto from the man directory. This handles the case more gracefully if xmlto is not available.
2013-08-18Update files from test environmentArthur de Jong
2013-08-18Run pylint as a testArthur de Jong
This runs a somewhat limited pylint run against the source files. It should at least catch some issues.
2013-08-17Implement tests for caching functionalityArthur de Jong
2013-07-28Have test_pycompile not write any pyc filesArthur de Jong
We need to avoid writing pyc files because during make distcheck, the source directory is read-only. This also ensures that the test is skipped if the Python interpreter is not found.
2013-07-26Test Python syntax on make checkArthur de Jong
2013-07-26Rename nscd_invalidate option to reconnect_invalidateArthur de Jong
This also renames the internal nscd module to invalidator for both nslcd and pynslcd. The new invalidator module is now no longer nscd-specific.
2013-05-20Add an explicit cast to int in lookup_shadowArthur de Jong
2013-03-28Make the NSS tests dependant on the configuration of nsswitch.confArthur de Jong
2013-03-28Do not rely on printf() being able to print NULL stringsArthur de Jong
2013-03-24Add tests for nested group functionalityArthur de Jong
This also includes some changes to the test directory contents that were for other tests and functionality.
2013-03-24Unpack the LDIF file to make diffs clearerArthur de Jong
2013-03-11implement a lookup_shadow test command for use on systems that don't allow ↵Arthur de Jong
querying shadow via getent
2013-03-10small portability fix in test_pamcmds.shArthur de Jong
2013-03-09implement functionality to send a cache invalidation signal to nscdArthur de Jong
2013-03-03add tests for trimming expressionsArthur de Jong
2013-02-23allow names with one character in default validnames option and allow ↵Arthur de Jong
parentheses (taken from Fedora packages)
2013-01-14support children search scope for systems that have itArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1917 ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-14support systems without ETIMEArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1915 ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-14check whether setnetgrent() returns int or void (for FreeBSD)Arthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1914 ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-12reorganise configuration file parsing codeArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1913 ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-05update FIXMEsArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1901 ef36b2f9-881f-0410-afb5-c4e39611909c