summaryrefslogtreecommitdiffstats
path: root/sandbox
diff options
context:
space:
mode:
authorjln@chromium.org <jln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-19 01:04:35 +0000
committerjln@chromium.org <jln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-19 01:04:35 +0000
commit5a93fe871daa832a38f42bce23fb4a158023e9b9 (patch)
treea0b42331f844e6f18af22e67ade1236b0c16bd89 /sandbox
parentbec6a9985134812204bb4d6dc472dc789437e122 (diff)
downloadchromium_src-5a93fe871daa832a38f42bce23fb4a158023e9b9.zip
chromium_src-5a93fe871daa832a38f42bce23fb4a158023e9b9.tar.gz
chromium_src-5a93fe871daa832a38f42bce23fb4a158023e9b9.tar.bz2
Linux sandbox: add sandbox_linux_unittests.isolate
This is a re-land of https://codereview.chromium.org/340523006/ BUG=384514 R=maruel@chromium.org Review URL: https://codereview.chromium.org/341623003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278212 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox')
-rw-r--r--sandbox/linux/sandbox_linux.gypi18
-rw-r--r--sandbox/sandbox_linux_unittests.isolate27
2 files changed, 45 insertions, 0 deletions
diff --git a/sandbox/linux/sandbox_linux.gypi b/sandbox/linux/sandbox_linux.gypi
index 6235248..9ddcf0c 100644
--- a/sandbox/linux/sandbox_linux.gypi
+++ b/sandbox/linux/sandbox_linux.gypi
@@ -344,5 +344,23 @@
}
],
}],
+ ['test_isolation_mode != "noop"', {
+ 'targets': [
+ {
+ 'target_name': 'sandbox_linux_unittests_run',
+ 'type': 'none',
+ 'dependencies': [
+ 'sandbox_linux_unittests',
+ ],
+ 'includes': [
+ '../../build/isolate.gypi',
+ '../sandbox_linux_unittests.isolate',
+ ],
+ 'sources': [
+ '../sandbox_linux_unittests.isolate',
+ ],
+ },
+ ],
+ }],
],
}
diff --git a/sandbox/sandbox_linux_unittests.isolate b/sandbox/sandbox_linux_unittests.isolate
new file mode 100644
index 0000000..8986566
--- /dev/null
+++ b/sandbox/sandbox_linux_unittests.isolate
@@ -0,0 +1,27 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Because of a limitation in isolate_driver.py, this file needs to be in
+# the same directory as the main .gyp file.
+
+{
+ 'conditions': [
+ ['OS=="android" or OS=="linux"', {
+ 'variables': {
+ 'command': [
+ '<(PRODUCT_DIR)/sandbox_linux_unittests',
+ ],
+ 'isolate_dependency_tracked': [
+ '<(PRODUCT_DIR)/sandbox_linux_unittests',
+ ],
+ 'read_only': 1,
+ },
+ }],
+ ],
+ 'includes': [
+ # This is needed because of base/ dependencies on
+ # icudtl.dat.
+ '../base/base.isolate',
+ ],
+}