@ -78,7 +78,6 @@ ROCKSDB_PREPROCESSOR_FLAGS = [
# Directories with files for #include
# Directories with files for #include
"-I" + REPO_PATH + "include/",
"-I" + REPO_PATH + "include/",
"-I" + REPO_PATH,
"-I" + REPO_PATH,
"-I" + REPO_PATH + "third-party/gtest-1.8.1/fused-src/",
]
]
ROCKSDB_ARCH_PREPROCESSOR_FLAGS = {
ROCKSDB_ARCH_PREPROCESSOR_FLAGS = {
@ -398,11 +397,10 @@ cpp_library(
os_deps = ROCKSDB_OS_DEPS,
os_deps = ROCKSDB_OS_DEPS,
os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS,
os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS,
preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS,
preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS,
deps = [
deps = [":rocksdb_lib"],
":rocksdb_lib",
external_deps = ROCKSDB_EXTERNAL_DEPS + [
":rocksdb_third_party_gtest" ,
("googletest", None, "gtest") ,
],
],
external_deps = ROCKSDB_EXTERNAL_DEPS,
)
)
cpp_library(
cpp_library(
@ -449,19 +447,6 @@ cpp_library(
external_deps = ROCKSDB_EXTERNAL_DEPS,
external_deps = ROCKSDB_EXTERNAL_DEPS,
)
)
cpp_library(
name = "rocksdb_third_party_gtest",
srcs = ["third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc"],
headers = ["third-party/gtest-1.8.1/fused-src/gtest/gtest.h"],
arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS,
compiler_flags = ROCKSDB_COMPILER_FLAGS,
os_deps = ROCKSDB_OS_DEPS,
os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS,
preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS,
deps = [],
external_deps = ROCKSDB_EXTERNAL_DEPS,
)
cpp_library(
cpp_library(
name = "env_basic_test_lib",
name = "env_basic_test_lib",
srcs = ["env/env_basic_test.cc"],
srcs = ["env/env_basic_test.cc"],
@ -1645,18 +1630,17 @@ ROCKS_TESTS = [
# Do not build the tests in opt mode, since SyncPoint and other test code
# Do not build the tests in opt mode, since SyncPoint and other test code
# will not be included.
# will not be included.
[
[
test_binary(
cpp_unittest(
extra_compiler_flags = extra_compiler_flags,
name = test_name,
extra_deps = extra_deps,
srcs = [test_cc],
parallelism = parallelism,
arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS,
rocksdb_arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS,
os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS,
rocksdb_compiler_flags = ROCKSDB_COMPILER_FLAGS,
compiler_flags = ROCKSDB_COMPILER_FLAGS,
rocksdb_external_deps = ROCKSDB_EXTERNAL_DEPS,
preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS,
rocksdb_os_deps = ROCKSDB_OS_DEPS,
deps = [":rocksdb_test_lib"] + extra_deps,
rocksdb_os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS,
external_deps = ROCKSDB_EXTERNAL_DEPS + [
rocksdb_preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS,
("googletest", None, "gtest"),
test_cc = test_cc,
],
test_name = test_name,
)
)
for test_name, test_cc, parallelism, extra_deps, extra_compiler_flags in ROCKS_TESTS
for test_name, test_cc, parallelism, extra_deps, extra_compiler_flags in ROCKS_TESTS
if not is_opt_mode
if not is_opt_mode