summaryrefslogtreecommitdiff
path: root/mu/tests
AgeCommit message (Collapse)Author
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-09-08rename 'mu label' -> 'mu labels'Dirk-Jan C. Binnema
Update names, docs etc.
2025-08-15mu: add 'label' command + manpage + testsDirk-Jan C. Binnema
Add a label command and document it.
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.
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-09-11unit-tests: modernizeDirk-Jan C. Binnema
Use TempDir, join_paths etc.
2023-09-09tests: update for new query parser / ngramsDirk-Jan C. Binnema
2023-08-27mu: modernize command-line unit testsDirk-Jan C. Binnema
2023-08-19remove Mu::format, use mu_formatDirk-Jan C. Binnema
Use the new fmt-based formatting.
2023-07-25message: use html-to-text scraper for html partsDirk-Jan C. Binnema
We were dumping the HTML-parts as-is in the Xapian indexer; however, it's better to remove the html decoration first, and just pass the text. We use the new built-in html->text scraper for 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-05utils: rework Mu::Error and g_ logging macros with fmtDirk-Jan C. Binnema
A bit more C++ template magic to remove a lot of code.
2023-06-11gmime-test: fix leakDirk-Jan C. Binnema
2023-04-09tests: turn off dead test test_mu_extract_01Dirk-Jan C. Binnema
2023-04-09tests: fix links testsDirk-Jan C. Binnema
2023-03-28mu-find: brush off --format=links unit testDirk-Jan C. Binnema
Enable it by default, and modernize it a little bit
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.
2022-12-30mu-cfind: use UTC in json outputDirk-Jan C. Binnema
Fixes #2391.
2022-12-30cfind: rework, add support for json outputDirk-Jan C. Binnema
Update the old cfind code, and add json output support while doing so.
2022-11-17tests: updateDirk-Jan C. Binnema
Minor updates for the new CLI
2022-08-11tests: update test helpers and usersDirk-Jan C. Binnema
Move test-mu-common to mu-test-utils. Use mu_test_init as a wrapper for g_test_init. Update users.
2022-05-29mu: support MUHOME environment variableDirk-Jan C. Binnema
2022-05-19lib: remove some dead code (mu-str/utils)Dirk-Jan C. Binnema
Remove unused library code; recycle some electrons.
2022-05-18tests: skip missing timezones in queries, tooDirk-Jan C. Binnema
2022-05-13test: enable some moreDirk-Jan C. Binnema
2022-05-09store: use Result<Store> builder, add auto upgradeDirk-Jan C. Binnema
Make it a Result type, and add auto-upgrade (not enabled yet) Update dependents.
2022-05-06avoid warnings, update testsDirk-Jan C. Binnema
2022-05-05message/document: update sexp on the flyDirk-Jan C. Binnema
Keep the sexp for the document up to date during scan / change, instead of having a separate step.
2022-04-30cmd: update commands and tests for MessageDirk-Jan C. Binnema
2022-04-30commands: Updated 'find' and 'index' to use Mu::MessageDirk-Jan C. Binnema
2022-04-18test-mu-cmd: minor tweaks for message updateDirk-Jan C. Binnema
2022-03-07tests: update for mu-message-fieldsDirk-Jan C. Binnema
2022-02-27mu/tests: update unit testsDirk-Jan C. Binnema
CI Ubuntu seems to behave quite differently from my Fedora.
2022-02-26test-mu-cmd: fix for CIDirk-Jan C. Binnema
Seems on Ubuntu we can get back an even smaller message, which still is okay. So loosen the check a bit.
2022-02-26test-mu-cmd: better log failureDirk-Jan C. Binnema
Some test fails on Ubuntu (in Github CI), though not locally.
2022-02-21update unit testsDirk-Jan C. Binnema
2022-01-30store/query: update for new store/query apiDirk-Jan C. Binnema
Update to the new API.
2021-11-22tests: add unit test for cjk handlingDirk-Jan C. Binnema
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-08tests: move to subdir, move to mesonDirk-Jan C. Binnema
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-05build: fix compiler warningDirk-Jan C. Binnema
guile: some clang warning and ensure we get the right Xapian in all places, and fileno is defined.
2021-11-03gmime-test: ensure fileno is definedDirk-Jan C. Binnema
2021-11-02gmime-test: move to mu/testsDirk-Jan C. Binnema
and build it with meson, too.
2021-11-02mu: move test sources to tests/Dirk-Jan C. Binnema
2020-01-01mu: move mu/mu/tests, lib/tests one level upDirk-Jan C. Binnema
Makes it easier to generator code-coverage reports
2019-12-28Revert "mu: default to include related, skip dups"Dirk-Jan C. Binnema
Changing the default for 'mu find' turns out to be a bit too disruptive for people that use `mu find` for scripting... so let's revert this for now. This reverts commit f86ed12eb31e2e020b10e837db92568997af4387.
2019-12-22update for lib/utils splitDirk-Jan C. Binnema
Update sources with the new paths
2019-12-22lib: split out utils to lib/utilsDirk-Jan C. Binnema
2019-12-10mu: default to include related, skip dupsDirk-Jan C. Binnema
Add optioins --include-dups and --skip-related that are the reverse of the previous ones. Leave the old options (hidden) for backward compat (ie., scripts that use those options)
2019-11-16tests: fix cmd test_mu_find_04 stderr outputDerek Schrock
Fix test_mu_find_04 such that stderr has expected output. With the mu command after options/expression nothing was printed. We now have expected nonexistent muhome error.