| Index: mojo/BUILD.gn
|
| diff --git a/mojo/BUILD.gn b/mojo/BUILD.gn
|
| index c01cee01768f9cf6abb76824e426bd79fa742de8..c268b52b90e91ff70536e372628e4ea2f8e79d62 100644
|
| --- a/mojo/BUILD.gn
|
| +++ b/mojo/BUILD.gn
|
| @@ -4,6 +4,7 @@
|
|
|
| import("//build/module_args/mojo.gni")
|
| import("//mojo/public/mojo.gni")
|
| +import("//testing/test.gni")
|
|
|
| declare_args() {
|
| mojo_use_go = false
|
| @@ -60,9 +61,9 @@ group("mojo") {
|
| group("tests") {
|
| testonly = true
|
| deps = [
|
| + ":public_tests",
|
| "//mojo/common:mojo_common_unittests",
|
| "//mojo/edk/system:tests",
|
| - "//mojo/edk/test:public_tests",
|
| "//mojo/dart/embedder/test:dart_unittests",
|
| "//mojo/public/cpp/bindings/tests:versioning_apptests",
|
| "//mojo/services/view_manager/cpp/tests:mojo_view_manager_lib_unittests",
|
| @@ -89,3 +90,78 @@ static_library("system_thunks") {
|
| "//mojo/public/platform/native:system",
|
| ]
|
| }
|
| +
|
| +# Public SDK test targets follow. These targets are not defined within the
|
| +# public SDK itself since they are built as native executable binaries, needing
|
| +# to be linked with the EDK.
|
| +# TODO(vtl): They should be converted to "apptests", i.e., run as apps.
|
| +
|
| +group("public_tests") {
|
| + testonly = true
|
| + deps = [
|
| + ":mojo_public_application_unittests",
|
| + ":mojo_public_bindings_perftests",
|
| + ":mojo_public_bindings_unittests",
|
| + ":mojo_public_environment_unittests",
|
| + ":mojo_public_system_perftests",
|
| + ":mojo_public_system_unittests",
|
| + ":mojo_public_utility_unittests",
|
| + ":mojo_system_impl_private_unittests",
|
| + ]
|
| +}
|
| +
|
| +test("mojo_public_application_unittests") {
|
| + deps = [
|
| + "//mojo/edk/test:run_all_unittests",
|
| + "//mojo/public/cpp/application/tests",
|
| + ]
|
| +}
|
| +
|
| +test("mojo_public_bindings_unittests") {
|
| + deps = [
|
| + "//mojo/edk/test:run_all_unittests",
|
| + "//mojo/public/cpp/bindings/tests",
|
| + ]
|
| +}
|
| +
|
| +test("mojo_public_bindings_perftests") {
|
| + deps = [
|
| + "//mojo/edk/test:run_all_perftests",
|
| + "//mojo/public/cpp/bindings/tests:perftests",
|
| + ]
|
| +}
|
| +
|
| +test("mojo_public_environment_unittests") {
|
| + deps = [
|
| + "//mojo/edk/test:run_all_unittests",
|
| + "//mojo/public/cpp/environment/tests",
|
| + ]
|
| +}
|
| +
|
| +test("mojo_public_system_perftests") {
|
| + deps = [
|
| + "//mojo/edk/test:run_all_perftests",
|
| + "//mojo/public/c/system/tests:perftests",
|
| + ]
|
| +}
|
| +
|
| +test("mojo_public_system_unittests") {
|
| + deps = [
|
| + "//mojo/edk/test:run_all_unittests",
|
| + "//mojo/public/cpp/system/tests",
|
| + ]
|
| +}
|
| +
|
| +test("mojo_public_utility_unittests") {
|
| + deps = [
|
| + "//mojo/edk/test:run_all_unittests",
|
| + "//mojo/public/cpp/utility/tests",
|
| + ]
|
| +}
|
| +
|
| +test("mojo_system_impl_private_unittests") {
|
| + deps = [
|
| + "//mojo/edk/test:run_all_unittests",
|
| + "//mojo/public/platform/native:system_impl_private_tests",
|
| + ]
|
| +}
|
|
|