summaryrefslogtreecommitdiffstats
path: root/mojo/tools/data/apptests
blob: 1b8bee8f1ed49154285c2f3d6f488dc4110101e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# This file contains a list of Mojo gtest unit tests.
#
# This must be valid Python. It may use the |config| global that will be a
# mopy.config.Config object, and must set a |tests| global that will contain the
# list of tests to run.
#
# The entries in |tests| are dictionaries of the following form:
#   {
#     # Required URL for apptest.
#     "test": "mojo:test_app_url",
#     # Optional display name (otherwise the entry for "test" above is used).
#     "name": "mojo:test_app_url (more details)",
#     # Optional test type. Valid values:
#     #   * "gtest": (default)
#     #   * "gtest_isolated": like "gtest", but run with fixture isolation.
#     #                       i.e., each test in a fresh mojo_shell
#     "type": "gtest",
#     # Optional arguments for the shell or test.
#     "args": ["--some-flag-for-the-shell", "--some-flag-for-the-test"],
#   }
#
# TODO(vtl|msw): Add a way of specifying data dependencies.

tests = [
  {
    "test": "mojo:clipboard_apptests",
    "type": "gtest_isolated",
  },
  {
    "test": "mojo:network_service_apptests",
    "type": "gtest_isolated",
  },
  # TODO(msw|jam): Fix and enable the runner_apptests: http://crbug.com/479316
  #{
  #  "test": "mojo:runner_apptests",
  #  "type": "gtest_isolated",
  #},
  {
    "test": "mojo:view_manager_apptests",
    "type": "gtest_isolated",
    "args": ["--use-headless-config"]
  },
]

# TODO(msw): Get these tests passing on Android too. http://crbug.com/486220
if config.target_os != config.OS_ANDROID:
  tests += [
    {
      "test": "mojo:filesystem_apptests",
      "type": "gtest_isolated",
    },
    {
      "test": "mojo:html_viewer_apptests",
      "type": "gtest_isolated",
      "args": ["--use-test-config"]
    },
    {
      "test": "mojo:mandoline_frame_apptests",
      "type": "gtest_isolated",
      "args": ["--use-headless-config"]
    },
    {
      "test": "mojo:resource_provider_apptests",
      "type": "gtest_isolated",
    },
    {
      "test": "mojo:sql_apptests",
      "type": "gtest_isolated",
    },
    # TODO(xhwang): Fix and enable the media_apptests. http://crbug.com/501417
    #{
    #  "test": "mojo:media_apptests",
    #  "type": "gtest_isolated",
    #},
  ]