diff options
| author | Paul Buetow <paul@buetow.org> | 2026-07-14 09:08:10 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-07-14 09:08:10 +0300 |
| commit | 95858bc4a819c118cf76dd38d6da0365ead997a9 (patch) | |
| tree | 739544e2314c3e0bab65fb9c75e2c17e89069017 /tests/meson.build | |
| parent | 12be1b9ae52829292d13cc2fcc6ff7571d050d62 (diff) | |
operate: mover, opener, runner, clipboard modules + tests (ut0)
M8 (partial): plain-C operate modules + unit tests.
- src/mover.{c,h}: move files to configured dests (g_file_move + stem
collision suffix -1/-2), one-level undo (move back), acts on marks-or-current.
- src/opener.{c,h}: %f expand + detached GSubprocess launch (non-blocking).
- src/runner.{c,h}: /bin/sh -c with single-quoted %f/%d (injection guard),
async wait_check, rescan on completion.
- src/clipboard.{c,h}: image/png via GdkContentProvider + uri-list.
- meson: new sources added to libggae.
- tests: unit test_mover (move/undo/collision), test_opener (true/false/weird
filenames), test_runner (true/false/injection guard). 19/19 green, ASan clean.
- Fixed: g_str_replace (not in GLib 2.88) → manual _str_replace; GdkContentProvider
API (new_typed/new_for_value); mover collision stem-suffix; runner /bin/sh -c
argv (single arg, not shell-parsed); test GFile leaks.
Diffstat (limited to 'tests/meson.build')
| -rw-r--r-- | tests/meson.build | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/meson.build b/tests/meson.build index dbe21f2..4c1dfa5 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -119,6 +119,30 @@ test_info = executable( ) test('info', test_info, suite : 'unit', env : fixtures_env) +test_mover = executable( + 'test_mover', ['test_mover.c', ggaze_conf_h], + include_directories : [inc, src_inc], + dependencies : [glib_dep, gio_dep], + link_with : ggaze_lib, install : false, +) +test('mover', test_mover, suite : 'unit', env : fixtures_env) + +test_opener = executable( + 'test_opener', ['test_opener.c', ggaze_conf_h], + include_directories : [inc, src_inc], + dependencies : [glib_dep, gio_dep], + link_with : ggaze_lib, install : false, +) +test('opener', test_opener, suite : 'unit', env : fixtures_env) + +test_runner = executable( + 'test_runner', ['test_runner.c', ggaze_conf_h], + include_directories : [inc, src_inc], + dependencies : [glib_dep, gio_dep], + link_with : ggaze_lib, install : false, +) +test('runner', test_runner, suite : 'unit', env : fixtures_env) + test_texturecache = executable( 'test_texturecache', ['test_texturecache.c', ggaze_conf_h], |
