test_properties.cmake 493 B

1234567891011121314151617
  1. function (check_test_property test prop)
  2. get_test_property("${test}" "${prop}" gtp_val)
  3. get_property(gp_val
  4. TEST "${test}"
  5. PROPERTY "${prop}")
  6. message("get_test_property: -->${gtp_val}<--")
  7. message("get_property: -->${gp_val}<--")
  8. endfunction ()
  9. include(CTest)
  10. add_test(NAME test COMMAND "${CMAKE_COMMAND}" --help)
  11. set_tests_properties(test PROPERTIES empty "" custom value)
  12. check_test_property(test empty)
  13. check_test_property(test custom)
  14. check_test_property(test noexist)