sapling/eden/fs/store/test/CMakeLists.txt
Xavier Deguillard dc0b875615 store: enable more store tests
Summary:
These 3 tests compile without issues on Windows. The RocksDB one is weird,
while it compiles with no hickups, I simply cannot run the resulting test
binary, and I'm not sure how to debug this. The local store one fails in folly.

Reviewed By: chadaustin

Differential Revision: D21393724

fbshipit-source-id: db90bf20a9d116bc8aa493703997c5e8da76eb1f
2020-05-07 10:07:33 -07:00

31 lines
750 B
CMake

# Copyright (c) Facebook, Inc. and its affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2.
file(GLOB STORE_TEST_SRCS "*.cpp")
if (WIN32)
# TODO: T66530055
# Adding the RocksDb test causes the test binary to not load properly.
# The LocalStore test fails to compile on Windows.
list(
REMOVE_ITEM STORE_TEST_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/RocksDbLocalStoreTest.cpp
${CMAKE_CURRENT_SOURCE_DIR}/LocalStoreTest.cpp
)
endif()
add_executable(
eden_store_test
${STORE_TEST_SRCS}
)
target_link_libraries(
eden_store_test
PUBLIC
eden_store
eden_model
eden_testharness
${LIBGMOCK_LIBRARIES}
)
gtest_discover_tests(eden_store_test)