# see http://www.vtk.org/Wiki/CMake_Testing_With_CTest#Customizing_CTest
#
-SET(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE 0)
-SET(CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE 0)
-SET(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS 500)
-SET(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 500)
+set(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE 0)
+set(CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE 0)
+set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS 500)
+set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 500)
# Files to explicitly exclude from code coverage
-SET(CTEST_CUSTOM_COVERAGE_EXCLUDE
+set(CTEST_CUSTOM_COVERAGE_EXCLUDE
${CTEST_CUSTOM_COVERAGE_EXCLUDE}
# Exclude the internal BLAS libraries
)
# Warnings to explicitly ignore
-SET(CTEST_CUSTOM_WARNING_EXCEPTION
+set(CTEST_CUSTOM_WARNING_EXCEPTION
${CTEST_CUSTOM_WARNING_EXCEPTION}
# Common warning when linking ATLAS built with GNU Fortran 4.1 and building
# Warnings caused by string truncation in the test code. The truncation is
# intentional
"Character string truncated to length 1 on assignment"
+
+ # Warnings caused by NFS build directories have out-of-sync times
+ "Warning: File .* has modification time .* in the future"
)
-SET(CTEST_CUSTOM_POST_TEST "./lapack_testing.py -s -d TESTING")
\ No newline at end of file
+# Only rung post test if suitable python interpreter was found
+set(PYTHONINTERP_FOUND @PYTHONINTERP_FOUND@)
+set(PYTHON_EXECUTABLE @PYTHON_EXECUTABLE@)
+if(PYTHONINTERP_FOUND)
+ set(CTEST_CUSTOM_POST_TEST "${PYTHON_EXECUTABLE} ./lapack_testing.py -s -d TESTING")
+endif()
+