| 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 valid python. It can use the |config| global that will be a | 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 | 3 # mopy.config.Config object and must set a |tests| global that will contain the |
| 4 # tests to run. | 4 # tests to run. |
| 5 # TODO(vtl|msw): Add a way of specifying data dependencies. | 5 # TODO(vtl|msw): Add a way of specifying data dependencies. |
| 6 | 6 |
| 7 tests = [ | 7 tests = [ |
| 8 { | 8 { |
| 9 "test": "mojo:clipboard_apptests", | 9 "test": "mojo:clipboard_apptests", |
| 10 }, | 10 }, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 { | 30 { |
| 31 "test": "mojo:example_apptests", | 31 "test": "mojo:example_apptests", |
| 32 # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg. | 32 # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg. |
| 33 "test-args": ["--example_apptest_arg"], | 33 "test-args": ["--example_apptest_arg"], |
| 34 "shell-args": [ | 34 "shell-args": [ |
| 35 "--url-mappings=mojo:example_service=mojo:python_example_service" | 35 "--url-mappings=mojo:example_service=mojo:python_example_service" |
| 36 ], | 36 ], |
| 37 }, | 37 }, |
| 38 ] | 38 ] |
| 39 | 39 |
| 40 if config.target_os == config.OS_ANDROID: |
| 41 tests += [ |
| 42 { |
| 43 "test": "mojo:example_apptests", |
| 44 # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg. |
| 45 "test-args": ["--example_apptest_arg"], |
| 46 "shell-args": [ |
| 47 "--url-mappings=mojo:example_service=mojo:android_example_service" |
| 48 ], |
| 49 }, |
| 50 ] |
| 51 |
| 40 if config.target_os != config.OS_ANDROID: | 52 if config.target_os != config.OS_ANDROID: |
| 41 tests += [ | 53 tests += [ |
| 42 { | 54 { |
| 43 # Runs mojo:example_apptests, replacing the mojo:example_service | 55 # Runs mojo:example_apptests, replacing the mojo:example_service |
| 44 # dependency with the alternate test:example_service, launched via mojo | 56 # dependency with the alternate test:example_service, launched via mojo |
| 45 # launcher." | 57 # launcher." |
| 46 "test": "mojo:example_apptests", | 58 "test": "mojo:example_apptests", |
| 47 # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg. | 59 # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg. |
| 48 "test-args": ["--example_apptest_arg"], | 60 "test-args": ["--example_apptest_arg"], |
| 49 "shell-args": [ | 61 "shell-args": [ |
| 50 "--url-mappings=mojo:example_service=test:example_service" | 62 "--url-mappings=mojo:example_service=test:example_service" |
| 51 ], | 63 ], |
| 52 "launched-services": ["test:example_service"], | 64 "launched-services": ["test:example_service"], |
| 53 }, | 65 }, |
| 54 { | 66 { |
| 55 "test": "mojo:js_apptests", | 67 "test": "mojo:js_apptests", |
| 56 }, | 68 }, |
| 57 { | 69 { |
| 58 "test": "mojo:reaper_apptests", | 70 "test": "mojo:reaper_apptests", |
| 59 }, | 71 }, |
| 60 ] | 72 ] |
| OLD | NEW |