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