mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
e708dda521
Summary: Add a main() function to the indoes unit test, to allow a `--logging` flag to control log levels. I will eventually update our default test `main()` function to include this flag, but for now adding a custom `main()` for the inodes test is the simplest fix. Reviewed By: wez Differential Revision: D5326022 fbshipit-source-id: 36f497658fdb21639408fc599cf75908b9c9acb3
38 lines
1014 B
Plaintext
38 lines
1014 B
Plaintext
# @autodeps
|
|
|
|
cpp_unittest(
|
|
name = "test",
|
|
srcs = ["main.cpp"] + glob(
|
|
["*Test.cpp"],
|
|
excludes = [
|
|
# TODO(mbolin): Figure out what is salvagable from these tests and
|
|
# then re-enable them.
|
|
"DirstateTest.cpp",
|
|
"DirstatePersistenceTest.cpp",
|
|
],
|
|
),
|
|
deps = [
|
|
"@/eden/fs/config:config",
|
|
"@/eden/fs/fuse:fusell",
|
|
"@/eden/fs/inodes:inodes",
|
|
"@/eden/fs/journal:journal",
|
|
"@/eden/fs/service:thrift_cpp",
|
|
"@/eden/fs/testharness:testharness",
|
|
"@/eden/fs/utils:utils",
|
|
"@/eden/fs/utils/test:test_lib",
|
|
"@/folly:array",
|
|
"@/folly:bits",
|
|
"@/folly:conv",
|
|
"@/folly:exception_wrapper",
|
|
"@/folly:format",
|
|
"@/folly:range",
|
|
"@/folly:string",
|
|
"@/folly/experimental/logging:init",
|
|
"@/folly/init:init",
|
|
"@/folly/test:test_utils",
|
|
],
|
|
external_deps = [
|
|
("googletest", None, "gmock"),
|
|
],
|
|
)
|