summaryrefslogtreecommitdiffstats
path: root/src/tests/util-tests.c
Commit message (Collapse)AuthorAgeFilesLines
* Add a random + identity test for murmurhash3Simo Sorce2012-01-091-0/+29
| | | | | | | | This test always generate a random string so each time the test is run we will test the hash function with a new value. It also hashes the same string twice and compares the result so that we have a chance of catching if uninitialized variables are getting mixed into the value calculation and end up generating different results for the same input.
* util: add murmurhash3 hash functionSimo Sorce2012-01-091-0/+24
|
* tests: fix test group of utf8 testsSimo Sorce2012-01-041-5/+5
|
* sss_utf8_tolower utility function+unit testsJakub Hrozek2011-12-161-0/+96
|
* New DEBUG facility - SSSDBG_UNRESOLVED changed from -1 to 0Pavel Březina2011-08-251-1/+4
| | | | | | | | | | | | | | | | | | | | | Removed: SSS_UNRESOLVED_DEBUG_LEVEL (completely replaced with SSSDBG_UNRESOLVED) Added new macro: CONVERT_AND_SET_DEBUG_LEVEL(new_value) Changes unresolved debug level value (SSSDBG_UNRESOLVED) from -1 to 0 so DEBUG macro could be reduced by one condition. Anyway, it has a minor effect, every time you want to load debug_level from command line parameters, you have to use following pattern: /* Set debug level to invalid value so we can deside if -d 0 was used. */ debug_level = SSSDBG_INVALID; pc = poptGetContext(argv[0], argc, argv, long_options, 0); while((opt = poptGetNextOpt(pc)) != -1) { ... } CONVERT_AND_SET_DEBUG_LEVEL(debug_level);
* New DEBUG facility - conversionPavel Březina2011-08-251-0/+2
| | | | | | | | | | https://fedorahosted.org/sssd/ticket/925 Conversion of the old debug_level format to the new one. (only where it was necessary) Removed: SSS_DEFAULT_DEBUG_LEVEL (completely replaced with SSSDBG_DEFAULT)
* Unit test for parge_argsJakub Hrozek2011-06-151-0/+58
|
* Validate user supplied size of data itemsSumit Bose2011-01-111-0/+14
| | | | | | Specially crafted packages might lead to an integer overflow and the parsing of the input buffer might not continue as expected. This issue was identified by Sebastian Krahmer <krahmer@suse.de>.
* Add utility function to sanitize LDAP/LDB filtersStephen Gallagher2010-11-151-0/+68
| | | | Also adds a unit test.
* Use POPT_TABLEEND to close option tableSumit Bose2010-10-131-1/+1
|
* Add diff_string_lists utility functionStephen Gallagher2010-08-031-0/+227
Includes a unit test