tests: Depend on compiled schemas

The carefree developer might try running meson test
before meson compile, leaving them with failing
feedback-vibra and feedback-profile tests:

Start of feedbackd tests
Start of fbd tests
Start of feedback-vibra tests
fbd-feedback-manager-DEBUG: No vibra capable device found
fbd-feedback-manager-DEBUG: Failed to init leds device: No usable LEDs found
not ok /feedbackd/fbd/feedback-vibra/pattern - GLib-GIO-FATAL-ERROR: No GSettings schemas are installed on the system
Bail out!

Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu>
This commit is contained in:
Evangelos Ribeiro Tzaras
2025-03-16 09:33:45 +01:00
parent d5ad81cac5
commit 9dd6174e53
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ dbus_inc = include_directories('.')
install_data(dbus_interfaces, install_dir: ifacedir) install_data(dbus_interfaces, install_dir: ifacedir)
schemas = ['org.sigxcpu.feedbackd.gschema.xml'] schemas = ['org.sigxcpu.feedbackd.gschema.xml']
compiled = gnome.compile_schemas(depend_files: schemas, build_by_default: true) compiled_schemas = gnome.compile_schemas(depend_files: schemas, build_by_default: true)
compile_schemas = find_program('glib-compile-schemas', required: false) compile_schemas = find_program('glib-compile-schemas', required: false)
if compile_schemas.found() if compile_schemas.found()
+1 -1
View File
@@ -91,7 +91,7 @@ if get_option('tests')
include_directories: fbd_inc, include_directories: fbd_inc,
dependencies: test_fbd_deps, dependencies: test_fbd_deps,
) )
test(test, t, env: test_env_fbd) test(test, t, env: test_env_fbd, depends: compiled_schemas)
endforeach endforeach
endif # daemon endif # daemon