sapling/eden/integration/CMakeLists.txt
Adam Simpkins 0b5a1295fc support running the hg status integration tests in CMake builds
Summary:
Update the CMakeLists.txt files to support building the hg integration tests.
At the moment this only includes one of the test files (`status_test.py`).
I have not verified if tests from the other modules pass yet or if they need
any additional tweaks to work in CMake-based builds.

Reviewed By: pkaush, fanzeyi

Differential Revision: D17678991

fbshipit-source-id: 4a5ee5a8d6039d9d2a635c7027897bbeed14f8c0
2019-10-04 08:56:38 -07:00

23 lines
712 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.
# TODO: I have only listed basic_test.py for now just to confirm that the
# test framework as a whole works in CMake-based builds. We should eventually
# update this to include all test sources once we confirm that they all work.
file(GLOB INTEGRATION_SRCS "basic_test.py")
add_fb_python_unittest(
integration_tests
SOURCES ${INTEGRATION_SRCS}
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
DEPENDS
edenfsctl.main_lib
eden_integration_lib
ENV
"CMAKE_SOURCE_DIR=${CMAKE_SOURCE_DIR}"
)
add_subdirectory(hg)
add_subdirectory(lib)