Simplify handling and non-splitted tests and include split_test_helper.h instead of re-generating it. This also allows us to modify it without breaking existing build folder.

This commit is contained in:
Gael Guennebaud
2018-07-16 18:55:40 +02:00
parent 901c7d31f0
commit add5757488
5 changed files with 6016 additions and 34 deletions

View File

@@ -0,0 +1,11 @@
#!cmake -P
file(WRITE split_test_helper.h "")
foreach(i RANGE 1 999)
file(APPEND split_test_helper.h
"#if defined(EIGEN_TEST_PART_${i}) || defined(EIGEN_TEST_PART_ALL)\n"
"#define CALL_SUBTEST_${i}(FUNC) CALL_SUBTEST(FUNC)\n"
"#else\n"
"#define CALL_SUBTEST_${i}(FUNC)\n"
"#endif\n\n"
)
endforeach()