34d3bf2e28
tests: only build when needed
...
Build the tests lazily, i.e., not before `meson test`. This helps with
build-times.
2025-08-15 21:01:05 +03:00
23941735df
logging: rework a bit, maybe support syslog
...
Seems journal logging fails on NetBSD (no surprise), but has some
unwanted/not-fully-understood side-effects.
In any case, outside Linux there's no use in even trying to use
journald; so we don't do that anymore.
Add conditional support for syslog (requires glib 2.80).
2024-05-07 09:27:50 +03:00
29ce96923a
test-mu-utils: update parse_date_time tests
...
We're using ::time_t now.
2024-04-14 11:30:20 +03:00
30b8238522
tests: move to tests/, make optional
...
While not recommended, sometimes it can be useful to disable building
the unit tests. This can be done now with
meson -Dtests=disabled build
2024-01-06 18:35:22 +02:00
4a0eba8ddf
improve unit tests
2023-09-24 20:21:57 +03:00
04e3a2f9a8
mu-utils: improve tests
2023-09-21 23:41:15 +03:00
7cbab21099
utils: add utf8_wordbreak
...
Determine if a string has wordbreaks in a mostly Xapian-compatible way.
We need this to determine what strings should be considered "phrases".
2023-09-17 18:11:10 +03:00
9dcbe1d96c
lib: unit tests: improve / better coverage
2023-09-13 23:02:53 +03:00
9c28c65d45
utils: handle "unbroken" scripts
...
Do not removing combining characters from scripts without explicit word
boundaries, such as those for CJK.
Reuse some Xapian code for that.
2023-09-09 11:40:36 +03:00
15f08488d3
remove Mu::format, use mu_format
...
Use the new fmt-based formatting.
2023-08-19 20:04:50 +03:00
82235b9d49
fmt: more update to use new fmt-based APIs
2023-07-06 21:49:50 +03:00
daef904ca1
utils: add Regex::replace + unit tests
2023-01-29 10:13:29 +02:00
ba69e2104a
utils: remove some dead test code
2023-01-29 10:13:29 +02:00
6979a66630
utils: get rid of mu-util.[ch]
...
It was getting old...
Remove the unused parts, refactor the few parts still in use.
2023-01-14 20:02:05 +02:00
27ecbbdd65
many: use Mu::Regex instead of std::regex
...
The former is PCRE-compatible, and faster than std::regex.
2022-12-30 11:15:03 +02:00
dbd3c1309a
command-handler: rework for new sexp
...
Rework / cleanup the command-handler (and rename for command-parser).
Update tests (and integrate with sources)
2022-11-07 18:38:03 +02:00
9e60ebb683
utils: add helpers for assoc-pairs
...
Add some unit-test, too.
2022-10-02 18:24:23 +03:00
317fe53ff7
tests: update test helpers and users
...
Move test-mu-common to mu-test-utils. Use mu_test_init as a wrapper for
g_test_init. Update users.
2022-08-11 22:55:10 +03:00
f69ad37e7a
utils: add regex-split
2022-06-16 22:49:46 +03:00
646a672ae0
test-utils: add error test
2022-06-09 00:39:34 +03:00
015a7ee0cb
utils: improve locale_workaround
...
Fixes : #2270 .
2022-06-04 00:41:28 +03:00
13f0e24241
lib: improve test coverage
...
Add a bunch of tests
2022-06-02 21:07:41 +03:00
91dcd19dad
tests: improve coverage a bit
2022-05-24 19:36:39 +03:00
9c9f9ecae3
lib: improve coverage a bit
2022-05-23 23:55:11 +03:00
cea3167f3e
lib: remove some dead code (mu-str/utils)
...
Remove unused library code; recycle some electrons.
2022-05-19 23:38:49 +03:00
b03590cca8
tests: skip missing timezones in queries, too
2022-05-18 01:08:40 +03:00
33d30775ee
test-utils: Skip test if timezone is not available
2022-05-18 00:52:28 +03:00
6126d7ee62
store: ensure updates update message sexp too
...
And turn all "add" into "replace" so old messages get removed.
Update tests too.
2022-05-05 01:40:17 +03:00
b7a30c0a36
utils: update date/size parsing, factor out format
...
And update tests
2022-04-30 10:40:45 +03:00
e0096c3dee
utils: improve split / join
2022-03-19 10:58:13 +02:00
4990792f02
utils: rework Mu::split
...
And add some tests, cleanups.
2022-02-22 23:07:30 +02:00
ec826cd838
tests: update naming
2022-02-21 23:51:46 +02:00
e818e94d0e
build: fix some scan-build warnings
2022-02-07 17:36:34 +02:00
48d3f9cfab
tests: move to subdir, move to meson
...
De-clutter the source directories a bit. Ensure tests build with meson, and
remove from autotools in a few places (no need to do things twice).
2021-11-08 23:58:05 +02:00