mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
a4d599c4c1
Summary: Add a unit test that modifies a file and then does a forced checkout to revert back to the original commit state. This also includes some pretty-printers to make the tests print CheckoutConflict objects nicely if any test assertions fail. Reviewed By: bolinfest Differential Revision: D4727779 fbshipit-source-id: b31dc90be28d17ed0f2a4076c96a08ba82588190
46 lines
1.2 KiB
Plaintext
46 lines
1.2 KiB
Plaintext
def create_eden_fs_rules(suffix, subdir, server_srcs, server_deps):
|
|
cpp_binary(
|
|
name = "edenfs" + suffix,
|
|
output_subdir = subdir,
|
|
srcs = [
|
|
"main.cpp",
|
|
],
|
|
deps = [
|
|
":server" + suffix,
|
|
"@/eden/fs/inodes:inodes",
|
|
],
|
|
)
|
|
|
|
cpp_library(
|
|
name = "server" + suffix,
|
|
output_subdir = subdir,
|
|
headers = [
|
|
"EdenError.h",
|
|
"EdenServer.h",
|
|
"EdenServiceHandler.h",
|
|
"GlobNode.h",
|
|
],
|
|
srcs = [
|
|
"EdenError.cpp",
|
|
"EdenServer.cpp",
|
|
"EdenServiceHandler.cpp",
|
|
"GlobNode.cpp",
|
|
] + server_srcs,
|
|
deps = [
|
|
":thrift_cpp",
|
|
"@/common/fb303/cpp:fb303",
|
|
"@/eden/fuse:fusell",
|
|
"@/eden/fuse/privhelper:privhelper",
|
|
"@/eden/fs/config:config",
|
|
"@/eden/fs/inodes:inodes",
|
|
"@/eden/fs/store/git:git",
|
|
"@/eden/fs/store/hg:hg",
|
|
"@/folly/experimental:experimental",
|
|
"@/folly/init:init",
|
|
"@/thrift/lib/cpp2:server",
|
|
] + server_deps,
|
|
external_deps = [
|
|
("boost", None, "boost_filesystem"),
|
|
],
|
|
)
|