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

Unified Diff: blimp/BUILD.gn

Issue 2028353003: Support for bundling Chromium unittests into a tarball. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor Dockerfile fix. Created 4 years, 7 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 | blimp/Dockerfile » ('j') | blimp/Dockerfile » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/BUILD.gn
diff --git a/blimp/BUILD.gn b/blimp/BUILD.gn
index 14408f934809126833c08aa239b194013a9995a5..4ac99d598103dcffddf24b0dcd216a67a2e4b158 100644
--- a/blimp/BUILD.gn
+++ b/blimp/BUILD.gn
@@ -138,3 +138,41 @@ if (is_linux) {
]
}
}
+
+# Builds and bundles the tests into a tarball that can be used to build a
+# Docker image.
+action("blimp_engine_env_tests_bundle") {
+ testonly = true
+ script = "//blimp/tools/bundle.py"
+
+ # These form the arguments to the script.
+ _rebased_out_dir = rebase_path(root_out_dir)
+ _rebased_dockerfile = rebase_path("//blimp/Dockerfile")
+ _bundle = "$root_out_dir/blimp_engine_env_tests_bundle.tar.gz"
+
+ # Depending on this ensures that both the manifest is generated
+ # and everything in the manifest has been built.
+ deps = [
+ ":generate_blimp_engine_env_tests_manifest",
+ ]
+
+ sources = [
+ _blimp_engine_env_tests_manifest,
Sriram 2016/06/02 19:55:05 Should this be _rebased_blimp_engine_env_tests_man
Jess 2016/06/02 23:02:14 Nope. That will fail to build. The issue is that
+ _rebased_dockerfile,
+ ]
+ outputs = [
+ _bundle,
+ ]
+
+ # Manually specify the actual arguments to the script.
+ args = [
+ "--build-dir",
+ _rebased_out_dir,
+ "--dockerfile",
+ _rebased_dockerfile,
+ "--manifest",
+ _rebased_blimp_engine_env_tests_manifest,
+ "--output",
+ rebase_path(_bundle),
+ ]
+}
« no previous file with comments | « no previous file | blimp/Dockerfile » ('j') | blimp/Dockerfile » ('J')

Powered by Google App Engine
This is Rietveld 408576698