aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/tests/suites/test_settings.c
Commit message (Collapse)AuthorAgeFilesLines
* settings: Allow spaces in time settings before the optional unitMartin Willi2014-07-071-2/+2
|
* settings: Be more strict in converting settings to specific data typesMartin Willi2014-07-071-20/+15
| | | | | | | As the behavior was inconsistent for empty strings or strings with characters appended to a number, testing the code failed on some platforms. The new rules are more strict, returning the default if additional characters or an empty string was found for a setting.
* unit-tests: Adapt settings tests for WindowsMartin Willi2014-06-041-2/+13
|
* unit-tests: Don't assert failures for unreadable settings files as rootTobias Brunner2014-05-161-5/+8
| | | | The file can still be read by root even if nobody has read privileges.
* settings: Adopt the new order of sections and settings when replacing configsTobias Brunner2014-05-151-1/+83
|
* settings: Only purge sections if necessaryTobias Brunner2014-05-151-0/+29
| | | | | Instead of removing and caching all values of a previous config, we only do this for actually removed sections/settings.
* settings: Maintain order of sections and settings while enumeratingTobias Brunner2014-05-151-57/+24
|
* settings: Don't overwrite values in-placeTobias Brunner2014-05-151-7/+16
| | | | | | | This is not thread safe. If threads are reading from pointers to existing values they could get a partially updated invalid value. Refactored assignment to a separate function.
* unit-tests: Update settings tests to match new parserTobias Brunner2014-05-151-59/+124
| | | | | Empty settings are now ignored, strings are supported, newlines are handled properly (e.g. at the end of files) etc.
* settings: Move to a separate folderTobias Brunner2014-05-151-1/+1
|
* settings: Add support to enumerate sections and key/value pairs with fallbacksTobias Brunner2014-02-121-10/+24
|
* unit-tests: Test how settings_t handles some invalid dataTobias Brunner2014-02-121-0/+72
|
* settings: Add method that allows to define fallback sections for other sectionsTobias Brunner2014-02-121-0/+109
| | | | | The fallbacks are currently only used for single value lookups. Enumerators are not affected by them.
* unit-tests: Add tests for includes and file loading in settings_tTobias Brunner2014-02-121-0/+149
|
* settings: Allow empty strings in section keyTobias Brunner2014-02-121-0/+2
|
* unit-tests: Add tests for enumerators in settings_tTobias Brunner2014-02-121-0/+148
|
* unit-tests: Add tests for setters in settings_tTobias Brunner2014-02-121-0/+109
|
* unit-tests: Add basic tests for settings_tTobias Brunner2014-02-121-0/+317