91ad1c4478
cld2: fix HAVE_CLD2 test
...
It _is_ defined (as 0) when there is no CLD2.
2026-08-20 15:05:30 -07:00
86464cd083
modernization: tweaks for c++20
...
Update various places for what we can do with C++20:
- ends_with / starts_with
- std::to_array
- using instead of typedef
- designated initializers
- "[[maybe_unused]]" instead of G_GNUC_UNUSED
Also remove some unnecessary 'static'
2026-08-20 15:05:30 -07:00
410ff46881
improve invoking external commands
...
- don't make assumptions on where programs live (i.e., /bin/sh, /bin/rm,
/bin/mv) are not universal
- dont invoke shell when unnecessary
- improve error-handling
2026-08-20 15:04:27 -07:00
bb5c36c658
tests: add some very basic CLD2_TEST
...
just to check if it works at all; no need to check cld2 at all.
2024-03-01 23:05:33 +02:00
af9eb36ca0
unit-tests: modernize
...
Use TempDir, join_paths etc.
2023-09-11 23:51:37 +03:00
3e5cec0d05
tests: update for new query parser / ngrams
2023-09-09 17:57:42 +03:00
4920b56671
update to use fmt-based apis
...
Not complete, but a first big stab converting users of Mu::Error and
various g_warning & friends, format to the new libfmt-based APIs.
2023-07-05 23:10:13 +03:00
742ca33740
utils: rework Mu::Error and g_ logging macros with fmt
...
A bit more C++ template magic to remove a lot of code.
2023-07-05 23:07:11 +03:00
f43e991468
tests: update
...
Minor updates for the new CLI
2022-11-17 11:00:06 +02: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
b1ff292bbb
mu: support MUHOME environment variable
2022-05-29 11:10:46 +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
80d84bf635
store: use Result<Store> builder, add auto upgrade
...
Make it a Result type, and add auto-upgrade (not enabled yet)
Update dependents.
2022-05-09 22:25:28 +03:00
d79488efdc
avoid warnings, update tests
2022-05-06 22:54:41 +03:00
85fed37870
message/document: update sexp on the fly
...
Keep the sexp for the document up to date during scan / change, instead of
having a separate step.
2022-05-05 01:40:17 +03:00
9dd1aaeef5
cmd: update commands and tests for Message
2022-04-30 10:40:45 +03:00
8db299ea05
commands: Updated 'find' and 'index' to use Mu::Message
2022-04-30 10:40:45 +03:00
04913d8ea9
tests: update for mu-message-fields
2022-03-07 06:50:18 +02:00
ebc9b88f80
store/query: update for new store/query api
...
Update to the new API.
2022-01-30 14:52:41 +02:00
3001c7832d
tests: add unit test for cjk handling
...
This test exposes some problem finding longer CJK strings; see: issue #1428 .
The test does not _pass_ yet, so skip it for now.
2021-11-22 22:23:18 +02:00
13c8879305
mu: move test sources to tests/
2021-11-02 22:12:15 +02:00