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 |
|
qsr
2015/07/27 09:25:15
Documentation is outdated.
ppi
2015/07/27 10:03:04
Done.
| |
| 5 # list of tests to run. | 5 # list of tests to run. |
| 6 # | 6 # |
| 7 # The entries in |tests| are dictionaries of the form described in | 7 # The entries in |tests| are dictionaries of the form described in |
| 8 # devtoolslib/apptest_runner.py. | 8 # devtoolslib/apptest_runner.py. |
| 9 | 9 |
| 10 tests = [ | 10 tests = [ |
| 11 { | 11 { |
| 12 "test": "mojo:asset_bundle_apptests", | 12 "test": "mojo:asset_bundle_apptests", |
| 13 }, | 13 }, |
| 14 { | 14 { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 66 "shell-args": ["--args-for=mojo:native_viewport_service --use-headless-confi g --use-osmesa"], | 66 "shell-args": ["--args-for=mojo:native_viewport_service --use-headless-confi g --use-osmesa"], |
| 67 }, | 67 }, |
| 68 { | 68 { |
| 69 "test": "mojo:versioning_apptests", | 69 "test": "mojo:versioning_apptests", |
| 70 }, | 70 }, |
| 71 { | 71 { |
| 72 "test": "mojo:url_response_disk_cache_apptests", | 72 "test": "mojo:url_response_disk_cache_apptests", |
| 73 }, | 73 }, |
| 74 ] | 74 ] |
| 75 | 75 |
| 76 if config.target_os == config.OS_LINUX: | 76 if target_os == 'linux': |
| 77 tests += [ | 77 tests += [ |
| 78 { | 78 { |
| 79 "test": "mojo:example_apptests", | 79 "test": "mojo:example_apptests", |
| 80 "name": "mojo:example_apptests (python_example_service)", | 80 "name": "mojo:example_apptests (python_example_service)", |
| 81 # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg. | 81 # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg. |
| 82 "test-args": ["--example_apptest_arg"], | 82 "test-args": ["--example_apptest_arg"], |
| 83 "shell-args": [ | 83 "shell-args": [ |
| 84 "--url-mappings=mojo:example_service=mojo:python_example_service" | 84 "--url-mappings=mojo:example_service=mojo:python_example_service" |
| 85 ], | 85 ], |
| 86 }, | 86 }, |
| 87 { | 87 { |
| 88 "test": "mojo:mojo_url_redirector_apptests", | 88 "test": "mojo:mojo_url_redirector_apptests", |
| 89 "test-args": ["--redirector_port=49152", | 89 "test-args": ["--redirector_port=49152", |
| 90 "--app_location_files_port=49153"], | 90 "--app_location_files_port=49153"], |
| 91 "shell-args": ["--args-for=mojo:mojo_url_redirector 0.0.0.0:49152 http://l ocalhost:49153"], | 91 "shell-args": ["--args-for=mojo:mojo_url_redirector 0.0.0.0:49152 http://l ocalhost:49153"], |
| 92 } | 92 } |
| 93 ] | 93 ] |
| 94 | 94 |
| 95 if config.target_os == config.OS_ANDROID: | 95 if target_os == 'android': |
| 96 tests += [ | 96 tests += [ |
| 97 { | 97 { |
| 98 "test": "mojo:example_apptests", | 98 "test": "mojo:example_apptests", |
| 99 "name": "mojo:example_apptests (android_example_service)", | 99 "name": "mojo:example_apptests (android_example_service)", |
| 100 # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg. | 100 # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg. |
| 101 "test-args": ["--example_apptest_arg"], | 101 "test-args": ["--example_apptest_arg"], |
| 102 "shell-args": [ | 102 "shell-args": [ |
| 103 "--url-mappings=mojo:example_service=mojo:android_example_service" | 103 "--url-mappings=mojo:example_service=mojo:android_example_service" |
| 104 ], | 104 ], |
| 105 }, | 105 }, |
| 106 { | 106 { |
| 107 "test": "mojo:notification_apptests", | 107 "test": "mojo:notification_apptests", |
| 108 }, | 108 }, |
| 109 { | 109 { |
| 110 "test": "mojo:shell_nfc_apptests", | 110 "test": "mojo:shell_nfc_apptests", |
| 111 }, | 111 }, |
| 112 ] | 112 ] |
| 113 | 113 |
| 114 if config.target_os != config.OS_ANDROID: | 114 if target_os != 'android': |
| 115 tests += [ | 115 tests += [ |
| 116 { | 116 { |
| 117 "test": "mojo:js_apptests", | 117 "test": "mojo:js_apptests", |
| 118 "type": "gtest_isolated", | 118 "type": "gtest_isolated", |
| 119 }, | 119 }, |
| 120 { | 120 { |
| 121 "test": "mojo:reaper_apptests", | 121 "test": "mojo:reaper_apptests", |
| 122 }, | 122 }, |
| 123 { | 123 { |
| 124 "test": "mojo:dart_apptests", | 124 "test": "mojo:dart_apptests", |
| 125 "type": "dart", | 125 "type": "dart", |
| 126 }, | 126 }, |
| 127 { | 127 { |
| 128 # https://github.com/domokit/mojo/issues/61 | 128 # https://github.com/domokit/mojo/issues/61 |
| 129 # Sometime the shell get a trucated application when exposed through the | 129 # Sometime the shell get a trucated application when exposed through the |
| 130 # http server. | 130 # http server. |
| 131 "test": "mojo:shell_apptests", | 131 "test": "mojo:shell_apptests", |
| 132 }, | 132 }, |
| 133 ] | 133 ] |
| OLD | NEW |