| 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 # This must be a valid python dictionary. | 2 # This must be valid python. It can use the |config| global that will be a |
| 3 # mopy.config.Config object and must set a |tests| global that will contain the |
| 4 # tests to run. |
| 3 # TODO(vtl|msw): Add a way of specifying data dependencies. | 5 # TODO(vtl|msw): Add a way of specifying data dependencies. |
| 4 [ | 6 |
| 7 tests = [ |
| 5 { | 8 { |
| 6 "test": "mojo:clipboard_apptests", | 9 "test": "mojo:clipboard_apptests", |
| 7 }, | 10 }, |
| 8 { | 11 { |
| 9 "test": "mojo:example_apptests", | 12 "test": "mojo:example_apptests", |
| 10 # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg. | 13 # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg. |
| 11 "test-args": ["--example_apptest_arg"], | 14 "test-args": ["--example_apptest_arg"], |
| 12 }, | 15 }, |
| 13 { | 16 { |
| 14 # Runs mojo:example_apptests, replacing the mojo:example_service dependency | |
| 15 # with the alternate test:example_service, launched via mojo launcher." | |
| 16 "test": "mojo:example_apptests", | |
| 17 # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg. | |
| 18 "test-args": ["--example_apptest_arg"], | |
| 19 "shell-args": ["--url-mappings=mojo:example_service=test:example_service"], | |
| 20 "launched-services": ["test:example_service"], | |
| 21 "target_os": ["!android"], | |
| 22 }, | |
| 23 { | |
| 24 "test": "mojo:network_service_apptests", | 17 "test": "mojo:network_service_apptests", |
| 25 }, | 18 }, |
| 26 { | 19 { |
| 27 "test": "mojo:example_apptests", | |
| 28 # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg. | |
| 29 "test-args": ["--example_apptest_arg"], | |
| 30 "shell-args": ["--url-mappings=mojo:example_service=mojo:python_example_serv
ice"], | |
| 31 "target_os": ["!*", "linux"], | |
| 32 }, | |
| 33 { | |
| 34 "test": "mojo:view_manager_service_apptests", | 20 "test": "mojo:view_manager_service_apptests", |
| 35 "shell-args": ["--args-for=mojo:native_viewport_service --use-headless-confi
g --use-osmesa"], | 21 "shell-args": ["--args-for=mojo:native_viewport_service --use-headless-confi
g --use-osmesa"], |
| 36 }, | 22 }, |
| 37 { | 23 { |
| 38 "test": "mojo:js_apptests", | |
| 39 "target_os": ["!android"], | |
| 40 }, | |
| 41 { | |
| 42 "test": "mojo:window_manager_apptests", | 24 "test": "mojo:window_manager_apptests", |
| 43 }, | 25 }, |
| 44 { | |
| 45 "test": "mojo:reaper_apptests", | |
| 46 "target_os": ["!android"], | |
| 47 }, | |
| 48 ] | 26 ] |
| 27 |
| 28 if config.target_os == config.OS_LINUX: |
| 29 tests += [ |
| 30 { |
| 31 "test": "mojo:example_apptests", |
| 32 # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg. |
| 33 "test-args": ["--example_apptest_arg"], |
| 34 "shell-args": [ |
| 35 "--url-mappings=mojo:example_service=mojo:python_example_service" |
| 36 ], |
| 37 }, |
| 38 ] |
| 39 |
| 40 if config.target_os != config.OS_ANDROID: |
| 41 tests += [ |
| 42 { |
| 43 # Runs mojo:example_apptests, replacing the mojo:example_service |
| 44 # dependency with the alternate test:example_service, launched via mojo |
| 45 # launcher." |
| 46 "test": "mojo:example_apptests", |
| 47 # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg. |
| 48 "test-args": ["--example_apptest_arg"], |
| 49 "shell-args": [ |
| 50 "--url-mappings=mojo:example_service=test:example_service" |
| 51 ], |
| 52 "launched-services": ["test:example_service"], |
| 53 }, |
| 54 { |
| 55 "test": "mojo:js_apptests", |
| 56 }, |
| 57 { |
| 58 "test": "mojo:reaper_apptests", |
| 59 }, |
| 60 ] |
| OLD | NEW |