summaryrefslogtreecommitdiff
path: root/lib/util/tests
AgeCommit message (Collapse)AuthorFilesLines
2009-11-13util: str_list_unique_2() test implementationKamen Mazdrashki1-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"
2009-11-12lib/util Split data_blob_hex_string() into upper and lowerAndrew Bartlett1-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
2009-10-16s4/asn1: Use explicite TALLOC_CTX in ber_write_OID functionsKamen Mazdrashki1-3/+3
2009-10-09asn1_tests: Fix typo in comment.Karolin Seeger1-2/+2
Karolin
2009-10-01s4/asn1: local TALLOC_CTX should be child of torture_contextKamen Mazdrashki1-2/+2
2009-10-01s4/asn1: fixed typo in torture messagesKamen Mazdrashki1-2/+2
2009-10-01s4/asn1: Added test for ber_read_partial_OID_String()Kamen Mazdrashki1-0/+45
2009-10-01s4/asn1: Added test for ber_read_OID_String()Kamen Mazdrashki1-0/+32
2009-10-01s4/asn1: Added test for ber_write_partial_OID_String()Kamen Mazdrashki1-0/+74
2009-10-01s4/asn1: Added test for ber_write_OID_String()Kamen Mazdrashki1-0/+74
2009-10-01s4/asn1: Added torture suite for ASN1Kamen Mazdrashki1-0/+35
2009-09-30s4:torture: data_blob_hex_string() output is now lowercase.Andrew Kroeger1-1/+1
Based on the change in commit fb84edabbe9f358031117de2cf78613c704ac600, these tests needs to expect lowercase output.
2009-09-27parmlist: Add more tests.Jelmer Vernooij1-3/+63
2009-09-27parmlist: Add basic tests for test_get_int().Jelmer Vernooij1-0/+46
2009-09-05util:tests: Correct time tests for negative UTC offsets.Andrew Kroeger1-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.
2009-07-19Fix broken password quality checkMatthieu Patou1-0/+2
This fixes broken password tests when the passwords contain non ASCII characters (e.g. accentuated chars like ('e, `e, ...)
2009-05-15Add extensive tests for str_list function behaviourAndrew Bartlett1-15/+343
2009-05-14Add new functions and tests: str_list_make_empty(), str_list_make_single()Andrew Bartlett1-0/+34
2009-01-08Print the failed value in the time tests.Jelmer Vernooij1-5/+8
2008-12-23Fix use of "time offset" parameter, and add test to make sure I don't break ↵Jelmer Vernooij1-0/+16
it again :-)
2008-10-13Test maxsize parameter to file_load() as used in Samba 3.Jelmer Vernooij1-0/+6
2008-10-13Add test for data_blob_string_const_null.Jelmer Vernooij1-0/+11
2008-10-12Fix number of arguments for file_load() functions.Jelmer Vernooij1-1/+1
2008-10-12Add more tests to datablob testsuite.Jelmer Vernooij1-2/+44
2008-10-12Add one-test testsuite for datablob.Jelmer Vernooij1-0/+44
2008-10-12Use common strlist implementation in Samba 3 and Samba 4.Jelmer Vernooij1-3/+3
2008-10-11Add some simple tests for lib/util/time.cJelmer Vernooij1-0/+75
2008-10-11Move lib/util from source4 to top-level libutil.Jelmer Vernooij5-0/+507
Conflicts: source4/Makefile