mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Add optional testing group for srfi-64
This adds an optional group to CMakeLists for systems with SRFI-64 included.
This commit is contained in:
parent
458e7e9ff1
commit
578e9860d0
@ -323,6 +323,17 @@ IF (NOT GUILE_EXECUTABLE)
|
||||
MESSAGE (SEND_ERROR "The guile executable was not found, but is required. Please set GUILE_EXECUTABLE.")
|
||||
ENDIF (NOT GUILE_EXECUTABLE)
|
||||
|
||||
# Test that guile has SRFI-64. This is required for some unit tests.
|
||||
execute_process (COMMAND ${GUILE_EXECUTABLE} -c "(use-modules (srfi srfi-64))"
|
||||
RESULT_VARIABLE GNC_SRFI64_RESULT
|
||||
ERROR_QUIET
|
||||
)
|
||||
|
||||
if (GNC_SRFI64_RESULT EQUAL 0)
|
||||
message (STATUS "Using guile SRFI-64")
|
||||
set (HAVE_SRFI64 TRUE)
|
||||
endif ()
|
||||
|
||||
# ############################################################
|
||||
IF (WITH_AQBANKING)
|
||||
GNC_PKG_CHECK_MODULES (GWENHYWFAR REQUIRED gwenhywfar)
|
||||
|
@ -6,6 +6,9 @@ SET(scm_test_standard_reports_SOURCES
|
||||
test-standard-net-linechart.scm
|
||||
)
|
||||
|
||||
set(scm_test_with_srfi64_SOURCES
|
||||
)
|
||||
|
||||
SET(scm_test_report_SUPPORT
|
||||
test-generic-category-report.scm
|
||||
test-generic-net-barchart.scm
|
||||
@ -23,6 +26,11 @@ set(GUILE_DEPENDS
|
||||
scm-standard-reports
|
||||
scm-report-stylesheets
|
||||
)
|
||||
|
||||
if (HAVE_SRFI64)
|
||||
gnc_add_scheme_tests("${scm_test_with_srfi64_SOURCES}")
|
||||
endif (HAVE_SRFI64)
|
||||
|
||||
GNC_ADD_SCHEME_TESTS("${scm_test_standard_reports_SOURCES}")
|
||||
|
||||
GNC_ADD_SCHEME_TARGETS(scm-test-standard-support
|
||||
@ -41,4 +49,5 @@ GNC_ADD_SCHEME_TARGETS(scm-test-standard-reports
|
||||
add_dependencies(check scm-test-standard-reports)
|
||||
|
||||
SET_DIST_LIST(test_standard_reports_DIST CMakeLists.txt
|
||||
${scm_test_with_srfi64_SOURCES}
|
||||
${scm_test_standard_reports_SOURCES} ${scm_test_report_SUPPORT})
|
||||
|
Loading…
Reference in New Issue
Block a user