1message(STATUS "Running the failtests") 2 3ei_add_failtest("failtest_sanity_check") 4 5ei_add_failtest("block_nonconst_ctor_on_const_xpr_0") 6ei_add_failtest("block_nonconst_ctor_on_const_xpr_1") 7ei_add_failtest("block_nonconst_ctor_on_const_xpr_2") 8ei_add_failtest("transpose_nonconst_ctor_on_const_xpr") 9ei_add_failtest("diagonal_nonconst_ctor_on_const_xpr") 10 11ei_add_failtest("const_qualified_block_method_retval_0") 12ei_add_failtest("const_qualified_block_method_retval_1") 13ei_add_failtest("const_qualified_transpose_method_retval") 14ei_add_failtest("const_qualified_diagonal_method_retval") 15 16ei_add_failtest("map_nonconst_ctor_on_const_ptr_0") 17ei_add_failtest("map_nonconst_ctor_on_const_ptr_1") 18ei_add_failtest("map_nonconst_ctor_on_const_ptr_2") 19ei_add_failtest("map_nonconst_ctor_on_const_ptr_3") 20ei_add_failtest("map_nonconst_ctor_on_const_ptr_4") 21 22ei_add_failtest("map_on_const_type_actually_const_0") 23ei_add_failtest("map_on_const_type_actually_const_1") 24ei_add_failtest("block_on_const_type_actually_const_0") 25ei_add_failtest("block_on_const_type_actually_const_1") 26ei_add_failtest("transpose_on_const_type_actually_const") 27ei_add_failtest("diagonal_on_const_type_actually_const") 28 29ei_add_failtest("ref_1") 30ei_add_failtest("ref_2") 31ei_add_failtest("ref_3") 32ei_add_failtest("ref_4") 33ei_add_failtest("ref_5") 34 35if (EIGEN_FAILTEST_FAILURE_COUNT) 36 message(FATAL_ERROR 37 "${EIGEN_FAILTEST_FAILURE_COUNT} out of ${EIGEN_FAILTEST_COUNT} failtests FAILED. " 38 "To debug these failures, manually compile these programs in ${CMAKE_CURRENT_SOURCE_DIR}, " 39 "with and without #define EIGEN_SHOULD_FAIL_TO_BUILD.") 40else() 41 message(STATUS "Failtest SUCCESS: all ${EIGEN_FAILTEST_COUNT} failtests passed.") 42 message(STATUS "") 43endif() 44