|
|
@ -2,8 +2,7 @@ from __future__ import absolute_import |
|
|
|
from __future__ import division |
|
|
|
from __future__ import division |
|
|
|
from __future__ import print_function |
|
|
|
from __future__ import print_function |
|
|
|
from __future__ import unicode_literals |
|
|
|
from __future__ import unicode_literals |
|
|
|
rocksdb_target_header = """ |
|
|
|
rocksdb_target_header = """load("@fbcode_macros//build_defs:auto_headers.bzl", "AutoHeaders") |
|
|
|
load("@fbcode_macros//build_defs:auto_headers.bzl", "AutoHeaders") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
REPO_PATH = package_name() + "/" |
|
|
|
REPO_PATH = package_name() + "/" |
|
|
|
|
|
|
|
|
|
|
@ -121,21 +120,20 @@ if not is_opt_mode: |
|
|
|
ttype = "gtest" if test_cfg[2] == "parallel" else "simple" |
|
|
|
ttype = "gtest" if test_cfg[2] == "parallel" else "simple" |
|
|
|
test_bin = test_name + "_bin" |
|
|
|
test_bin = test_name + "_bin" |
|
|
|
|
|
|
|
|
|
|
|
cpp_binary ( |
|
|
|
cpp_binary( |
|
|
|
name = test_bin, |
|
|
|
name = test_bin, |
|
|
|
srcs = [test_cc], |
|
|
|
srcs = [test_cc], |
|
|
|
deps = [":rocksdb_test_lib"], |
|
|
|
|
|
|
|
preprocessor_flags = rocksdb_preprocessor_flags, |
|
|
|
|
|
|
|
arch_preprocessor_flags = rocksdb_arch_preprocessor_flags, |
|
|
|
arch_preprocessor_flags = rocksdb_arch_preprocessor_flags, |
|
|
|
compiler_flags = rocksdb_compiler_flags, |
|
|
|
compiler_flags = rocksdb_compiler_flags, |
|
|
|
|
|
|
|
preprocessor_flags = rocksdb_preprocessor_flags, |
|
|
|
|
|
|
|
deps = [":rocksdb_test_lib"], |
|
|
|
external_deps = rocksdb_external_deps, |
|
|
|
external_deps = rocksdb_external_deps, |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
custom_unittest( |
|
|
|
custom_unittest( |
|
|
|
name = test_name, |
|
|
|
name = test_name, |
|
|
|
|
|
|
|
command = [TEST_RUNNER, BUCK_BINS + test_bin], |
|
|
|
type = ttype, |
|
|
|
type = ttype, |
|
|
|
deps = [":" + test_bin], |
|
|
|
deps = [":" + test_bin], |
|
|
|
command = [TEST_RUNNER, BUCK_BINS + test_bin] |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
""" |
|
|
|
""" |
|
|
|