Loading tests/CMakeLists.txt +2 −52 Original line number Diff line number Diff line include(GkfsPythonTesting) # ensure helper programs in the testing harness get built add_subdirectory(harness) gkfs_enable_python_testing( BINARY_DIRECTORIES ${CMAKE_BINARY_DIR}/src/daemon/ ${CMAKE_BINARY_DIR}/src/client/ ${CMAKE_BINARY_DIR}/tests/harness/ LIBRARY_PREFIX_DIRECTORIES ${CMAKE_PREFIX_PATH} ) add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --force-new-ctest-process Loading @@ -17,48 +7,8 @@ add_custom_target(check --output-on-failure ) # integration tests add_subdirectory(integration) # unit tests add_subdirectory(unit) # define CTest tests for functional test groups gkfs_add_python_test( NAME test_directories PYTHON_VERSION 3.6 WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} SOURCE tests/directories/test_directories.py ) gkfs_add_python_test( NAME test_shell PYTHON_VERSION 3.6 WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} SOURCE tests/shell/ ) if(GKFS_INSTALL_TESTS) install(DIRECTORY harness DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/gkfs/tests FILES_MATCHING REGEX ".*\\.py" PATTERN "__pycache__" EXCLUDE PATTERN ".pytest_cache" EXCLUDE PATTERN "gkfs.io" EXCLUDE ) install(DIRECTORY directories DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/gkfs/tests FILES_MATCHING REGEX ".*\\.py" PATTERN "__pycache__" EXCLUDE PATTERN ".pytest_cache" EXCLUDE ) install(DIRECTORY shell DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/gkfs/tests FILES_MATCHING REGEX ".*\\.py" PATTERN "__pycache__" EXCLUDE PATTERN ".pytest_cache" EXCLUDE ) endif() tests/integration/CMakeLists.txt 0 → 100644 +51 −0 Original line number Diff line number Diff line # ensure helper programs in the testing harness get built add_subdirectory(harness) gkfs_enable_python_testing( BINARY_DIRECTORIES ${CMAKE_BINARY_DIR}/src/daemon/ ${CMAKE_BINARY_DIR}/src/client/ ${CMAKE_BINARY_DIR}/tests/integration/harness/ LIBRARY_PREFIX_DIRECTORIES ${CMAKE_PREFIX_PATH} ) # define CTest tests for functional test groups gkfs_add_python_test( NAME test_directories PYTHON_VERSION 3.6 WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} SOURCE tests/directories/test_directories.py ) gkfs_add_python_test( NAME test_shell PYTHON_VERSION 3.6 WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} SOURCE tests/shell/ ) if(GKFS_INSTALL_TESTS) install(DIRECTORY harness DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/gkfs/tests FILES_MATCHING REGEX ".*\\.py" PATTERN "__pycache__" EXCLUDE PATTERN ".pytest_cache" EXCLUDE PATTERN "gkfs.io" EXCLUDE ) install(DIRECTORY directories DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/gkfs/tests FILES_MATCHING REGEX ".*\\.py" PATTERN "__pycache__" EXCLUDE PATTERN ".pytest_cache" EXCLUDE ) install(DIRECTORY shell DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/gkfs/tests FILES_MATCHING REGEX ".*\\.py" PATTERN "__pycache__" EXCLUDE PATTERN ".pytest_cache" EXCLUDE ) endif() tests/conftest.py→tests/integration/conftest.py +0 −0 File moved. View file tests/conftest.py.in→tests/integration/conftest.py.in +0 −0 File moved. View file tests/directories/README.md→tests/integration/directories/README.md +0 −0 File moved. View file Loading
tests/CMakeLists.txt +2 −52 Original line number Diff line number Diff line include(GkfsPythonTesting) # ensure helper programs in the testing harness get built add_subdirectory(harness) gkfs_enable_python_testing( BINARY_DIRECTORIES ${CMAKE_BINARY_DIR}/src/daemon/ ${CMAKE_BINARY_DIR}/src/client/ ${CMAKE_BINARY_DIR}/tests/harness/ LIBRARY_PREFIX_DIRECTORIES ${CMAKE_PREFIX_PATH} ) add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --force-new-ctest-process Loading @@ -17,48 +7,8 @@ add_custom_target(check --output-on-failure ) # integration tests add_subdirectory(integration) # unit tests add_subdirectory(unit) # define CTest tests for functional test groups gkfs_add_python_test( NAME test_directories PYTHON_VERSION 3.6 WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} SOURCE tests/directories/test_directories.py ) gkfs_add_python_test( NAME test_shell PYTHON_VERSION 3.6 WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} SOURCE tests/shell/ ) if(GKFS_INSTALL_TESTS) install(DIRECTORY harness DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/gkfs/tests FILES_MATCHING REGEX ".*\\.py" PATTERN "__pycache__" EXCLUDE PATTERN ".pytest_cache" EXCLUDE PATTERN "gkfs.io" EXCLUDE ) install(DIRECTORY directories DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/gkfs/tests FILES_MATCHING REGEX ".*\\.py" PATTERN "__pycache__" EXCLUDE PATTERN ".pytest_cache" EXCLUDE ) install(DIRECTORY shell DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/gkfs/tests FILES_MATCHING REGEX ".*\\.py" PATTERN "__pycache__" EXCLUDE PATTERN ".pytest_cache" EXCLUDE ) endif()
tests/integration/CMakeLists.txt 0 → 100644 +51 −0 Original line number Diff line number Diff line # ensure helper programs in the testing harness get built add_subdirectory(harness) gkfs_enable_python_testing( BINARY_DIRECTORIES ${CMAKE_BINARY_DIR}/src/daemon/ ${CMAKE_BINARY_DIR}/src/client/ ${CMAKE_BINARY_DIR}/tests/integration/harness/ LIBRARY_PREFIX_DIRECTORIES ${CMAKE_PREFIX_PATH} ) # define CTest tests for functional test groups gkfs_add_python_test( NAME test_directories PYTHON_VERSION 3.6 WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} SOURCE tests/directories/test_directories.py ) gkfs_add_python_test( NAME test_shell PYTHON_VERSION 3.6 WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} SOURCE tests/shell/ ) if(GKFS_INSTALL_TESTS) install(DIRECTORY harness DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/gkfs/tests FILES_MATCHING REGEX ".*\\.py" PATTERN "__pycache__" EXCLUDE PATTERN ".pytest_cache" EXCLUDE PATTERN "gkfs.io" EXCLUDE ) install(DIRECTORY directories DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/gkfs/tests FILES_MATCHING REGEX ".*\\.py" PATTERN "__pycache__" EXCLUDE PATTERN ".pytest_cache" EXCLUDE ) install(DIRECTORY shell DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/gkfs/tests FILES_MATCHING REGEX ".*\\.py" PATTERN "__pycache__" EXCLUDE PATTERN ".pytest_cache" EXCLUDE ) endif()