diff options
author | Gael Guennebaud <g.gael@free.fr> | 2018-07-16 18:55:40 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2018-07-16 18:55:40 +0200 |
commit | add57574881f7389ce4a3f82934907420945b0f4 (patch) | |
tree | 392ff798a1f541c0fe412ae46058cc84250b177c /scripts | |
parent | 901c7d31f026cce75816cf5d954e42f22f6f5691 (diff) |
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.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/eigen_gen_split_test_help.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/eigen_gen_split_test_help.cmake b/scripts/eigen_gen_split_test_help.cmake new file mode 100644 index 000000000..e43f5aabe --- /dev/null +++ b/scripts/eigen_gen_split_test_help.cmake @@ -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()
\ No newline at end of file |