Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/Makefile.am
Commit message (Collapse)AuthorAgeFilesLines
* Improve Python code styleArthur de Jong2019-09-081-2/+4
| | | | | | This also adds a flake8 test that checks code style. Note that this test is not run by default because it requires network access to create the virtualenv with the test software.
* Add Python 3 supportArthur de Jong2019-09-081-1/+7
| | | | | | | | | This ensures that both pynslcd and the command-line utilities work with Python3 as interpreter and runs some tests with all installed Python interpreters. This drops support for Python 2.6 and extends 5a84be2 to perform more testing with Python 3.
* Portability improvements to test_ldapcmds.shArthur de Jong2017-06-181-1/+4
| | | | | | | | | This fixes an issue with the export statement in POSIX shell scripts, ensures that the commands in the output match those in the script, strips password hashes for shadow lookups (for systems without PAM where these are exposed) and only runs the tests if we enabled the utils. Fixes 246a1f3.
* Clean log from test_pamcmds.expectArthur de Jong2017-06-161-1/+1
| | | | | | This removes test_pamcmds.log that is generated by test_pamcmds.expect when running the test suite. This avoids an error in the distcheck target.
* Add tests for getent.ldap commandArthur de Jong2017-06-041-4/+5
| | | | | | | | This more or less duplicates the tests from test_nsscmds.sh to test_ldapcmds.sh with some modifications for the differences in output. This also extends the test_nsscmds.sh tests to handle the case where shadow lookups do not go through LDAP.
* Only run doctests when building pynslcdArthur de Jong2016-08-141-2/+2
|
* Add test for running doctestsArthur de Jong2016-06-031-2/+3
|
* Introduce lookup_groupbyuser test commandArthur de Jong2014-06-051-1/+4
| | | | | | 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.
* Add a test for setting member attribute mappingArthur de Jong2014-05-041-4/+7
|
* Run the correct executables for the testsArthur de Jong2014-03-101-2/+3
| | | | | This fixes issues with running the tests when using a separate build directory (fixes ef0eddaa).
* Distribute setup_slapd.sh and associated filesArthur de Jong2013-10-251-2/+3
|
* Make script to check test environmentArthur de Jong2013-10-221-1/+1
| | | | | This changes the in_testenv.sh script into testenv.sh which has more checks and a few functions to configure the test environment.
* Cleanups and fixes related to automake upgradeArthur de Jong2013-09-151-9/+4
| | | | | | 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.
* Add a test for tio timeout calculationsArthur de Jong2013-09-021-2/+4
| | | | | This test checks whether the proposed remaining time to sleep is reasonable.
* Add a test for clock_gettime() supported clocksArthur de Jong2013-09-021-2/+4
| | | | | | 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).
* Only run pynslcd tests if it is enabledArthur de Jong2013-08-251-1/+4
|
* Add a test for the manual pagesArthur de Jong2013-08-231-4/+6
| | | | | This replaces e0491d2 to run xmlto from the man directory. This handles the case more gracefully if xmlto is not available.
* Run pylint as a testArthur de Jong2013-08-181-3/+3
| | | | | This runs a somewhat limited pylint run against the source files. It should at least catch some issues.
* Implement tests for caching functionalityArthur de Jong2013-08-171-3/+5
|
* Test Python syntax on make checkArthur de Jong2013-07-261-2/+6
|
* Rename nscd_invalidate option to reconnect_invalidateArthur de Jong2013-07-261-1/+1
| | | | | This also renames the internal nscd module to invalidator for both nslcd and pynslcd. The new invalidator module is now no longer nscd-specific.
* implement a lookup_shadow test command for use on ↵Arthur de Jong2013-03-111-1/+4
| | | | systems that don't allow querying shadow via getent
* implement functionality to send a cache invalidation ↵Arthur de Jong2013-03-091-2/+2
| | | | signal to nscd
* implement a lookup_netgroup command for systems that ↵Arthur de Jong2012-12-291-1/+3
| | | | | | cannot use getent to list netgroups git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1882 ef36b2f9-881f-0410-afb5-c4e39611909c
* put external libraries at the end when linkingArthur de Jong2011-08-141-3/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1504 ef36b2f9-881f-0410-afb5-c4e39611909c
* check whether the NSS shadow map queries LDAP before ↵Arthur de Jong2011-08-051-1/+1
| | | | | | returning x as a password has for shadow users git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1487 ef36b2f9-881f-0410-afb5-c4e39611909c
* ensure that all test source files are distibuted and can ↵Arthur de Jong2011-03-261-6/+6
| | | | | | tests can be run when source directory differs from build directory git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1416 ef36b2f9-881f-0410-afb5-c4e39611909c
* re-organise tests somewhat making things more consistentArthur de Jong2011-03-251-30/+22
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1413 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement a validnames option that can be used to ↵Arthur de Jong2011-03-251-1/+1
| | | | | | fine-tune the test for valid user and group names using a regular expression git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1411 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement test cases for some of the common PAM actions ↵Arthur de Jong2011-03-181-2/+3
| | | | | | (test environment required for this) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1398 ef36b2f9-881f-0410-afb5-c4e39611909c
* put all assertion functions and compatibility code into ↵Arthur de Jong2011-03-171-2/+2
| | | | | | one header file git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1397 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove legacy test code that is no longer usedArthur de Jong2011-03-161-31/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1395 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement a global symbol inside the NSS module to allow ↵Arthur de Jong2010-06-141-2/+2
| | | | | | applications to disable NSS lookups over LDAP and use it in nslcd to avoid deadlocks git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1141 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement attribute mapping using shell-like expressionsArthur de Jong2009-12-281-5/+8
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1041 ef36b2f9-881f-0410-afb5-c4e39611909c
* rename configfile to /etc/nslcd.conf and make debian ↵Arthur de Jong2009-08-311-1/+1
| | | | | | packaging copy the file to the new name on upgrade git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@980 ef36b2f9-881f-0410-afb5-c4e39611909c
* refactor protocol reading and writing macros to the ↵Arthur de Jong2009-05-291-1/+1
| | | | | | common directory, use more logical names and in the PAM module no longer use NSS status codes (import of r887 from nss-pam-ldapd) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@904 ef36b2f9-881f-0410-afb5-c4e39611909c
* add missing objects to test programsArthur de Jong2009-05-291-0/+8
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@903 ef36b2f9-881f-0410-afb5-c4e39611909c
* add some very basic tests for the isvalidname() functionArthur de Jong2008-06-131-2/+7
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@760 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement a very basic test for getpeercred()Arthur de Jong2008-06-061-2/+7
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@752 ef36b2f9-881f-0410-afb5-c4e39611909c
* add file for testing nslcd/group.cArthur de Jong2008-05-021-1/+12
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@719 ef36b2f9-881f-0410-afb5-c4e39611909c
* don't even compile the test programs on make checkArthur de Jong2008-05-021-2/+5
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@718 ef36b2f9-881f-0410-afb5-c4e39611909c
* don't compile test code on every build and fix LDADD ↵Arthur de Jong2008-05-021-9/+8
| | | | | | lists to include correct objects git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@717 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement a set that uses the dict module as back-endArthur de Jong2008-04-191-3/+6
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@681 ef36b2f9-881f-0410-afb5-c4e39611909c
* some new tests for the dictionary moduleArthur de Jong2008-04-191-3/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@679 ef36b2f9-881f-0410-afb5-c4e39611909c
* pagectrl module has movedArthur de Jong2008-02-011-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@600 ef36b2f9-881f-0410-afb5-c4e39611909c
* pass the correct pthread flags for all calls to compiler ↵Arthur de Jong2008-01-311-4/+4
| | | | | | and linker and link in compat code, handle other assert.h setups and avoid some ! in if statements in shell scripts git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@589 ef36b2f9-881f-0410-afb5-c4e39611909c
* pass configfile to use as a command-line paramter to ↵Arthur de Jong2007-12-201-1/+3
| | | | | | test_myldap, use the myldap_session_close() function, print a limited number of results, add a wrapper script to test whether the LDAP server is available for the test and ship all needed files in the tarball git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@512 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix objects that are needed to get tests linkable (due ↵Arthur de Jong2007-12-091-3/+3
| | | | | | to namechange from ldap-nss to myldap) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@492 ef36b2f9-881f-0410-afb5-c4e39611909c
* integrate basic myldap interface (partially merged from ↵Arthur de Jong2007-10-191-1/+7
| | | | | | dev-myldap branch) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@443 ef36b2f9-881f-0410-afb5-c4e39611909c
* include debugging information in object filesArthur de Jong2007-10-191-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@442 ef36b2f9-881f-0410-afb5-c4e39611909c