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

Side by Side Diff: sandbox/linux/BUILD.gn

Issue 1848033005: Revert of 🍬 GN: Make breakpad_unittests & sandbox_linux_unittests use test() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test-minor-renames
Patch Set: Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « build/config/android/rules.gni ('k') | testing/test.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/nacl/config.gni") 6 import("//build/config/nacl/config.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 8
9 if (is_android) { 9 if (is_android) {
10 import("//build/config/android/rules.gni") 10 import("//build/config/android/rules.gni")
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 "bpf_dsl/golden/x86-64/NegativeConstantsPolicy.txt", 185 "bpf_dsl/golden/x86-64/NegativeConstantsPolicy.txt",
186 "bpf_dsl/golden/x86-64/SwitchPolicy.txt", 186 "bpf_dsl/golden/x86-64/SwitchPolicy.txt",
187 ] 187 ]
188 outputs = [ 188 outputs = [
189 "$target_gen_dir/bpf_dsl/golden/golden_files.h", 189 "$target_gen_dir/bpf_dsl/golden/golden_files.h",
190 ] 190 ]
191 args = 191 args =
192 rebase_path(outputs, root_build_dir) + rebase_path(inputs, root_build_dir) 192 rebase_path(outputs, root_build_dir) + rebase_path(inputs, root_build_dir)
193 } 193 }
194 194
195 test("sandbox_linux_unittests") { 195 # TODO(GYP): Delete these after we've converted everything to GN.
196 # The _run targets exist only for compatibility w/ GYP.
197 group("sandbox_linux_unittests_run") {
198 testonly = true
199 deps = [
200 ":sandbox_linux_unittests",
201 ]
202 }
203
204 if (is_android) {
205 group("sandbox_linux_unittests_apk_run") {
206 testonly = true
207 deps = [
208 ":sandbox_linux_unittests",
209 ]
210 }
211 }
212
213 # The main sandboxing test target. "sandbox_linux_unittests" cannot use the
214 # test() template because the test is run as an executable not as an APK on
215 # Android.
216 executable("sandbox_linux_unittests") {
217 testonly = true
196 deps = [ 218 deps = [
197 ":sandbox_linux_unittests_sources", 219 ":sandbox_linux_unittests_sources",
198 "//build/config/sanitizers:deps", 220 "//build/config/sanitizers:deps",
199 ] 221 ]
200 if (is_android) {
201 use_raw_android_executable = true
202 }
203 } 222 }
204 223
205 component("seccomp_bpf") { 224 component("seccomp_bpf") {
206 sources = [ 225 sources = [
207 "bpf_dsl/bpf_dsl.cc", 226 "bpf_dsl/bpf_dsl.cc",
208 "bpf_dsl/bpf_dsl.h", 227 "bpf_dsl/bpf_dsl.h",
209 "bpf_dsl/bpf_dsl_forward.h", 228 "bpf_dsl/bpf_dsl_forward.h",
210 "bpf_dsl/bpf_dsl_impl.h", 229 "bpf_dsl/bpf_dsl_impl.h",
211 "bpf_dsl/codegen.cc", 230 "bpf_dsl/codegen.cc",
212 "bpf_dsl/codegen.h", 231 "bpf_dsl/codegen.h",
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 "suid/client/setuid_sandbox_host.cc", 447 "suid/client/setuid_sandbox_host.cc",
429 "suid/client/setuid_sandbox_host.h", 448 "suid/client/setuid_sandbox_host.h",
430 "suid/common/sandbox.h", 449 "suid/common/sandbox.h",
431 "suid/common/suid_unsafe_environment_variables.h", 450 "suid/common/suid_unsafe_environment_variables.h",
432 ] 451 ]
433 } 452 }
434 } 453 }
435 } 454 }
436 455
437 if (is_android) { 456 if (is_android) {
438 # TODO(GYP) Delete this after we've converted everything to GN. 457 create_native_executable_dist("sandbox_linux_unittests_deps") {
439 group("sandbox_linux_unittests_deps") {
440 testonly = true 458 testonly = true
459 dist_dir = "$root_out_dir/sandbox_linux_unittests_deps"
460 binary = "$root_out_dir/sandbox_linux_unittests"
441 deps = [ 461 deps = [
442 ":sandbox_linux_unittests", 462 ":sandbox_linux_unittests",
443 ] 463 ]
464
465 if (is_component_build) {
466 deps += [ "//build/android:cpplib_stripped" ]
467 }
468 }
469
470 test_runner_script("sandbox_linux_unittests__test_runner_script") {
471 test_name = "sandbox_linux_unittests"
472 test_type = "gtest"
473 test_suite = "sandbox_linux_unittests"
474 isolate_file = "//sandbox/sandbox_linux_unittests_android.isolate"
444 } 475 }
445 } 476 }
OLDNEW
« no previous file with comments | « build/config/android/rules.gni ('k') | testing/test.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698