summaryrefslogtreecommitdiffstats
path: root/lib/util/charset/tests
Commit message (Collapse)AuthorAgeFilesLines
* lib/util/tests: add missing #include "torture/local/proto.h"Stefan Metzmacher2014-04-021-0/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* charset/tests: Add prototypes for test functions.Jelmer Vernooij2012-02-072-0/+7
|
* lib/util/charset: remove charset module loadingAndrew Bartlett2011-09-202-16/+13
| | | | | | | | | | | | | Now that the 'table' modules are gone, there is no reason for there to be charset modules at all. This builds the macosxfs and weird modules into the binary at the appropriate times, and changes the tests to test instead the difference between the remaining internal handlers and iconv(). Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Sep 20 06:27:06 CEST 2011 on sn-devel-104
* lib/util/charset: the comparsion must be against our charset modulesAndrew Bartlett2011-09-101-2/+2
| | | | | | | | | There is little point testing this against the system iconv. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sat Sep 10 15:45:42 CEST 2011 on sn-devel-104
* lib/util/charset Use name of ISO-8859-1 that matches our internal implementationAndrew Bartlett2011-09-101-44/+44
|
* lib/util/charset: Improve toture assertions in iconv testAndrew Bartlett2011-09-101-1/+14
|
* lib/util/charset Run charset sets with and without the system iconvAndrew Bartlett2011-09-101-11/+23
| | | | | | | | We need to know that we can load the samba-provided modules, and that they are correct. However, we must mark a number of tests as knownfail due to errors in our internal iconv modules. Andrew Bartlett
* lib/util/charset: Remove 'display charset'Andrew Bartlett2011-06-231-55/+55
| | | | | | | | | | | | | | | | | As discussed in 'CH_DISPLAY and gettext' on the samba-technical list: http://lists.samba.org/archive/samba-technical/2011-June/078190.html Setting this to a value other than 'unix charset' does not make sense, as any system where the filesytem charset does not equal the terminal charset will already have problems with programs as simple as 'ls'. It also means that our output could not be pasted as our input in interactive programs or onto our command line, as we never did translate in the DISPLAY -> UNIX direction. The d_printf() calls are retained in case we need to revisit this, and to support display_set_stderr(). Andrew Bartlett
* lib/util/charset Add tests for srclen=-1 behaviour.Andrew Bartlett2011-04-281-0/+443
| | | | | | | | | This confirms that we do include a null terminator in all non-failed conversions. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util/charset Add many more charset testsAndrew Bartlett2011-04-131-15/+444
| | | | | | | | | This confirms that the behaviour of the convert_string() API (with the process-wide iconv handle). Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util/charset Rename convert_string test to allow a 'non_handle' testAndrew Bartlett2011-04-131-3/+2
| | | | | | | | | A future commit will test (with a subset of tests) the varient of this function without _handle. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util/charset Add more tests for convert_string_error_handle()Andrew Bartlett2011-04-131-0/+101
| | | | | | | | | This helps define the semantics of this function very clearly, particularly for partial and invalid inputs. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util/charset Add tests for convert_string_error_handleAndrew Bartlett2011-04-131-1/+68
| | | | | | | | | These confirm that the errno is set correctly and that we stop on a partial multibyte character Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util/charset Add expected values for upper/lower case testsAndrew Bartlett2011-04-131-0/+16
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util/charset Add tests for strcasecmp_m(), talloc_strupper() et alAndrew Bartlett2011-03-311-0/+170
| | | | | | | | | | | | | | | | | | This adds tests for: strncasecmp_m strcasecmp_m strupper_talloc_n strlower_talloc strhaslower strhasupper The tests can certainly be improved with pre-calculated upper and lower case text, but this at least puts them though their paces. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Mar 31 14:24:22 CEST 2011 on sn-devel-104
* lib/util/charset Add tests for strlen_m_ext() and convert_string_talloc()Andrew Bartlett2011-03-311-2/+87
| | | | | | | This convers a few more cases for convert_string_talloc() and introduces tests for strlen_m_ext() across complex multibyte strings. Andrew Bartlett
* lib/util/charset Add tests for convert_string_talloc_handle()Andrew Bartlett2011-03-301-0/+418
| | | | | | | Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Mar 30 13:02:47 CEST 2011 on sn-devel-104
* lib/util/charset rename iconv_convenience to iconv_handleAndrew Bartlett2011-03-251-2/+2
| | | | | | This better reflects what this structure is Andrew Bartlett
* charcnv: removed the allow_badcharcnv and allow_bad_conv options to ↵Andrew Tridgell2011-03-241-3/+3
| | | | | | | | | convert_string*() we shouldn't accept bad multi-byte strings, it just hides problems Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Mar 24 01:47:26 CET 2011 on sn-devel-104
* lib/util: Merge basic string length and comparison functionsAndrew Bartlett2011-03-231-8/+8
| | | | | | | | | | These functions now use the codepoints for more accurate string handling and now form common code. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Mar 23 08:21:54 CET 2011 on sn-devel-104
* s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2010-12-112-2/+2
| | | | | | | | 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
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-161-5/+5
| | | | | | | 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>
* charset/tests/iconv - Remove the "const" from "ptr_in" to prevent ↵Matthias Dieter Wallnöfer2009-11-201-7/+7
| | | | | | "discard_const_p" use Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:tests/iconv - Fix a warningMatthias Dieter Wallnöfer2009-09-071-1/+2
|
* Fix make test.Jeremy Allison2009-08-241-0/+1
| | | | Jeremy.
* Add a new non-convenience version of push_codepoint.Jelmer Vernooij2009-04-231-1/+1
|
* s4: Use same function signature for convert_* as s3.Jelmer Vernooij2009-03-011-7/+4
|
* Add allow_badcharcnv argument to all conversion function, forJelmer Vernooij2009-03-011-3/+3
| | | | consistency with Samba 3.
* finished adding UTF16_MUNGED charsetAndrew Tridgell2008-10-311-0/+58
| | | | | | | Changed the approach for the charset to go via utf16, which makes a bit more sense to read. Added a testsuiite for UTF16_MUNGED as part of LOCAL-ICONV
* Add version of next_codepoint without iconv_convenience.Jelmer Vernooij2008-10-241-1/+1
|
* Split up codepoints code, use consistent _m suffix.Jelmer Vernooij2008-10-241-32/+32
|
* Rename string_replace_w to string_replace_m, which is more correct.Jelmer Vernooij2008-10-241-7/+7
|
* Move charset library to top level.Jelmer Vernooij2008-10-242-0/+696