Add the python script for LAPACK Summary output to CTEST
authorjulie <julielangou@users.noreply.github.com>
Thu, 5 Apr 2012 05:47:38 +0000 (05:47 +0000)
committerjulie <julielangou@users.noreply.github.com>
Thu, 5 Apr 2012 05:47:38 +0000 (05:47 +0000)
CMakeLists.txt
TESTING/CMakeLists.txt

index 773243273bbe00dc863290ef038a2a6e07072a6f..f0f9cd1fa392dd8ce9c9bc14d549280b235fc0af 100644 (file)
@@ -20,7 +20,12 @@ if (UNIX)
    STRING(REPLACE \;mtsk\; \; CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES "${CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES}")
 endif ()
 
-
+# Get Python
+find_package(PythonInterp)
+message(STATUS "Looking for Python found - ${PYTHONINTERP_FOUND}")
+if (PYTHONINTERP_FOUND)
+   message(STATUS "Using Python version ${PYTHON_VERSION_STRING}")
+endif()
 # --------------------------------------------------
 
 # On Windows-GNU builds try to provide MS import libraries too.
index b073ac2cbf25f4985c223cb532c38b25a0c03f92..9025a98dcf621032bc212014908da3edddec4117 100644 (file)
@@ -310,3 +310,8 @@ 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"
+ )