From 6c1b91678b5406fb10fe5d4692014f8017d1cf1c Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 19 Oct 2009 14:40:35 -0400 Subject: kill ei_add_test_multi. Now the macro ei_add_test does all that automatically, by parsing the source file. No risk anymore to specify the wrong number of tests! Also, introduce CALL_SUBTESTX for X=1..10 that allows to port existing code much quicker. And port already the product* and eigensolver* files. --- test/lu.cpp | 44 +++++++++++++++++++++----------------------- 1 file changed, 21 insertions(+), 23 deletions(-) (limited to 'test/lu.cpp') diff --git a/test/lu.cpp b/test/lu.cpp index 1dd78bb46..1813172cd 100644 --- a/test/lu.cpp +++ b/test/lu.cpp @@ -153,28 +153,26 @@ template void lu_verify_assert() void test_lu() { for(int i = 0; i < g_repeat; i++) { -#if defined EIGEN_TEST_PART_1 - CALL_SUBTEST( lu_non_invertible() ); - CALL_SUBTEST( lu_verify_assert() ); -#elif defined EIGEN_TEST_PART_2 - CALL_SUBTEST( (lu_non_invertible >()) ); - CALL_SUBTEST( (lu_verify_assert >()) ); -#elif defined EIGEN_TEST_PART_3 - CALL_SUBTEST( lu_non_invertible() ); - CALL_SUBTEST( lu_invertible() ); - CALL_SUBTEST( lu_verify_assert() ); -#elif defined EIGEN_TEST_PART_4 - CALL_SUBTEST( lu_non_invertible() ); - CALL_SUBTEST( lu_invertible() ); - CALL_SUBTEST( lu_verify_assert() ); -#elif defined EIGEN_TEST_PART_5 - CALL_SUBTEST( lu_non_invertible() ); - CALL_SUBTEST( lu_invertible() ); - CALL_SUBTEST( lu_verify_assert() ); -#elif defined EIGEN_TEST_PART_6 - CALL_SUBTEST( lu_non_invertible() ); - CALL_SUBTEST( lu_invertible() ); - CALL_SUBTEST( lu_verify_assert() ); -#endif + CALL_SUBTEST1( lu_non_invertible() ); + CALL_SUBTEST1( lu_verify_assert() ); + + CALL_SUBTEST2( (lu_non_invertible >()) ); + CALL_SUBTEST2( (lu_verify_assert >()) ); + + CALL_SUBTEST3( lu_non_invertible() ); + CALL_SUBTEST3( lu_invertible() ); + CALL_SUBTEST3( lu_verify_assert() ); + + CALL_SUBTEST4( lu_non_invertible() ); + CALL_SUBTEST4( lu_invertible() ); + CALL_SUBTEST4( lu_verify_assert() ); + + CALL_SUBTEST5( lu_non_invertible() ); + CALL_SUBTEST5( lu_invertible() ); + CALL_SUBTEST5( lu_verify_assert() ); + + CALL_SUBTEST6( lu_non_invertible() ); + CALL_SUBTEST6( lu_invertible() ); + CALL_SUBTEST6( lu_verify_assert() ); } } -- cgit v1.2.3