From f4d1461874879f249f1f45c111ca238f2ee51831 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 8 Jun 2018 09:55:46 +0200 Subject: Fix the way matrix folder is passed to the tests. --- test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/CMakeLists.txt') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index e1eef086e..af4fa73e4 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -47,7 +47,7 @@ set(EIGEN_TEST_MATRIX_DIR "" CACHE STRING "Enable testing of realword sparse mat if(EIGEN_TEST_MATRIX_DIR) if(NOT WIN32) message(STATUS "Test realworld sparse matrices: ${EIGEN_TEST_MATRIX_DIR}") - add_definitions( -DTEST_REAL_CASES=${EIGEN_TEST_MATRIX_DIR} ) + add_definitions( -DTEST_REAL_CASES="${EIGEN_TEST_MATRIX_DIR}" ) else(NOT WIN32) message(STATUS "REAL CASES CAN NOT BE CURRENTLY TESTED ON WIN32") endif(NOT WIN32) -- cgit v1.2.3 From cb4c9a6a9459a1c9bee1b22cabb5e8aa154968d9 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 8 Jun 2018 17:11:45 +0200 Subject: bug #1531: make dedicatd unit testing for NumDimensions --- test/CMakeLists.txt | 1 + test/mapped_matrix.cpp | 48 -------------------------- test/num_dimensions.cpp | 90 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 91 insertions(+), 48 deletions(-) create mode 100644 test/num_dimensions.cpp (limited to 'test/CMakeLists.txt') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index af4fa73e4..ab3ff4795 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -292,6 +292,7 @@ ei_add_test(mpl2only) ei_add_test(inplace_decomposition) ei_add_test(half_float) ei_add_test(array_of_string) +ei_add_test(num_dimensions) add_executable(bug1213 bug1213.cpp bug1213_main.cpp) diff --git a/test/mapped_matrix.cpp b/test/mapped_matrix.cpp index b9f36d8d6..7b9e1fe52 100644 --- a/test/mapped_matrix.cpp +++ b/test/mapped_matrix.cpp @@ -181,49 +181,6 @@ void map_not_aligned_on_scalar() internal::aligned_delete(array1, (size+1)*(size+1)+1); } -#if EIGEN_HAS_CXX11 -template