1 # This file contains a list of Mojo gtest unit tests.
3 # This must be valid Python. It may use the |config| global that will be a
4 # mopy.config.Config object, and must set a |tests| global that will contain the
5 # list of tests to run.
7 # The entries in |tests| are dictionaries of the following form:
9 # # Required URL for apptest.
10 # 'test': 'mojo:test_app_url',
11 # # Optional display name (otherwise the entry for 'test' above is used).
12 # 'name': 'mojo:test_app_url (more details)',
13 # # Optional test type. Valid values:
14 # # * 'gtest': (default)
15 # # * 'gtest_isolated': like 'gtest', but run with fixture isolation.
16 # # i.e., each test in a fresh mojo_shell
18 # # Optional arguments for the shell or test.
19 # 'args': ['--some-flag-for-the-shell', '--some-flag-for-the-test'],
22 # TODO(vtl|msw): Add a way of specifying data dependencies.
24 mus_apptests = { 'test': 'mojo:mus_apptests' }
25 # osmesa is not used on android, so no flags are needed for
27 if config.target_os != config.OS_ANDROID:
28 mus_apptests['args'] = [ '--use-x11-test-config',
29 '--override-use-gl-with-osmesa-for-tests' ]
33 'test': 'mojo:clipboard_apptests',
34 'type': 'gtest_isolated',
37 'test': 'mojo:network_service_apptests',
38 'type': 'gtest_isolated',
41 'test': 'mojo:resource_provider_apptests',
42 'type': 'gtest_isolated',
44 # TODO(msw|jam): Fix and enable the runner_apptests: http://crbug.com/479316
46 # 'test': 'mojo:runner_apptests',
47 # 'type': 'gtest_isolated',
52 # TODO(msw): Get these tests passing on Android too. http://crbug.com/486220
53 if config.target_os != config.OS_ANDROID:
56 'test': 'mojo:filesystem_apptests',
57 'type': 'gtest_isolated',
60 'test': 'mojo:html_viewer_apptests',
61 'name': 'mojo:html_viewer_apptests',
62 'type': 'gtest_isolated',
63 'args': ['--enable-html-viewer-test-interface',
64 '--use-x11-test-config',
65 '--override-use-gl-with-osmesa-for-tests']
68 'test': 'mojo:html_viewer_apptests',
69 'name': 'mojo:html_viewer_apptests new frame',
70 'type': 'gtest_isolated',
71 'args': ['--oopif-always-create-new-frame-tree',
72 '--enable-html-viewer-test-interface',
73 '--use-x11-test-config',
74 '--override-use-gl-with-osmesa-for-tests']
76 # TODO(ben): These tests are disabled pending mandoline:browser refactoring.
78 # 'test': 'mojo:mandoline_browser_apptests',
79 # 'type': 'gtest_isolated',
80 # 'args': ['--use-headless-config']
82 # TODO(xhwang): Fix and enable mojo:media_pipeline_integration_apptests.
83 # http://crbug.com/501417
85 'test': 'mojo:media_apptests',
86 'type': 'gtest_isolated',
89 'test': 'mojo:sql_apptests',
90 'type': 'gtest_isolated',
93 'test': 'mojo:web_view_apptests',
94 'type': 'gtest_isolated',
95 'args': ['--use-x11-test-config',
96 '--override-use-gl-with-osmesa-for-tests']