summaryrefslogtreecommitdiff
path: root/tests/meson.build
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-07-14 14:50:21 +0300
committerPaul Buetow <paul@buetow.org>2026-07-14 14:50:21 +0300
commitde1d108d97bc55a6f047c47bb56667068aac71ff (patch)
treec963ca62a985ad6e1c6930743c5a4eee7ed08a64 /tests/meson.build
parent95858bc4a819c118cf76dd38d6da0365ead997a9 (diff)
gegl: enhancer presets + export, LSAN suppressions (wt0)
M9 (task wt0): GEGL quick-enhance (optional, feature-gated). - src/enhancer.{c,h}: 8 built-in presets (Auto-fix, Brightness, Contrast, Saturation, Warm, Cool, Sharpen, Denoise) using gegl:stretch-contrast, gegl:exposure, gegl:brightness-contrast, gegl:saturation, gegl:color-enhance, gegl:unsharp-mask, gegl:noise-reduction. enhancer_apply via buffer-source + buffer-sink pipeline; enhancer_export via gegl:jpg-save. User graph presets deferred (NOT_SUPPORTED in v1). - meson: gegl_dep conditional (-DHAVE_GEGL); enhancer.c in libggae. - tests: unit test_enhancer (presets dims+non-zero, export file written). LSAN suppressions for GEGL third-party init/node leaks. - 20/20 green, ASan clean (with GEGL lib suppressions).
Diffstat (limited to 'tests/meson.build')
-rw-r--r--tests/meson.build17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/meson.build b/tests/meson.build
index 4c1dfa5..d186207 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -143,6 +143,23 @@ test_runner = executable(
)
test('runner', test_runner, suite : 'unit', env : fixtures_env)
+if gegl_dep.found()
+ test_enhancer = executable(
+ 'test_enhancer', ['test_enhancer.c', ggaze_conf_h],
+ include_directories : [inc, src_inc],
+ dependencies : [glib_dep, gegl_dep],
+ link_with : ggaze_lib, install : false,
+ )
+ enhancer_env = environment()
+ enhancer_env.set('GIO_USE_VFS', 'local')
+ enhancer_env.set('GGAZE_FIXTURES_DIR',
+ join_paths(meson.project_source_root(), 'tests', 'fixtures'))
+ enhancer_env.set('LSAN_OPTIONS',
+ 'suppressions=' + join_paths(meson.project_source_root(), 'tests',
+ 'lsan_suppressions.txt'))
+ test('enhancer', test_enhancer, suite : 'unit', env : enhancer_env)
+endif
+
test_texturecache = executable(
'test_texturecache',
['test_texturecache.c', ggaze_conf_h],