Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # This file contains a list of Mojo gtest unit tests. | 1 # This file contains a list of Mojo gtest unit tests. |
| 2 # | 2 # |
| 3 # This must be valid Python. It may use the |config| global that will be a | 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 | 4 # mopy.config.Config object, and must set a |tests| global that will contain the |
| 5 # list of tests to run. | 5 # list of tests to run. |
| 6 # | 6 # |
| 7 # The entries in |tests| are dictionaries of the following form: | 7 # The entries in |tests| are dictionaries of the following form: |
| 8 # { | 8 # { |
| 9 # # Required URL for apptest. | 9 # # Required URL for apptest. |
| 10 # 'test': 'mojo:test_app_url', | 10 # 'test': 'mojo:test_app_url', |
| 11 # # Optional display name (otherwise the entry for 'test' above is used). | 11 # # Optional display name (otherwise the entry for 'test' above is used). |
| 12 # 'name': 'mojo:test_app_url (more details)', | 12 # 'name': 'mojo:test_app_url (more details)', |
| 13 # # Optional test type. Valid values: | 13 # # Optional test type. Valid values: |
| 14 # # * 'gtest': (default) | 14 # # * 'gtest': (default) |
| 15 # # * 'gtest_isolated': like 'gtest', but run with fixture isolation. | 15 # # * 'gtest_isolated': like 'gtest', but run with fixture isolation. |
| 16 # # i.e., each test in a fresh mojo_shell | 16 # # i.e., each test in a fresh mojo_shell |
| 17 # 'type': 'gtest', | 17 # 'type': 'gtest', |
| 18 # # Optional arguments for the shell or test. | 18 # # Optional arguments for the shell or test. |
| 19 # 'args': ['--some-flag-for-the-shell', '--some-flag-for-the-test'], | 19 # 'args': ['--some-flag-for-the-shell', '--some-flag-for-the-test'], |
| 20 # } | 20 # } |
| 21 # | 21 # |
| 22 # TODO(vtl|msw): Add a way of specifying data dependencies. | 22 # TODO(vtl|msw): Add a way of specifying data dependencies. |
| 23 | 23 |
| 24 view_manager_apptests = { 'test': 'mojo:view_manager_apptests' } | |
| 25 if config.target_os != config.OS_ANDROID: | |
|
sky
2015/09/02 23:02:08
It's worth a comment as to why the switch is not a
sadrul
2015/09/03 04:02:55
Done.
| |
| 26 view_manager_apptests['args'] = [ '--use-x11-test-config', | |
| 27 '--override-use-gl-with-osmesa-for-tests' ] | |
| 28 | |
| 24 tests = [ | 29 tests = [ |
| 25 { | 30 { |
| 26 'test': 'mojo:clipboard_apptests', | 31 'test': 'mojo:clipboard_apptests', |
| 27 'type': 'gtest_isolated', | 32 'type': 'gtest_isolated', |
| 28 }, | 33 }, |
| 29 { | 34 { |
| 30 'test': 'mojo:network_service_apptests', | 35 'test': 'mojo:network_service_apptests', |
| 31 'type': 'gtest_isolated', | 36 'type': 'gtest_isolated', |
| 32 }, | 37 }, |
| 33 { | 38 { |
| 34 'test': 'mojo:resource_provider_apptests', | 39 'test': 'mojo:resource_provider_apptests', |
| 35 'type': 'gtest_isolated', | 40 'type': 'gtest_isolated', |
| 36 }, | 41 }, |
| 37 # TODO(msw|jam): Fix and enable the runner_apptests: http://crbug.com/479316 | 42 # TODO(msw|jam): Fix and enable the runner_apptests: http://crbug.com/479316 |
| 38 #{ | 43 #{ |
| 39 # 'test': 'mojo:runner_apptests', | 44 # 'test': 'mojo:runner_apptests', |
| 40 # 'type': 'gtest_isolated', | 45 # 'type': 'gtest_isolated', |
| 41 #}, | 46 #}, |
| 42 { | 47 view_manager_apptests, |
| 43 'test': 'mojo:view_manager_apptests', | |
| 44 'args': ['--use-x11-test-config', | |
| 45 '--override-use-gl-with-osmesa-for-tests'] | |
| 46 }, | |
| 47 ] | 48 ] |
| 48 | 49 |
| 49 # TODO(msw): Get these tests passing on Android too. http://crbug.com/486220 | 50 # TODO(msw): Get these tests passing on Android too. http://crbug.com/486220 |
| 50 if config.target_os != config.OS_ANDROID: | 51 if config.target_os != config.OS_ANDROID: |
| 51 tests += [ | 52 tests += [ |
| 52 { | 53 { |
| 53 'test': 'mojo:filesystem_apptests', | 54 'test': 'mojo:filesystem_apptests', |
| 54 'type': 'gtest_isolated', | 55 'type': 'gtest_isolated', |
| 55 }, | 56 }, |
| 56 { | 57 { |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 85 # http://crbug.com/501417 | 86 # http://crbug.com/501417 |
| 86 { | 87 { |
| 87 'test': 'mojo:media_apptests', | 88 'test': 'mojo:media_apptests', |
| 88 'type': 'gtest_isolated', | 89 'type': 'gtest_isolated', |
| 89 }, | 90 }, |
| 90 { | 91 { |
| 91 'test': 'mojo:sql_apptests', | 92 'test': 'mojo:sql_apptests', |
| 92 'type': 'gtest_isolated', | 93 'type': 'gtest_isolated', |
| 93 }, | 94 }, |
| 94 ] | 95 ] |
| OLD | NEW |