Commit 46785b80 authored by Michael Catanzaro's avatar Michael Catanzaro Committed by Michael Catanzaro

Don't run Safe Browsing test by default

Require opt-in to run network tests.

Our CI has network, so we'll run it there.

Fixes #684


(cherry picked from commit ca58a424)
parent de94f21d
Pipeline #62427 passed with stage
in 4 minutes and 38 seconds
......@@ -11,7 +11,7 @@ flatpak:
FLATPAK_MODULE: 'epiphany'
# Make sure to keep this in sync with the Flatpak manifest, all arguments
# are passed except the config-args because we build it ourselves
MESON_ARGS: '-Dunit_tests=true'
MESON_ARGS: '-Dunit_tests=true -Dnetwork_tests=true'
APP_ID: 'org.gnome.Epiphany'
review:
......@@ -20,4 +20,4 @@ review:
extends: '.review'
stop_review:
extends: '.stop_review'
\ No newline at end of file
extends: '.stop_review'
......@@ -4,6 +4,12 @@ option('developer_mode',
description: 'Enable developer mode'
)
option('network_tests',
type: 'boolean',
value: false,
description: 'Enable tests that require network access, if unit_tests are enabled'
)
option('tech_preview',
type: 'boolean',
value: false,
......
......@@ -64,16 +64,6 @@ if get_option('unit_tests')
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,
env: envs,
timeout: 90 # slow!
)
history_test = executable('test-ephy-history',
'ephy-history-test.c',
dependencies: ephymain_dep
......@@ -178,4 +168,16 @@ if get_option('unit_tests')
# web_view_test,
# env: envs
# )
if get_option('network_tests')
gsb_service_test = executable('test-ephy-gsb-service',
'ephy-gsb-service-test.c',
dependencies: ephymain_dep
)
test('GSB service test',
gsb_service_test,
env: envs,
timeout: 90 # slow!
)
endif
endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment