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 from mopy.config import Config | |
8 | |
9 tests = [ | |
5 { | 10 { |
6 "test": "mojo:clipboard_apptests", | 11 "test": "mojo:clipboard_apptests", |
7 }, | 12 }, |
8 { | 13 { |
9 "test": "mojo:example_apptests", | 14 "test": "mojo:example_apptests", |
10 # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg. | 15 # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg. |
11 "test-args": ["--example_apptest_arg"], | 16 "test-args": ["--example_apptest_arg"], |
12 }, | 17 }, |
13 { | 18 { |
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", | 19 "test": "mojo:network_service_apptests", |
25 }, | 20 }, |
26 { | 21 { |
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", | 22 "test": "mojo:view_manager_service_apptests", |
35 "shell-args": ["--args-for=mojo:native_viewport_service --use-headless-confi g --use-osmesa"], | 23 "shell-args": ["--args-for=mojo:native_viewport_service --use-headless-confi g --use-osmesa"], |
36 }, | 24 }, |
37 { | 25 { |
38 "test": "mojo:js_apptests", | |
39 "target_os": ["!android"], | |
40 }, | |
41 { | |
42 "test": "mojo:window_manager_apptests", | 26 "test": "mojo:window_manager_apptests", |
43 }, | 27 }, |
44 { | |
45 "test": "mojo:reaper_apptests", | |
46 "target_os": ["!android"], | |
47 }, | |
48 ] | 28 ] |
29 | |
30 if config.target_os == Config.OS_LINUX: | |
viettrungluu
2015/01/30 20:43:27
You should be able to just use config.OS_LINUX (an
qsr
2015/02/03 10:44:25
It will work, but any reason I would want to? This
| |
31 tests+= [ | |
viettrungluu
2015/01/30 20:43:27
nit: space before "+="
qsr
2015/02/03 10:44:25
Done.
| |
32 { | |
33 "test": "mojo:example_apptests", | |
34 # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg. | |
35 "test-args": ["--example_apptest_arg"], | |
36 "shell-args": ["--url-mappings=mojo:example_service=mojo:python_example_se rvice"], | |
viettrungluu
2015/01/30 20:43:27
Arguably, you should wrap to fit in 80 columns.
qsr
2015/02/03 10:44:25
Done.
| |
37 }, | |
38 ] | |
39 | |
40 if config.target_os != Config.OS_ANDROID: | |
41 tests+= [ | |
viettrungluu
2015/01/30 20:43:27
...
qsr
2015/02/03 10:44:25
Done.
| |
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": ["--url-mappings=mojo:example_service=test:example_service"] , | |
viettrungluu
2015/01/30 20:43:27
...
qsr
2015/02/03 10:44:25
Done.
| |
50 "launched-services": ["test:example_service"], | |
51 }, | |
52 { | |
53 "test": "mojo:js_apptests", | |
54 }, | |
55 { | |
56 "test": "mojo:reaper_apptests", | |
57 }, | |
58 ] | |
OLD | NEW |