Commit 780bfc19 by Shahriar Rouf Committed by Copybara-Service

Replace `testonly = 1` with `testonly = True` in abseil BUILD files.

https://bazel.build/build/style-guide#other-conventions

PiperOrigin-RevId: 603084345
Change-Id: Ibd7c9573d820f88059d12c46ff82d7d322d002ae
parent 2812af91
......@@ -294,7 +294,7 @@ cc_library(
cc_library(
name = "atomic_hook_test_helper",
testonly = 1,
testonly = True,
srcs = ["internal/atomic_hook_test_helper.cc"],
hdrs = ["internal/atomic_hook_test_helper.h"],
copts = ABSL_DEFAULT_COPTS,
......@@ -380,7 +380,7 @@ cc_test(
cc_library(
name = "exception_testing",
testonly = 1,
testonly = True,
hdrs = ["internal/exception_testing.h"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -404,7 +404,7 @@ cc_library(
cc_library(
name = "exception_safety_testing",
testonly = 1,
testonly = True,
srcs = ["internal/exception_safety_testing.cc"],
hdrs = ["internal/exception_safety_testing.h"],
copts = ABSL_TEST_COPTS,
......@@ -470,7 +470,7 @@ cc_test(
# AbslInternalSpinLockDelay and AbslInternalSpinLockWake.
cc_library(
name = "spinlock_test_common",
testonly = 1,
testonly = True,
srcs = ["spinlock_test_common.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -507,7 +507,7 @@ cc_test(
cc_library(
name = "spinlock_benchmark_common",
testonly = 1,
testonly = True,
srcs = ["internal/spinlock_benchmark.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -527,7 +527,7 @@ cc_library(
cc_binary(
name = "spinlock_benchmark",
testonly = 1,
testonly = True,
copts = ABSL_DEFAULT_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
tags = ["benchmark"],
......@@ -608,7 +608,7 @@ cc_test(
cc_binary(
name = "no_destructor_benchmark",
testonly = 1,
testonly = True,
srcs = ["no_destructor_benchmark.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -710,7 +710,7 @@ cc_test(
cc_library(
name = "scoped_set_env",
testonly = 1,
testonly = True,
srcs = ["internal/scoped_set_env.cc"],
hdrs = ["internal/scoped_set_env.h"],
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -784,7 +784,7 @@ cc_test(
cc_binary(
name = "strerror_benchmark",
testonly = 1,
testonly = True,
srcs = ["internal/strerror_benchmark.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......
......@@ -108,7 +108,7 @@ cc_test(
cc_binary(
name = "fixed_array_benchmark",
testonly = 1,
testonly = True,
srcs = ["fixed_array_benchmark.cc"],
copts = ABSL_TEST_COPTS + ["$(STACK_FRAME_UNLIMITED)"],
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -151,7 +151,7 @@ cc_library(
cc_library(
name = "test_allocator",
testonly = 1,
testonly = True,
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
textual_hdrs = ["internal/test_allocator.h"],
......@@ -181,7 +181,7 @@ cc_test(
cc_binary(
name = "inlined_vector_benchmark",
testonly = 1,
testonly = True,
srcs = ["inlined_vector_benchmark.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -210,7 +210,7 @@ cc_test(
cc_library(
name = "test_instance_tracker",
testonly = 1,
testonly = True,
srcs = ["internal/test_instance_tracker.cc"],
hdrs = ["internal/test_instance_tracker.h"],
copts = ABSL_DEFAULT_COPTS,
......@@ -449,7 +449,7 @@ cc_test(
cc_library(
name = "hash_generator_testing",
testonly = 1,
testonly = True,
srcs = ["internal/hash_generator_testing.cc"],
hdrs = ["internal/hash_generator_testing.h"],
copts = ABSL_TEST_COPTS,
......@@ -465,7 +465,7 @@ cc_library(
cc_library(
name = "hash_policy_testing",
testonly = 1,
testonly = True,
hdrs = ["internal/hash_policy_testing.h"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -707,7 +707,7 @@ cc_test(
cc_binary(
name = "raw_hash_set_benchmark",
testonly = 1,
testonly = True,
srcs = ["internal/raw_hash_set_benchmark.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -724,7 +724,7 @@ cc_binary(
cc_binary(
name = "raw_hash_set_probe_benchmark",
testonly = 1,
testonly = True,
srcs = ["internal/raw_hash_set_probe_benchmark.cc"],
copts = ABSL_TEST_COPTS,
linkopts = select({
......@@ -798,7 +798,7 @@ cc_test(
cc_binary(
name = "layout_benchmark",
testonly = 1,
testonly = True,
srcs = ["internal/layout_benchmark.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -814,7 +814,7 @@ cc_binary(
cc_library(
name = "tracked",
testonly = 1,
testonly = True,
hdrs = ["internal/tracked.h"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -825,7 +825,7 @@ cc_library(
cc_library(
name = "unordered_map_constructor_test",
testonly = 1,
testonly = True,
hdrs = ["internal/unordered_map_constructor_test.h"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -838,7 +838,7 @@ cc_library(
cc_library(
name = "unordered_map_lookup_test",
testonly = 1,
testonly = True,
hdrs = ["internal/unordered_map_lookup_test.h"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -851,7 +851,7 @@ cc_library(
cc_library(
name = "unordered_map_modifiers_test",
testonly = 1,
testonly = True,
hdrs = ["internal/unordered_map_modifiers_test.h"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -864,7 +864,7 @@ cc_library(
cc_library(
name = "unordered_set_constructor_test",
testonly = 1,
testonly = True,
hdrs = ["internal/unordered_set_constructor_test.h"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -878,7 +878,7 @@ cc_library(
cc_library(
name = "unordered_set_members_test",
testonly = 1,
testonly = True,
hdrs = ["internal/unordered_set_members_test.h"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -890,7 +890,7 @@ cc_library(
cc_library(
name = "unordered_map_members_test",
testonly = 1,
testonly = True,
hdrs = ["internal/unordered_map_members_test.h"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -902,7 +902,7 @@ cc_library(
cc_library(
name = "unordered_set_lookup_test",
testonly = 1,
testonly = True,
hdrs = ["internal/unordered_set_lookup_test.h"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -915,7 +915,7 @@ cc_library(
cc_library(
name = "unordered_set_modifiers_test",
testonly = 1,
testonly = True,
hdrs = ["internal/unordered_set_modifiers_test.h"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -1008,7 +1008,7 @@ cc_library(
cc_library(
name = "btree_test_common",
testonly = 1,
testonly = True,
hdrs = ["btree_test.h"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -1059,7 +1059,7 @@ cc_test(
cc_binary(
name = "btree_benchmark",
testonly = 1,
testonly = True,
srcs = [
"btree_benchmark.cc",
],
......
......@@ -203,7 +203,7 @@ cc_test(
cc_binary(
name = "crc32c_benchmark",
testonly = 1,
testonly = True,
srcs = ["crc32c_benchmark.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......
......@@ -404,7 +404,7 @@ cc_test(
cc_binary(
name = "flag_benchmark",
testonly = 1,
testonly = True,
srcs = [
"flag_benchmark.cc",
],
......
......@@ -61,7 +61,7 @@ cc_library(
cc_library(
name = "hash_testing",
testonly = 1,
testonly = True,
hdrs = ["hash_testing.h"],
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
......@@ -128,7 +128,7 @@ cc_test(
cc_binary(
name = "hash_benchmark",
testonly = 1,
testonly = True,
srcs = ["hash_benchmark.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -148,7 +148,7 @@ cc_binary(
cc_library(
name = "spy_hash_state",
testonly = 1,
testonly = True,
hdrs = ["internal/spy_hash_state.h"],
copts = ABSL_DEFAULT_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......
......@@ -400,7 +400,7 @@ cc_library(
cc_binary(
name = "vlog_config_benchmark",
testonly = 1,
testonly = True,
srcs = ["vlog_config_benchmark.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......
......@@ -46,7 +46,7 @@ cc_library(
cc_binary(
name = "bits_benchmark",
testonly = 1,
testonly = True,
srcs = ["bits_benchmark.cc"],
copts = ABSL_DEFAULT_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......
......@@ -126,7 +126,7 @@ cc_test(
cc_binary(
name = "periodic_sampler_benchmark",
testonly = 1,
testonly = True,
srcs = ["internal/periodic_sampler_benchmark.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......
......@@ -132,7 +132,7 @@ cc_library(
cc_library(
name = "mock_distributions",
testonly = 1,
testonly = True,
hdrs = ["mock_distributions.h"],
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
......@@ -146,7 +146,7 @@ cc_library(
cc_library(
name = "mocking_bit_gen",
testonly = 1,
testonly = True,
hdrs = [
"mocking_bit_gen.h",
],
......@@ -521,7 +521,7 @@ cc_test(
# Benchmarks for various methods / test utilities
cc_binary(
name = "benchmarks",
testonly = 1,
testonly = True,
srcs = [
"benchmarks.cc",
],
......
......@@ -137,7 +137,7 @@ cc_library(
cc_library(
name = "explicit_seed_seq",
testonly = 1,
testonly = True,
hdrs = [
"explicit_seed_seq.h",
],
......@@ -151,7 +151,7 @@ cc_library(
cc_library(
name = "sequence_urbg",
testonly = 1,
testonly = True,
hdrs = [
"sequence_urbg.h",
],
......@@ -375,7 +375,7 @@ cc_binary(
cc_library(
name = "distribution_test_util",
testonly = 1,
testonly = True,
srcs = [
"chi_square.cc",
"distribution_test_util.cc",
......@@ -534,7 +534,7 @@ cc_library(
cc_library(
name = "mock_overload_set",
testonly = 1,
testonly = True,
hdrs = ["mock_overload_set.h"],
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
......
......@@ -829,7 +829,7 @@ cc_test(
cc_library(
name = "cord_test_helpers",
testonly = 1,
testonly = True,
hdrs = [
"cord_test_helpers.h",
],
......@@ -845,7 +845,7 @@ cc_library(
cc_library(
name = "cord_rep_test_util",
testonly = 1,
testonly = True,
hdrs = ["internal/cord_rep_test_util.h"],
copts = ABSL_DEFAULT_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -859,7 +859,7 @@ cc_library(
cc_library(
name = "cordz_test_helpers",
testonly = 1,
testonly = True,
hdrs = ["cordz_test_helpers.h"],
copts = ABSL_DEFAULT_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -1449,7 +1449,7 @@ cc_test(
cc_binary(
name = "atod_manual_test",
testonly = 1,
testonly = True,
srcs = ["atod_manual_test.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......
......@@ -183,7 +183,7 @@ cc_test(
cc_binary(
name = "blocking_counter_benchmark",
testonly = 1,
testonly = True,
srcs = ["blocking_counter_benchmark.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -230,7 +230,7 @@ cc_test(
cc_library(
name = "thread_pool",
testonly = 1,
testonly = True,
hdrs = ["internal/thread_pool.h"],
linkopts = ABSL_DEFAULT_LINKOPTS,
visibility = [
......@@ -281,7 +281,7 @@ cc_test(
cc_library(
name = "mutex_benchmark_common",
testonly = 1,
testonly = True,
srcs = ["mutex_benchmark.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......@@ -300,7 +300,7 @@ cc_library(
cc_binary(
name = "mutex_benchmark",
testonly = 1,
testonly = True,
copts = ABSL_DEFAULT_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
......@@ -326,7 +326,7 @@ cc_test(
cc_library(
name = "per_thread_sem_test_common",
testonly = 1,
testonly = True,
srcs = ["internal/per_thread_sem_test.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
......
......@@ -65,7 +65,7 @@ cc_library(
cc_library(
name = "test_util",
testonly = 1,
testonly = True,
srcs = ["internal/test_util.cc"],
hdrs = ["internal/test_util.h"],
copts = ABSL_DEFAULT_COPTS,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment