| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/nacl/config.gni") | 5 import("//build/config/nacl/config.gni") |
| 6 import("//build/module_args/mojo.gni") | 6 import("//build/module_args/mojo.gni") |
| 7 import("//mojo/public/mojo.gni") | 7 import("//mojo/public/mojo.gni") |
| 8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
| 9 | 9 |
| 10 declare_args() { | 10 declare_args() { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 } | 88 } |
| 89 | 89 |
| 90 # Public SDK test targets follow. These targets are not defined within the | 90 # Public SDK test targets follow. These targets are not defined within the |
| 91 # public SDK itself since they are built as native executable binaries, needing | 91 # public SDK itself since they are built as native executable binaries, needing |
| 92 # to be linked with the EDK. | 92 # to be linked with the EDK. |
| 93 # TODO(vtl): They should be converted to "apptests", i.e., run as apps. | 93 # TODO(vtl): They should be converted to "apptests", i.e., run as apps. |
| 94 | 94 |
| 95 group("public_tests") { | 95 group("public_tests") { |
| 96 testonly = true | 96 testonly = true |
| 97 deps = [ | 97 deps = [ |
| 98 ":mojo_public_application_unittests", | 98 # Unit tests: |
| 99 ":mojo_public_bindings_perftests", | |
| 100 ":mojo_public_bindings_unittests", | |
| 101 ":mojo_public_c_bindings_unittests", | 99 ":mojo_public_c_bindings_unittests", |
| 102 ":mojo_public_environment_unittests", | 100 ":mojo_public_c_system_unittests", |
| 103 ":mojo_public_system_perftests", | 101 ":mojo_public_cpp_application_unittests", |
| 104 ":mojo_public_system_unittests", | 102 ":mojo_public_cpp_bindings_unittests", |
| 105 ":mojo_public_utility_unittests", | 103 ":mojo_public_cpp_environment_unittests", |
| 104 ":mojo_public_cpp_system_unittests", |
| 105 ":mojo_public_cpp_utility_unittests", |
| 106 |
| 107 # Perf tests: |
| 108 ":mojo_public_c_system_perftests", |
| 109 ":mojo_public_cpp_bindings_perftests", |
| 106 ] | 110 ] |
| 107 } | 111 } |
| 108 | 112 |
| 109 test("mojo_public_application_unittests") { | 113 # C unit tests: |
| 110 deps = [ | |
| 111 "//mojo/edk/test:run_all_unittests", | |
| 112 "//mojo/public/cpp/application/tests", | |
| 113 ] | |
| 114 } | |
| 115 | |
| 116 test("mojo_public_bindings_unittests") { | |
| 117 deps = [ | |
| 118 "//mojo/edk/test:run_all_unittests", | |
| 119 "//mojo/public/cpp/bindings/tests", | |
| 120 ] | |
| 121 } | |
| 122 | 114 |
| 123 test("mojo_public_c_bindings_unittests") { | 115 test("mojo_public_c_bindings_unittests") { |
| 124 deps = [ | 116 deps = [ |
| 125 "//mojo/edk/test:run_all_unittests", | 117 "//mojo/edk/test:run_all_unittests", |
| 126 "//mojo/public/c/bindings/tests", | 118 "//mojo/public/c/bindings/tests", |
| 127 ] | 119 ] |
| 128 } | 120 } |
| 129 | 121 |
| 130 test("mojo_public_bindings_perftests") { | 122 test("mojo_public_c_system_unittests") { |
| 131 deps = [ | 123 deps = [ |
| 132 "//mojo/edk/test:run_all_perftests", | 124 "//mojo/edk/test:run_all_unittests", |
| 133 "//mojo/public/cpp/bindings/tests:perftests", | 125 "//mojo/public/c/system/tests", |
| 134 ] | 126 ] |
| 135 } | 127 } |
| 136 | 128 |
| 137 test("mojo_public_environment_unittests") { | 129 # C++ unit tests: |
| 130 |
| 131 test("mojo_public_cpp_application_unittests") { |
| 132 deps = [ |
| 133 "//mojo/edk/test:run_all_unittests", |
| 134 "//mojo/public/cpp/application/tests", |
| 135 ] |
| 136 } |
| 137 |
| 138 test("mojo_public_cpp_bindings_unittests") { |
| 139 deps = [ |
| 140 "//mojo/edk/test:run_all_unittests", |
| 141 "//mojo/public/cpp/bindings/tests", |
| 142 ] |
| 143 } |
| 144 |
| 145 test("mojo_public_cpp_environment_unittests") { |
| 138 deps = [ | 146 deps = [ |
| 139 "//mojo/edk/test:run_all_unittests", | 147 "//mojo/edk/test:run_all_unittests", |
| 140 "//mojo/public/cpp/environment/tests", | 148 "//mojo/public/cpp/environment/tests", |
| 141 ] | 149 ] |
| 142 } | 150 } |
| 143 | 151 |
| 144 test("mojo_public_system_perftests") { | 152 test("mojo_public_cpp_system_unittests") { |
| 153 deps = [ |
| 154 "//mojo/edk/test:run_all_unittests", |
| 155 "//mojo/public/cpp/system/tests", |
| 156 ] |
| 157 } |
| 158 |
| 159 test("mojo_public_cpp_utility_unittests") { |
| 160 deps = [ |
| 161 "//mojo/edk/test:run_all_unittests", |
| 162 "//mojo/public/cpp/utility/tests", |
| 163 ] |
| 164 } |
| 165 |
| 166 # C perf tests: |
| 167 |
| 168 test("mojo_public_c_system_perftests") { |
| 145 deps = [ | 169 deps = [ |
| 146 "//mojo/edk/test:run_all_perftests", | 170 "//mojo/edk/test:run_all_perftests", |
| 147 "//mojo/public/c/system/tests:perftests", | 171 "//mojo/public/c/system/tests:perftests", |
| 148 ] | 172 ] |
| 149 } | 173 } |
| 150 | 174 |
| 151 test("mojo_public_system_unittests") { | 175 # C++ perf tests: |
| 176 |
| 177 test("mojo_public_cpp_bindings_perftests") { |
| 152 deps = [ | 178 deps = [ |
| 153 "//mojo/edk/test:run_all_unittests", | 179 "//mojo/edk/test:run_all_perftests", |
| 154 "//mojo/public/cpp/system/tests", | 180 "//mojo/public/cpp/bindings/tests:perftests", |
| 155 ] | 181 ] |
| 156 } | 182 } |
| 157 | |
| 158 test("mojo_public_utility_unittests") { | |
| 159 deps = [ | |
| 160 "//mojo/edk/test:run_all_unittests", | |
| 161 "//mojo/public/cpp/utility/tests", | |
| 162 ] | |
| 163 } | |
| OLD | NEW |