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

Unified Diff: mojo/python/BUILD.gn

Issue 761553003: Add validation tests to python bindings. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Follow review Created 6 years, 1 month 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 | « mojo/public/python/mojo/bindings/serialization.py ('k') | mojo/python/system/mojo/tests/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/python/BUILD.gn
diff --git a/mojo/python/BUILD.gn b/mojo/python/BUILD.gn
index 7b07f4f2e5d1e0400c2055fab17f84323164dfa8..f96c2ccfab70dcc9529d732c1a402ab89b52cbc0 100644
--- a/mojo/python/BUILD.gn
+++ b/mojo/python/BUILD.gn
@@ -8,6 +8,7 @@ import("//third_party/cython/rules.gni")
group("python") {
deps = [
":embedder",
+ ":validation_util",
"//mojo/public/python",
]
}
@@ -25,3 +26,25 @@ python_binary_module("embedder") {
"//mojo/public/python:system",
]
}
+
+copy("tests_module") {
+ sources = [
+ "system/mojo/tests/__init__.py",
+ ]
+ outputs = [
+ "$root_out_dir/python/mojo/tests/{{source_file_part}}",
+ ]
+}
+
+python_binary_module("validation_util") {
+ python_base_module = "mojo/tests"
+ sources = [
+ "system/mojo/tests/validation_util.pyx",
+ ]
+ deps = [
+ "//mojo/public/cpp/bindings/tests:mojo_public_bindings_test_utils",
+ ]
+ datadeps = [
+ ":tests_module",
+ ]
+}
« no previous file with comments | « mojo/public/python/mojo/bindings/serialization.py ('k') | mojo/python/system/mojo/tests/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698