Add validation tests to python bindings.
R=sdefresne@chromium.org
Review URL: https://codereview.chromium.org/761553003
diff --git a/mojo/python/BUILD.gn b/mojo/python/BUILD.gn
index 7b07f4f..f96c2cc 100644
--- a/mojo/python/BUILD.gn
+++ b/mojo/python/BUILD.gn
@@ -8,6 +8,7 @@
group("python") {
deps = [
":embedder",
+ ":validation_util",
"//mojo/public/python",
]
}
@@ -25,3 +26,25 @@
"//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",
+ ]
+}