diff options
author | Christian Hergert <chergert@redhat.com> | 2019-09-09 17:35:51 -0700 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2019-09-09 17:36:03 -0700 |
commit | e96ca491cee706a75788e3eeac72ed36915a922d (patch) | |
tree | 8a27658f95d2acbb83354d75bd81a6e1ddea16ba /tests | |
parent | 48cd16ee89d999c539ee09de7a551c5c8223f162 (diff) | |
download | libpeas-e96ca491cee706a75788e3eeac72ed36915a922d.tar.gz |
build: setup test suite environment
This gives us some useful settings for debugging when unit tests are run
in automated environments.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libpeas-gtk/meson.build | 2 | ||||
-rw-r--r-- | tests/libpeas/meson.build | 2 | ||||
-rw-r--r-- | tests/meson.build | 7 |
3 files changed, 9 insertions, 2 deletions
diff --git a/tests/libpeas-gtk/meson.build b/tests/libpeas-gtk/meson.build index 1faafa6..ab5928a 100644 --- a/tests/libpeas-gtk/meson.build +++ b/tests/libpeas-gtk/meson.build @@ -29,5 +29,5 @@ foreach test: libpeas_gtk_tests_sources dependencies: libpeas_gtk_tests_deps ) - test('test-@0@'.format(test_name), test_exe) + test('test-@0@'.format(test_name), test_exe, env: test_env) endforeach diff --git a/tests/libpeas/meson.build b/tests/libpeas/meson.build index 0c82d80..1af0061 100644 --- a/tests/libpeas/meson.build +++ b/tests/libpeas/meson.build @@ -53,5 +53,5 @@ foreach test: libpeas_tests_sources c_args: libpeas_tests_c_args, ) - test('test-@0@'.format(test_name), test_exe) + test('test-@0@'.format(test_name), test_exe, env: test_env) endforeach diff --git a/tests/meson.build b/tests/meson.build index 18e4e2f..3b2dbac 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -1,3 +1,10 @@ +test_env = [ + 'G_DEBUG=gc-friendly', + 'GSETTINGS_BACKEND=memory', + 'MALLOC_CHECK_=2', + 'NO_AT_BRIDGE=1', +] + subdir('testing-util') subdir('libpeas') |