summaryrefslogtreecommitdiff
path: root/lib/tests
AgeCommit message (Collapse)Author
2026-01-03test-store: disable bad testDirk-Jan C. Binnema
The "expected-to-fail" test actually passes when root.
2025-11-25improve invoking external commandsDirk-Jan C. Binnema
- 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
2025-11-21test-mu-store: bump timeout in testDirk-Jan C. Binnema
Seems some systems are quite slow, so bump the time-out. Fixes #2886.
2025-09-03store-test: add more label testsDirk-Jan C. Binnema
Ensure removal affects the labels cache.
2025-08-28mu-document: improve sexp updatingDirk-Jan C. Binnema
Ensure the cached message sexp gets updated in all cases where it's necessary.
2025-08-15tests: only build when neededDirk-Jan C. Binnema
Build the tests lazily, i.e., not before `meson test`. This helps with build-times.
2025-05-24tests: skip some slow tests when valgrindingDirk-Jan C. Binnema
2025-04-13test-store: don't break on slow systemsDirk-Jan C. Binnema
The 'circular-symlink' test.
2025-04-12test-circular-symlink: loosen test a bitDirk-Jan C. Binnema
Work-around some weirdness. No energy to do a root-cause analysis ;) Fixes #2832.
2025-02-13mu: remove empty refs + unit-testDirk-Jan C. Binnema
Some message can have an _empty_ message-id, e.g. with: In-Reply-To: <> which we weren't filter out. This would yield and _empty_ Thread-Id, in mu-message.cc And this would make mu-query believe it had no matches in the first query, in Query::Private::run_related, and effectively throw away the results. (Xapian using empty string both for a "not found" result, and "found an empty string doesn't help either). So, avoid having an empty reference. Also add a unit-test. Fixes #2812.
2025-02-02test: add unit-tests for related/new/skip-dupsDirk-Jan C. Binnema
Test the interaction between related/new/skipped-duplicates. Seems to work as expected.
2024-12-02query: add related: combi-field + testDirk-Jan C. Binnema
Add a new combination (pseudo) field "related:", which combines "message-id" and "references"
2024-12-01tests: add tests for ref: searchingDirk-Jan C. Binnema
2024-11-26remove non-single-threaded optionDirk-Jan C. Binnema
Single-threaded is the build-default, and seems to work well enough for 1.12.7, so remove the option to turn it off. This is because build-options that influence such low-level/core behavior are a pain to maintain.
2024-08-22message: detect top-level smime parts + testDirk-Jan C. Binnema
Fixes #2745
2024-07-27test_index_move: extend unit testDirk-Jan C. Binnema
Double-check the changed values are seen in a newly opened store.
2024-03-01tests: add some very basic CLD2_TESTDirk-Jan C. Binnema
just to check if it works at all; no need to check cld2 at all.
2024-01-06tests: move to tests/, make optionalDirk-Jan C. Binnema
While not recommended, sometimes it can be useful to disable building the unit tests. This can be done now with meson -Dtests=disabled build
2023-12-22lib: move transaction handling to mu-xapianDirk-Jan C. Binnema
Instead of handling transactions in the store, handle it in xapian-db. Make the code a bit more natural / cleaner-out Handle transaction automatically (with a batch-size) and add some RAII Transaction object, which makes all database interaction transactable for the duration. So, no more need for explicit parameters to add_message while indexing.
2023-10-29lib/tests: add one more foo-bar regexp testDirk-Jan C. Binnema
2023-09-24maildir: improve unit testsDirk-Jan C. Binnema
And get some more info from run_command.
2023-09-24improve unit testsDirk-Jan C. Binnema
2023-09-24mu-move: add new move sub commandDirk-Jan C. Binnema
Add sub-command to move messages; add tests and docs. Fixes #157
2023-09-23lib: maildir/store: more testsDirk-Jan C. Binnema
2023-09-17query: move phrasification to mu-query-parserDirk-Jan C. Binnema
Do the "phrasification" for matching fields later during query parsing; this allows for handling combination fields correctly. Also match both the normal term and the "phrase term", so we catch more cases. Update/extend unit tests. This fixes the "kata-container" issue also for body test. Fixes #2167.
2023-09-13lib: unit tests: improve / better coverageDirk-Jan C. Binnema
2023-09-12unit tests: improveDirk-Jan C. Binnema
and add a new one for the indexer
2023-09-11unit-tests: modernizeDirk-Jan C. Binnema
Use TempDir, join_paths etc.
2023-09-10lib: move index/ into main lib/Dirk-Jan C. Binnema
simplify things a bit
2023-09-09tests: update for new query parser / ngramsDirk-Jan C. Binnema
2023-09-09lib: implement new query parserDirk-Jan C. Binnema
Implement a new query parser; the results should be very similar to the old one, but it adds an Sexp middle-representation, so users can see how a query is interpreted.
2023-09-05test: move test messages to testdata/Dirk-Jan C. Binnema
2023-08-19remove Mu::format, use mu_formatDirk-Jan C. Binnema
Use the new fmt-based formatting.
2023-08-17store: update "move" and some related APIsDirk-Jan C. Binnema
Update test cases as well.
2023-07-25benchmark: improve setupDirk-Jan C. Binnema
Add some useful make targets, and separate (optimized) build.
2023-07-25store: add 'add_document' optimization, use itDirk-Jan C. Binnema
*Usually* we need Xapian's replace_document() API, but when we know a document (message) is completely new, we can use the faster add_document(). That is the case with the initial (re)indexing, when start with an empty database. Also a few smaller cleanups.
2023-07-18store/index: and unit test for circular symlinkDirk-Jan C. Binnema
Check that we bail out early
2023-07-06store: removing trailing / for root_maildirDirk-Jan C. Binnema
Other code depends on that.
2023-07-05update to use fmt-based apisDirk-Jan C. Binnema
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-02all: update for API changes (config etc.)Dirk-Jan C. Binnema
Use the new & improved APIs.
2023-06-27lib: update for api changes, update testsDirk-Jan C. Binnema
With the new Sexp. And expand unit tests.
2023-01-31mu: index html text as if it were plain textDirk-Jan C. Binnema
This is a bit of hack to include html text in results. Of course, html text is not really plain text, so this is a bit of a hack until we introduce some html parsing step.
2023-01-14utils: get rid of mu-util.[ch]Dirk-Jan C. Binnema
It was getting old... Remove the unused parts, refactor the few parts still in use.
2022-12-30many: use Mu::Regex instead of std::regexDirk-Jan C. Binnema
The former is PCRE-compatible, and faster than std::regex.
2022-12-08mu-query-match-decider: add 'Related' to flagsDirk-Jan C. Binnema
We were _replacing_ the flags (such as Duplicate), but we should add to them instead. Add a unit-test for this.
2022-12-07tests: update for move_message API updateDirk-Jan C. Binnema
2022-12-07store: add mu_move_message dup flag testDirk-Jan C. Binnema
Test the new functionality
2022-11-20query/test: add term splitting unit testDirk-Jan C. Binnema
For checking issue #2365.
2022-11-07store: update for new sexp apiDirk-Jan C. Binnema
And use improved cached_sexp api (automatically handled with mu-document now)
2022-11-01test-mu-store-query: make move/refresh test more rigorousDirk-Jan C. Binnema