aboutsummaryrefslogtreecommitdiff
path: root/TESTING
diff options
context:
space:
mode:
authorHans Johnson <hans-johnson@uiowa.edu>2016-07-29 06:06:50 -0500
committerHans Johnson <hans-johnson@uiowa.edu>2016-07-29 06:10:08 -0500
commitc6e24106168f718376372fb85e8ef4b232412903 (patch)
tree29a9b4950bbc7c7f946b3bbf6dd9adb11c895397 /TESTING
parent86f6b1e63e1e884866fda2167499fb98410384fb (diff)
ENH: Only run python summary tests with compatible versions
The summary tests python script requires features that are only available in python 2.7 and greater. If the python version is insufficient, simply disable the summary tests. This was identified on a nightly dashboard build zoot.icl.utk.edu where the python version found is 2.4.
Diffstat (limited to 'TESTING')
-rw-r--r--TESTING/CMakeLists.txt17
1 files changed, 10 insertions, 7 deletions
diff --git a/TESTING/CMakeLists.txt b/TESTING/CMakeLists.txt
index 2d587376..cf710ee7 100644
--- a/TESTING/CMakeLists.txt
+++ b/TESTING/CMakeLists.txt
@@ -307,10 +307,13 @@ if (BUILD_COMPLEX)
endif()
# ==============================================================================
-
-execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${LAPACK_SOURCE_DIR}/lapack_testing.py ${LAPACK_BINARY_DIR})
- add_test(
- NAME LAPACK_Test_Summary
- WORKING_DIRECTORY ${LAPACK_BINARY_DIR}
- COMMAND ${PYTHON_EXECUTABLE} "lapack_testing.py"
- )
+# Only run this test if python 2.7 or greater is found
+if(PYTHONINTERP_FOUND)
+ message(STATUS "Running Summary")
+ execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${LAPACK_SOURCE_DIR}/lapack_testing.py ${LAPACK_BINARY_DIR})
+ add_test(
+ NAME LAPACK_Test_Summary
+ WORKING_DIRECTORY ${LAPACK_BINARY_DIR}
+ COMMAND ${PYTHON_EXECUTABLE} "lapack_testing.py"
+ )
+endif()