summaryrefslogtreecommitdiff
path: root/src/journal/test-catalog.c
Commit message (Collapse)AuthorAge
* journal: cleanup up error handling in update_catalog()Zbigniew Jędrzejewski-Szmek2014-04-12
| | | | | | - Negative/positive errno mixup caused duplicates not to be detected properly. Now we get a warning about some duplicate entries in our own catalogs... - Errors in update_catalog would be ignored, but they should not be.
* always use the same code for creating temporary filesLennart Poettering2014-01-28
| | | | Let's unify our code here, and also always specifiy O_CLOEXEC.
* catalog: fix language detectionZbigniew Jędrzejewski-Szmek2013-12-15
| | | | | Detection would fail if language was not specified in the filename but a dot appeared somewhere higher in the path.
* catalog: determine language from the filenameZbigniew Jędrzejewski-Szmek2013-12-02
|
* test: Make testing work on systems without or old systemdHolger Hans Peter Freyther2013-08-22
| | | | | | | | | | | | | | * Introduce a macro to conditionally execute tests. This avoids skipping the entire test if some parts require systemd * Skip the journal tests when no /etc/machine-id is present * Change test-catalog to load the catalog from the source directory of systemd. * /proc/PID/comm got introduced in v2.6.33 but travis is still using v2.6.32. * Enable make check and make distcheck on the travis build * Use -D"CATALOG_DIR=STR($(abs_top_srcdir)/catalog)" as a STRINGIY would result in the path '/home/ich/source/linux' to be expanded to '/home/ich/source/1' as linux is defined to 1.
* move _cleanup_ attribute in front of the typeHarald Hoyer2013-04-18
| | | | http://lists.freedesktop.org/archives/systemd-devel/2013-April/010510.html
* test-catalog,core/load-dropin: remove unused variablesZbigniew Jędrzejewski-Szmek2013-04-05
|
* catalog: open up catalog internalsZbigniew Jędrzejewski-Szmek2013-03-28
| | | | | | | | | | | | | In order to write tests for the catalog functions, they are made non-static and start taking a 'database' parameter, which is the name of a file with the preprocessed catalog entries. This makes it possible to make test-catalog part of the normal test suite, since it now only operates on files in /tmp. Some more tests are added.
* journalct: beef up entry listingZbigniew Jędrzejewski-Szmek2013-03-19
| | | | The ability to dump catalog entries in full and by id is added.
* journal: implement message catalogLennart Poettering2012-11-15
The message catalog can be used to attach short help texts to log lines, keyed by their MESSAGE_ID= fields. This is useful to help the administrator understand the context and cause of a message, find possible solutions and find further related documentation. Since this is keyed off MESSAGE_ID= this will only work for native journal messages. The message catalog supports i18n, and is useful to augment english language system messages with explanations in the local language. This commit only includes short explanatory messages for a few example message IDs, we'll add more complete documentation for the relevant systemd messages later on.