summaryrefslogtreecommitdiffstats
path: root/lib/util/tests
Commit message (Collapse)AuthorAgeFilesLines
* lib/util/asn1.c - remove the "const" specifier from OIDMatthias Dieter Wallnöfer2010-12-211-2/+2
| | | | There is no reason to have it "const" since it's an allocated thing.
* s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2010-12-1110-12/+11
| | | | | | | | This is consistent with the test names used by selftest, should make the names less confusing and easier to integrate with other tools. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
* Revert "lib/util:tests/time.c - "test_timestring" - fix it on Solaris"Matthias Dieter Wallnöfer2010-12-061-5/+2
| | | | | | | | This reverts commit 654e0102ddb0acaaf45fb55c15818722235fcc9f. This should better be handled by the replace library. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Mon Dec 6 12:17:31 CET 2010 on sn-devel-104
* lib/util:tests/time.c - "test_timestring" - fix it on SolarisMatthias Dieter Wallnöfer2010-12-051-3/+5
| | | | | | | | Solaris returns "Thu Jan 01" and not "Thu Jan 1" - therefore proof for both. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sun Dec 5 23:09:13 CET 2010 on sn-devel-104
* asn1_tests: Implement negative unit-tests for ber_write_OID_String()Kamen Mazdrashki2010-10-221-0/+22
|
* asn1_tests.c: Make test data static constKamen Mazdrashki2010-10-201-6/+6
|
* strlist: Make test names unique.Jelmer Vernooij2010-09-211-2/+8
|
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-161-2/+2
| | | | | | | this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* Spelling fixes for libutilBrad Hards2010-02-222-11/+11
| | | | Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
* test:local added LOCAL-DLINKLIST testsuiteAndrew Tridgell2010-02-101-0/+130
| | | | (cherry picked from commit 95a5bee2c30a67a35604b0456ab7836f6dc67702)
* util/strlist: Fix up "const" warnings in the string list and test codeMatthias Dieter Wallnöfer2009-11-201-24/+27
| | | | | | This work I did using suggestions by Jelmer. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* util: str_list_unique_2() test implementationKamen Mazdrashki2009-11-131-0/+33
| | | | | | | | Difference with previous test for str_list_unique() is that this test allows number of elements and number of duplicates to be supplied on command line using --option="list_unique:count=47" --option="list_unique:dups=7"
* lib/util Split data_blob_hex_string() into upper and lowerAndrew Bartlett2009-11-121-1/+2
| | | | | | | | | | | | Rather than have a repeat of the bugs we found at the plugfest where hexidecimal strings must be in upper or lower case in particular places, ensure that each caller chooses which case they want. This reverts most of the callers back to upper case, as things were before tridge's patch. The critical call in the extended DN code is of course handled in lower case. Andrew Bartlett
* s4/asn1: Use explicite TALLOC_CTX in ber_write_OID functionsKamen Mazdrashki2009-10-161-3/+3
|
* asn1_tests: Fix typo in comment.Karolin Seeger2009-10-091-2/+2
| | | | Karolin
* s4/asn1: local TALLOC_CTX should be child of torture_contextKamen Mazdrashki2009-10-011-2/+2
|
* s4/asn1: fixed typo in torture messagesKamen Mazdrashki2009-10-011-2/+2
|
* s4/asn1: Added test for ber_read_partial_OID_String()Kamen Mazdrashki2009-10-011-0/+45
|
* s4/asn1: Added test for ber_read_OID_String()Kamen Mazdrashki2009-10-011-0/+32
|
* s4/asn1: Added test for ber_write_partial_OID_String()Kamen Mazdrashki2009-10-011-0/+74
|
* s4/asn1: Added test for ber_write_OID_String()Kamen Mazdrashki2009-10-011-0/+74
|
* s4/asn1: Added torture suite for ASN1Kamen Mazdrashki2009-10-011-0/+35
|
* s4:torture: data_blob_hex_string() output is now lowercase.Andrew Kroeger2009-09-301-1/+1
| | | | | Based on the change in commit fb84edabbe9f358031117de2cf78613c704ac600, these tests needs to expect lowercase output.
* parmlist: Add more tests.Jelmer Vernooij2009-09-271-3/+63
|
* parmlist: Add basic tests for test_get_int().Jelmer Vernooij2009-09-271-0/+46
|
* util:tests: Correct time tests for negative UTC offsets.Andrew Kroeger2009-09-051-2/+23
| | | | | | | | | | | | | | | | | | | | | | | All: Please find attached a patch to fix the timestring and http_timestring tests on hosts that have a negative UTC offset (west of the Prime Meridian). Sincerely, Andrew Kroeger >From 8a8ca35edccf64aa98f2f3ae1469c4c27db8215e Mon Sep 17 00:00:00 2001 From: Andrew Kroeger <andrew@id10ts.net> Date: Fri, 4 Sep 2009 01:31:50 -0500 Subject: [PATCH] util:tests: Correct time tests for negative UTC offsets. The timestring and http_timestring tests were failing on hosts with negative offsets from UTC. Due to the timezone offset, the returned values were back in the year 1969 (before the epoch) and did not match the test patterns. The correction computes the offset from UTC, and if it is negative that offset is added onto the value given to the timestring() and http_timestring() calls so that the returned values fall on 01-Jan-1970 and match the test pattern.
* Fix broken password quality checkMatthieu Patou2009-07-191-0/+2
| | | | | This fixes broken password tests when the passwords contain non ASCII characters (e.g. accentuated chars like ('e, `e, ...)
* Add extensive tests for str_list function behaviourAndrew Bartlett2009-05-151-15/+343
|
* Add new functions and tests: str_list_make_empty(), str_list_make_single()Andrew Bartlett2009-05-141-0/+34
|
* Print the failed value in the time tests.Jelmer Vernooij2009-01-081-5/+8
|
* Fix use of "time offset" parameter, and add test to make sure I don't break ↵Jelmer Vernooij2008-12-231-0/+16
| | | | it again :-)
* Test maxsize parameter to file_load() as used in Samba 3.Jelmer Vernooij2008-10-131-0/+6
|
* Add test for data_blob_string_const_null.Jelmer Vernooij2008-10-131-0/+11
|
* Fix number of arguments for file_load() functions.Jelmer Vernooij2008-10-121-1/+1
|
* Add more tests to datablob testsuite.Jelmer Vernooij2008-10-121-2/+44
|
* Add one-test testsuite for datablob.Jelmer Vernooij2008-10-121-0/+44
|
* Use common strlist implementation in Samba 3 and Samba 4.Jelmer Vernooij2008-10-121-3/+3
|
* Add some simple tests for lib/util/time.cJelmer Vernooij2008-10-111-0/+75
|
* Move lib/util from source4 to top-level libutil.Jelmer Vernooij2008-10-115-0/+507
Conflicts: source4/Makefile