mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
dc0b875615
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
31 lines
750 B
CMake
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)
|