sapling/eden/integration/lib/CMakeLists.txt
Adam Simpkins c0fb9cea2d enable all integration test sources in CMake builds
Summary:
Previously we only included `basic_test.py` and `hg/status_test.py` in the
integration tests during CMake-based builds.  This updates the code to now
include all of the test files, with just a few exclusions based on platform
type and what dependencies were available at build time.

Reviewed By: wez

Differential Revision: D21239912

fbshipit-source-id: b8826d249a6323ac3bcc555c9ceba54a4cbcfde9
2020-05-04 11:46:09 -07:00

23 lines
566 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 INTEGRATION_LIB_SRCS "*.py")
if(pexpect_FOUND)
list(APPEND INTEGRATION_LIB_DEPENDENCIES pexpect::pexpect)
else()
list(REMOVE_ITEM INTEGRATION_LIB_SRCS pexpect.py)
endif()
add_fb_python_library(
eden_integration_lib
SOURCES ${INTEGRATION_LIB_SRCS}
DEPENDS
edenfsctl.main_lib
eden_py
eden_service_thrift_py
eden_test_support
${INTEGRATION_LIB_DEPENDENCIES}
)