Skip to content

Commit 62bdc9a

Browse files
committed
Option WXM_MAXIMA_DEMO_TESTS to run Maxima demo files as test.
These tests were not created to test (past) wxMaxima issues, but just cost time on the CI. And visual issues can not be seen during the CI test. OFF by default.
1 parent dddb417 commit 62bdc9a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ option(WXM_INTERPROCEDURAL_OPTIMIZATION
5858
"Enable interprocedural optimization (IPO/LTO)." OFF)
5959
option(WXM_PO4A_UPDATE_MANUAL_PO_POT_FILES
6060
"Update the po/pot locale files in the source tree." OFF)
61+
option(WXM_MAXIMA_DEMO_TESTS
62+
"Run Maxima demo files as test." OFF)
6163

6264
if(DEFINED MACOSX_VERSION_MIN)
6365
set(CMAKE_OSX_DEPLOYMENT_TARGET ${MACOSX_VERSION_MIN} CACHE STRING FORCE)

test/CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ add_test(
9595
COMMAND "${CMAKE_CURRENT_BINARY_DIR}/check-wxMathML.sh" "wxbuild_info();" "WxMaxima"
9696
)
9797

98+
# run Maxima demo files as test?
99+
if(WXM_MAXIMA_DEMO_TESTS)
98100
# Tests that use "%" to reference past lines cannot be executed using "load()".
99101
# But running a few demos just to see if there is bit rot might be a good idea.
100102
#
@@ -155,6 +157,7 @@ foreach(f ${DEMO_FILES})
155157
NAME ${f}
156158
COMMAND wxmaxima --debug --logtostderr --pipe --batch automatic_test_files/${f}.wxm)
157159
endforeach()
160+
endif()
158161

159162
add_test(
160163
NAME wxbug_report

0 commit comments

Comments
 (0)