summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Resurrect enchant_providers testsReuben Thomas2017-07-2410-45/+90
|
* Tests: improve a comment and replace obsolete documentationReuben Thomas2017-05-041-6/+2
| | | | | | | Replace with a cross-reference to other documentation. We should not duplicate documentation in the tests in general: the tests should cite documentation (rather than code!) but the (necessary) duplication already exists between implementation and documentation.
* Tidy up main library codeReuben Thomas2017-05-041-7/+19
| | | | | | | Mostly to use C99-style declarations, moving declarations just before first use. Also make some code simplifications.
* tests/enchant_providers/Readme.txt: remove out of date noteReuben Thomas2017-05-041-4/+0
| | | | | Since the tests use their own isolated configuration directories, they no longer risk polluting personal dictionaries.
* dictionary_check.cpp: remove unused include, other minor tidy-upReuben Thomas2017-05-041-3/+1
|
* tests/Makefile.am: fix FIXME: remove duplicationReuben Thomas2017-05-041-5/+5
|
* Remove old tests, they don't really add muchReuben Thomas2017-05-044-286/+1
|
* Require providers to define dispose methods, and one of dictionary_exists or ↵Reuben Thomas2017-04-252-35/+15
| | | | | | | | | | | list_dicts Both dispose and dispose_dicts are required. This makes it harder to have inadvertent leaks, and simplifies lib.c a little. Require one of dictionary_exists or list_dicts. This means that request_dict is no longer called by enchant_provider_dictonary_exists, so remove the tests for this case.
* EnchantTestFixture.h: remove redundant includesReuben Thomas2017-04-211-8/+4
|
* Make some APIs return const char *, not char *Reuben Thomas2017-04-213-3/+3
| | | | Specifically enchant_{broker,dict}_get_error.
* Resurrect remaining disabled testsReuben Thomas2017-04-211-48/+2
| | | | | Except for some deleted tests, now that it’s no longer possible to override the system configuration directory.
* Remove enchant provider free_string_list methodReuben Thomas2017-04-2113-180/+13
| | | | | | | | | Assume a malloc-allocated char **. Voikko used an internally-allocated char **, so copy it before passing it back, as all the other providers have to. In the process of fixing some tests, reactivate some disabled tests.
* Remove dllexport/import declspecs, use autotools' automatic import/export ↵Reuben Thomas2017-04-162-10/+6
| | | | for DLLs
* Remove #pragma usage (all for MS Visual C, none needed)Reuben Thomas2017-04-154-28/+0
|
* Use valgrind-tests module to run tests under ValgrindReuben Thomas2017-04-153-1/+13
| | | | | | | Had to patch valgrind-tests.m4 to work around false positive in bash. See https://lists.gnu.org/archive/html/bug-bash/2017-04/msg00038.html Also add a suppressions file for relocatable.c.
* Fix memory leaks in tests (thanks, Valgrind!)Reuben Thomas2017-04-159-29/+54
| | | | | Some of these were intentional, but it seemed more sensible to change the tests than either leave the leaks or write Valgrind suppressions for them.
* Add a FIXME to tests/Makefile.amReuben Thomas2017-04-151-0/+1
|
* Remove some diagnostics inadvertently left in a testReuben Thomas2017-04-151-5/+0
|
* Move tests/mock_provider files up a levelReuben Thomas2017-04-155-44/+37
| | | | In order to remove Makefile.am duplication
* Remove an obsolete commentReuben Thomas2017-04-151-1/+0
|
* Remove uspell provider (move to uspell repo)Reuben Thomas2017-04-151-1/+1
|
* Move unittests to tests directoryReuben Thomas2017-04-1551-3/+8783
|
* Make library relocatable using gnulib’s relocatable-lib-lgpl moduleReuben Thomas2017-04-043-29/+35
| | | | | | | | This adds a new API enchant_set_prefix_dir, which necessitated changing the C++ API so that rather than constructing a broker instance statically, which would pre-empt any setting of the prefix dir, the Broker object must now be explicitly created. This also gives an easier way to have multiple Brokers, if desired.
* Overhaul configuration mechanismsReuben Thomas2017-03-061-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Have only one user_config_dir, so change API to enchant_get_user_config_dir, returning a char *. Make ENCHANT_CONFIG_DIR override it, not supplement it: this is intended for use by applications embedding Enchant which want to cut off its external configuration, and for testing. Look for modules only in one place, under the given prefix (which can be overridden by ENCHANT_PREFIX_DIR). The system enchant.ordering is moved to sysconfdir from pkglibdir. Little point having two separate files, but make it configurable by the sysadmin. Fix default path relative to g_get_system_data_dirs for finding hunspell dictionaries (was still using one more suited to myspell). Make a couple of C++ fixes to the uspell provider. Not currently being built. Don’t look for Enchant config directly in home directory any more. Rename some internal functions without leadiing underscore. No point doing this for merely static functions, as we don’t with most names. Only leave underscores where there is already a function with the name without the underscore. Reverse the order of directories in enchant_get_conf_dirs, so it doesn’t have to be reversed by its only caller. Update relevant tests.
* Remove ENCHANT_MODULE_PATH environment variableReuben Thomas2017-03-031-4/+6
| | | | | | Not needed any longer for testing (use ENCHANT_PREFIX_DIR); for other purposes it’s mostly useful for chaos (e.g. code injection into applications using Enchant).
* Simplify finding provider modules in testsReuben Thomas2017-03-031-5/+1
| | | | | | | | | | | I had misunderstood the libtool documentation: LT_OBJDIR is always used for dynamic objects. (Confirmed by reading the code.) Also, the libtool variable objdir holds the same value, so AC_SUBST it directly rather than inventing our own variable. This also fixes an incompatibility with Windows for the integration test environment (path separator).
* Simplify code layout: move providers into a single directoryReuben Thomas2017-03-031-4/+3
| | | | | Move READMEs from individual providers into comments at the top of the relevant source file.
* Remove editor settings comments for vim and EmacsReuben Thomas2017-03-032-2/+0
| | | | | Emacs is already dealt with via .dir-locals.el; other editors should similarly be set up globally.
* Remove ispell back-endReuben Thomas2017-02-281-1/+1
| | | | | | | | It doesn’t work with current ispell (3.4) dictionaries on at least some systems. The ispell maintainer is not interested in making ispell a library (despite an offer of help). This seems quite reasonable. The ispell back-end will be retired to its own repository (like Uspell).
* Remove ispell compatibility scriptReuben Thomas2017-02-223-27/+1
|
* Rename Myspell checker to HunspellReuben Thomas2017-02-211-1/+1
| | | | This includes the user-visible name for the back-end.
* Move installed programs from tests/ to src/Reuben Thomas2017-02-194-770/+0
| | | | Fix a warning found by compiling in src with more warnings.
* Remove if-before-freeReuben Thomas2017-02-191-13/+5
| | | | | Applies to both free and g_free, both of which explicitly specify that passing NULL is acceptable.
* Make a commented-out test work again with new APIReuben Thomas2017-02-101-3/+1
|
* Issue #72: remove Windows registry supportReuben Thomas2017-02-102-0/+4
|
* Simplify code to fix up code page conversion on WindowsReuben Thomas2017-02-091-12/+6
|
* Fix issue #42: remove enchant_fopen; use g_fopenReuben Thomas2017-02-091-1/+2
|
* Fix tests on Windows (specifically, tested on MSYS2)Reuben Thomas2017-02-071-0/+4
|
* Remove redundant _SOURCES settingReuben Thomas2017-02-041-1/+0
|
* Simplify integration test linking configurationReuben Thomas2017-02-041-12/+5
|
* Fix issue #55: require a C++ compilerReuben Thomas2017-02-021-7/+1
|
* Run unittests, fixed for non-Windows systemsReuben Thomas2017-02-011-2/+0
| | | | Much of this work was done by Hubert Figuière.
* Remove old CVS filesPatrick Griffis2017-01-191-8/+0
|
* Fix running main tests again, after previous changeReuben Thomas2017-01-151-1/+1
| | | | Forgot to update use of noinst_PROGRAMS to check_PROGRAMS
* Use check_PROGRAMS for testsReuben Thomas2017-01-131-1/+1
|
* Run tests with 'make check'Reuben Thomas2017-01-105-19/+32
|
* Minor fixes to testsReuben Thomas2017-01-102-1/+8
| | | | | Improve error messages, and ensure test-enchant fails if a dictionary or PWL can’t be created.
* enchant-ispell: allow apostrophes anywhereReuben Thomas2016-12-201-9/+11
| | | | | | | | | | | This applies to informal English (e.g. ‘asn’t, h-less hasn’t), and of course some other languages, e.g. Dutch. Add a note about deprecation of G_UNICODE_COMBINING_MARK. Reorganise is_word_char to put code in more logical order: test for apostrophe at the top (include curly apostrophe), as its GUnicodeType is not needed.
* enchant-ispell: minor whitespace fixReuben Thomas2016-12-201-1/+2
|
* Remove redundant castReuben Thomas2016-12-201-1/+1
|