Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1276)

Unified Diff: mojo/BUILD.gn

Issue 1409123007: Move public SDK test targets to //mojo/BUILD.gn (from //mojo/edk/test/BUILD.gn). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/edk/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
+ ]
+}
« no previous file with comments | « no previous file | mojo/edk/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698