diff options
author | Michael Catanzaro <mcatanzaro@igalia.com> | 2018-03-02 20:46:43 -0600 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@igalia.com> | 2018-03-02 20:50:52 -0600 |
commit | 8e0f8b963063c744afe862cbdb0c17438bc846be (patch) | |
tree | d6370a68ad554683ed8b4e5116629d70a07968b0 /tests | |
parent | e89d8de07bbf82af3d853981bdb4ac363ef1d71f (diff) | |
download | epiphany-8e0f8b963063c744afe862cbdb0c17438bc846be.tar.gz |
Compile gsettings schemas in build directory
This allows us to run the tests in situations where Epiphany is not
installed on the host system, e.g. when running under BuildStream.
As a bonus, we'll point Epiphany here as well when built in developer
mode, so that it can be run from the build directory when uninstalled.
This is needed to facilitate easy build/test/run inside BuildStream.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/meson.build | 97 |
1 files changed, 79 insertions, 18 deletions
diff --git a/tests/meson.build b/tests/meson.build index 8ced8ebb5..89f903ac3 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -1,3 +1,10 @@ +envs = [ + 'G_TEST_SRCDIR=' + meson.current_source_dir(), + 'G_TEST_BUILDDIR=' + meson.current_build_dir(), + 'GSETTINGS_SCHEMA_DIR=' + join_paths(meson.build_root(), 'data'), + 'GSETTINGS_BACKEND=memory', +] + if get_option('unit_tests') # FIXME: The tests that need ephy-test-utils are all disabled.... # @@ -14,71 +21,104 @@ if get_option('unit_tests') 'ephy-completion-model-test.c', dependencies: ephymain_dep ) - test('Completion model test', completion_model_test) + test('Completion model test', + completion_model_test, + env: envs + ) # FIXME: https://bugzilla.gnome.org/show_bug.cgi?id=778153 # download_test = executable('test-ephy-download', # 'ephy-download-test.c', # dependencies: ephymain_dep # ) - # test('Download test', download_test) + # test('Download test', + # download_test, + # env: envs + # ) # FIXME: https://bugzilla.gnome.org/show_bug.cgi?id=773448 # embed_shell_test = executable('test-ephy-embed-shell', # 'ephy-embed-shell-test.c', # dependencies: ephymain_dep # ) - # test('Embed shell test', embed_shell_test) + # test('Embed shell test', + # embed_shell_test, + # env: envs + # ) embed_utils_test = executable('test-ephy-embed-utils', 'ephy-embed-utils-test.c', dependencies: ephymain_dep ) - test('Embed utils test', embed_utils_test) + test('Embed utils test', + embed_utils_test, + env: envs + ) encodings_test = executable('test-ephy-encodings', 'ephy-encodings-test.c', dependencies: ephymain_dep ) - test('Encodings test', encodings_test) + test('Encodings test', + encodings_test, + env: envs + ) # https://bugzilla.gnome.org/show_bug.cgi?id=786001 # file_helpers_test = executable('test-ephy-file-helpers', # 'ephy-file-helpers-test.c', # dependencies: ephymain_dep # ) - # test('File helpers test', file_helpers_test) + # test('File helpers test', + # file_helpers_test, + # env: envs + # ) gsb_service_test = executable('test-ephy-gsb-service', 'ephy-gsb-service-test.c', dependencies: ephymain_dep ) - test('GSB service test', gsb_service_test) + test('GSB service test', + gsb_service_test, + env: envs + ) history_test = executable('test-ephy-history', 'ephy-history-test.c', dependencies: ephymain_dep ) - test('History test', history_test) + test('History test', + history_test, + env: envs + ) location_entry_test = executable('test-location-entry', 'ephy-location-entry-test.c', dependencies: ephymain_dep ) - test('Location entry test', location_entry_test) + test('Location entry test', + location_entry_test, + env: envs + ) migration_test = executable('test-ephy-migration', 'ephy-migration-test.c', dependencies: ephymain_dep ) - test('Migration test', migration_test) + test('Migration test', + migration_test, + env: envs + ) # FIXME: https://bugzilla.gnome.org/show_bug.cgi?id=707220 # session_test = executable('test-ephy-session', # 'ephy-session-test.c', # dependencies: ephytestutils_dep # ) - # test('Session test', session_test) + # test('Session test', + # session_test, + # env: envs + # ) # FIXME: https://bugzilla.gnome.org/show_bug.cgi?id=693369 # FIXME: https://bugzilla.gnome.org/show_bug.cgi?id=695703 @@ -87,44 +127,65 @@ if get_option('unit_tests') # 'ephy-shell-test.c', # dependencies: ephytestutils_dep # ) - # test('Shell test', shell_test) + # test('Shell test', + # shell_test, + # env: envs + # ) # FIXME: https://bugzilla.gnome.org/show_bug.cgi?id=762753 # snapshot_service_test = executable('test-snapshot-service', # 'ephy-snapshot-service-test.c', # dependencies: ephymain_dep # ) - # test('Snapshot service test', snapshot_service_test) + # test('Snapshot service test', + # snapshot_service_test, + # env: envs + # ) sqlite_test = executable('test-ephy-sqlite', 'ephy-sqlite-test.c', dependencies: ephymain_dep ) - test('SQLite test', sqlite_test) + test('SQLite test', + sqlite_test, + env: envs + ) string_test = executable('test-ephy-string', 'ephy-string-test.c', dependencies: ephymain_dep ) - test('String test', string_test) + test('String test', + string_test, + env: envs + ) uri_helpers_test = executable('test-ephy-uri-helpers', 'ephy-uri-helpers-test.c', dependencies: ephymain_dep ) - test('URI helpers test', uri_helpers_test) + test('URI helpers test', + uri_helpers_test, + env: envs, + ) # FIXME: https://bugzilla.gnome.org/show_bug.cgi?id=759256 # web_app_utils_test = executable('test-ephy-web-app-utils', # 'ephy-web-app-utils-test.c', # dependencies: ephymain_dep # ) - # test('Web app utils test', web_app_utils_test) + # test('Web app utils test', + # web_app_utils_test, + # env: envs + # ) # FIXME: https://bugzilla.gnome.org/show_bug.cgi?id=780280 # web_view_test = executable('test-ephy-web-view', # 'ephy-web-view-test.c', # dependencies: ephymain_dep # ) - # test('Web view test', web_view_test) + # test('Web view test', + # web_view_test, + # env: envs + # ) endif |