mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
c0fb9cea2d
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
54 lines
1.5 KiB
CMake
54 lines
1.5 KiB
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_SRCS "*.py")
|
|
|
|
# Linux-specific integration tests.
|
|
if(WIN32 OR APPLE)
|
|
list(
|
|
REMOVE_ITEM INTEGRATION_SRCS
|
|
${CMAKE_CURRENT_SOURCE_DIR}/linux_cgroup_test.py
|
|
${CMAKE_CURRENT_SOURCE_DIR}/stale_test.py
|
|
${CMAKE_CURRENT_SOURCE_DIR}/systemd_fixture_test.py
|
|
)
|
|
endif()
|
|
if(WIN32)
|
|
list(
|
|
REMOVE_ITEM INTEGRATION_SRCS
|
|
${CMAKE_CURRENT_SOURCE_DIR}/chown_test.py
|
|
${CMAKE_CURRENT_SOURCE_DIR}/mmap_test.py
|
|
${CMAKE_CURRENT_SOURCE_DIR}/takeover_test.py
|
|
${CMAKE_CURRENT_SOURCE_DIR}/userinfo_test.py
|
|
)
|
|
endif()
|
|
|
|
# The following integration test files contain one or more tests that require
|
|
# pexpect. For now we disable the entire files when pexpect is unavailable.
|
|
if(NOT pexpect_FOUND)
|
|
list(
|
|
REMOVE_ITEM INTEGRATION_SRCS
|
|
${CMAKE_CURRENT_SOURCE_DIR}/health_test.py
|
|
${CMAKE_CURRENT_SOURCE_DIR}/restart_test.py
|
|
${CMAKE_CURRENT_SOURCE_DIR}/service_log_test.py
|
|
${CMAKE_CURRENT_SOURCE_DIR}/stop_test.py
|
|
${CMAKE_CURRENT_SOURCE_DIR}/systemd_test.py
|
|
)
|
|
endif()
|
|
|
|
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(helpers)
|
|
add_subdirectory(lib)
|