Blob Blame Raw
--- freecell-solver-5.6.0/t/CMakeLists.txt.orig	2019-04-18 22:49:30.701874513 +0300
+++ freecell-solver-5.6.0/t/CMakeLists.txt	2019-04-18 22:49:41.059812941 +0300
@@ -45,48 +45,13 @@
 
 IF (FCS_WITH_TEST_SUITE)
 
-    SET (MODULE "Task::FreecellSolver::Testing")
-    EXECUTE_PROCESS (
-        COMMAND "${PERL_EXECUTABLE}" "-M${MODULE}=" "-e" "exit(0)"
-        RESULT_VARIABLE "RESULT"
-    )
-    IF (NOT RESULT EQUAL 0)
-        MESSAGE(FATAL_ERROR "You need the Perl 5/CPAN distribution ${MODULE} to run the test suite. Either skip the test suite using -DFCS_WITH_TEST_SUITE=OFF or see http://perl-begin.org/topics/cpan/ for installing from CPAN.")
-    ENDIF ()
-
-    FIND_LIBRARY(LIBTAP_LIB tap)
-    IF (NOT LIBTAP_LIB)
-        MESSAGE (FATAL_ERROR
-"You must install libtap ( http://www.shlomifish.org/open-source/projects/libtap/ ) and its development package or headers to run the test suite.
-If you're not interested in building it, run cmake with the -DFCS_WITH_TEST_SUITE= flag."
-    )
-    ENDIF ()
     MY_FIND_GMP ("to run the test suite." "FCS_WITH_TEST_SUITE")
 
     INCLUDE_DIRECTORIES (BEFORE "${CMAKE_BINARY_DIR}")
 
-    MY_ADD_EXE (
-        "card-test-render.t.exe"
-        "card-test-render.c"
-    )
-
-    MY_ADD_EXE (
-        "card-test-parse.t.exe"
-        "card-test-parse.c"
-    )
-
     FILE (MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/t")
     FILE (MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/verify-cache")
 
-    SET (EXE_FILE "bit-reader-and-writer-test.t.exe")
-
-    ADD_EXECUTABLE(
-        "${EXE_FILE}"
-        "${CMAKE_CURRENT_SOURCE_DIR}/bit-reader-and-writer-test.c"
-    )
-
-    TARGET_LINK_LIBRARIES (${EXE_FILE} ${LIBTAP_LIB})
-
     SET_SOURCE_FILES_PROPERTIES (
         "bit-reader-and-writer-test.c"
         PROPERTIES
@@ -95,59 +60,10 @@
 
     IF ("${DEBONDT_DELTA_STATES}")
 
-        SET (EXE_FILE "delta-states-debondt-test.t.exe")
-
-        ADD_EXECUTABLE(
-            "${EXE_FILE}"
-            "${CMAKE_CURRENT_SOURCE_DIR}/debondt-delta-states-test.c"
-        )
-
-        TARGET_LINK_LIBRARIES (${EXE_FILE} ${LIBTAP_LIB} ${LIBGMP_LIB})
-
-        SET_SOURCE_FILES_PROPERTIES (
-            "delta-states-test.c"
-            PROPERTIES
-                OBJECT_DEPENDS
-                    "${CMAKE_CURRENT_SOURCE_DIR}/../delta_states_debondt.c"
-                GENERATED "1"
-        )
-
     ELSE ()
 
-        SET (EXE_FILE "delta-states-test.t.exe")
-
-        ADD_EXECUTABLE(
-            "${EXE_FILE}"
-            "${CMAKE_CURRENT_SOURCE_DIR}/delta-states-test.c"
-            "${CMAKE_CURRENT_SOURCE_DIR}/../delta_states.c"
-        )
-
-        TARGET_LINK_LIBRARIES (${EXE_FILE} ${LIBTAP_LIB} ${LIBGMP_LIB})
-
-        SET_SOURCE_FILES_PROPERTIES (
-            "delta-states-test.c"
-            PROPERTIES
-                OBJECT_DEPENDS
-                    "${CMAKE_CURRENT_SOURCE_DIR}/../delta_states.c"
-                GENERATED "1"
-        )
     ENDIF ()
 
-    SET (EXE_FILE "dbm-kaztree-compare-records-test.t.exe")
-
-    ADD_EXECUTABLE(
-        "${EXE_FILE}"
-        "dbm-kaztree-compare-records-test.c"
-    )
-
-    # This is a kind-of-temporary kludge to make
-    # "dbm-kaztree-compare-records-test.c" build.
-    ADD_DEFINITIONS("-DFCS_DBM_USE_LIBAVL=1"
-        "-I${CMAKE_CURRENT_SOURCE_DIR}/.."
-        "-I${CMAKE_CURRENT_SOURCE_DIR}/../fcs-libavl/"
-        )
-    TARGET_LINK_LIBRARIES (${EXE_FILE} ${LIBTAP_LIB})
-
     GEN_INDIVIDUAL_TESTS(
         "generate_valgrind_tests"
         "${PROJECT_SOURCE_DIR}/scripts/gen-individual-valgrind-test-scripts.pl"