Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | unit-tests: Fix settings test after merging multi-line strings | Tobias Brunner | 2015-03-23 | 1 | -2/+2 |
| | |||||
* | settings: Allow spaces in time settings before the optional unit | Martin Willi | 2014-07-07 | 1 | -2/+2 |
| | |||||
* | settings: Be more strict in converting settings to specific data types | Martin Willi | 2014-07-07 | 1 | -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 Windows | Martin Willi | 2014-06-04 | 1 | -2/+13 |
| | |||||
* | unit-tests: Don't assert failures for unreadable settings files as root | Tobias Brunner | 2014-05-16 | 1 | -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 configs | Tobias Brunner | 2014-05-15 | 1 | -1/+83 |
| | |||||
* | settings: Only purge sections if necessary | Tobias Brunner | 2014-05-15 | 1 | -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 enumerating | Tobias Brunner | 2014-05-15 | 1 | -57/+24 |
| | |||||
* | settings: Don't overwrite values in-place | Tobias Brunner | 2014-05-15 | 1 | -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 parser | Tobias Brunner | 2014-05-15 | 1 | -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 folder | Tobias Brunner | 2014-05-15 | 1 | -1/+1 |
| | |||||
* | settings: Add support to enumerate sections and key/value pairs with fallbacks | Tobias Brunner | 2014-02-12 | 1 | -10/+24 |
| | |||||
* | unit-tests: Test how settings_t handles some invalid data | Tobias Brunner | 2014-02-12 | 1 | -0/+72 |
| | |||||
* | settings: Add method that allows to define fallback sections for other sections | Tobias Brunner | 2014-02-12 | 1 | -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_t | Tobias Brunner | 2014-02-12 | 1 | -0/+149 |
| | |||||
* | settings: Allow empty strings in section key | Tobias Brunner | 2014-02-12 | 1 | -0/+2 |
| | |||||
* | unit-tests: Add tests for enumerators in settings_t | Tobias Brunner | 2014-02-12 | 1 | -0/+148 |
| | |||||
* | unit-tests: Add tests for setters in settings_t | Tobias Brunner | 2014-02-12 | 1 | -0/+109 |
| | |||||
* | unit-tests: Add basic tests for settings_t | Tobias Brunner | 2014-02-12 | 1 | -0/+317 |