MathTestScript.cmake 403 B

123456789101112131415161718
  1. message(STATUS "testname='${testname}'")
  2. if(testname STREQUAL empty) # fail
  3. math()
  4. elseif(testname STREQUAL bogus) # fail
  5. math(BOGUS)
  6. elseif(testname STREQUAL not_enough_args) # fail
  7. math(EXPR x)
  8. elseif(testname STREQUAL cannot_parse) # fail
  9. math(EXPR x "1 + 2 +")
  10. else() # fail
  11. message(FATAL_ERROR "testname='${testname}' - error: no such test in '${CMAKE_CURRENT_LIST_FILE}'")
  12. endif()