Skip to content

Commit

Permalink
allow overriding of EMBREE_TESTING_INTENSITY for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
freibold committed Feb 9, 2024
1 parent 94a55e6 commit daa8de0
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions tests/CMakeLists.txt
Expand Up @@ -49,7 +49,15 @@ IF (EMBREE_TESTING_INSTALL_TESTS)
"\n"
"project(embree-testing)\n"
"\n"
"# allowing EMBREE_TESTING_INTENSITY to be overriden\n"
"unset(TESTING_INTENSITY_SAVE CACHE)\n"
"set(TESTING_INTENSITY_SAVE ${EMBREE_TESTING_INTENSITY})\n"
"unset(EMBREE_TESTING_INTENSITY CACHE)\n"
"include(\"../${CMAKE_INSTALL_LIBDIR}/cmake/embree-${EMBREE_VERSION}/embree-config.cmake\")\n"
"if (DEFINED TESTING_INTENSITY_SAVE)\n"
" set(EMBREE_TESTING_INTENSITY \${TESTING_INTENSITY_SAVE})\n"
"endif()\n"
"\n"
"\n"
"SET(EMBREE_TESTING_PACKAGE_TEST_PROJECT ON)\n"
"SET(EMBREE_INSTALL_BINDIR ${CMAKE_INSTALL_BINDIR})\n"
Expand All @@ -67,20 +75,20 @@ IF (EMBREE_TESTING_INSTALL_TESTS)
" endif()\n"
"endif()\n"
"\n"
"message(\"filter: \\\"${EMBREE_TESTING_FILTER_TESTNAMES}\"\\\")\n"
"message(\"BUILD_TESTING: \\\"\${BUILD_TESTING}\"\\\")\n"
"message(\"EMBREE_TESTING_INSTALL_TESTS: \\\"\${EMBREE_TESTING_INSTALL_TESTS}\"\\\")\n"
"message(\"EMBREE_SYCL_SUPPORT: \\\"\${EMBREE_SYCL_SUPPORT}\"\\\")\n"
"message(\"EMBREE_TESTING_ONLY_SYCL_TESTS: \\\"\${EMBREE_TESTING_ONLY_SYCL_TESTS}\"\\\")\n"

"message(\"EMBREE_GEOMETRY_TRIANGLE: \\\"\${EMBREE_GEOMETRY_TRIANGLE}\"\\\")\n"
"message(\"EMBREE_GEOMETRY_QUAD: \\\"\${EMBREE_GEOMETRY_QUAD}\"\\\")\n"
"message(\"EMBREE_GEOMETRY_GRID: \\\"\${EMBREE_GEOMETRY_GRID}\"\\\")\n"
"message(\"EMBREE_GEOMETRY_CURVE: \\\"\${EMBREE_GEOMETRY_CURVE}\"\\\")\n"
"message(\"EMBREE_GEOMETRY_SUBDIVISION: \\\"\${EMBREE_GEOMETRY_SUBDIVISION}\"\\\")\n"
"message(\"EMBREE_GEOMETRY_USER: \\\"\${EMBREE_GEOMETRY_USER}\"\\\")\n"
"message(\"EMBREE_GEOMETRY_INSTANCE: \\\"\${EMBREE_GEOMETRY_INSTANCE}\"\\\")\n"
"message(\"EMBREE_GEOMETRY_INSTANCE_ARRAY: \\\"\${EMBREE_GEOMETRY_INSTANCE_ARRAY}\"\\\")\n"
"message(\"filter: \\\"${EMBREE_TESTING_FILTER_TESTNAMES}\\\"\")\n"
"message(\"BUILD_TESTING: \\\"\${BUILD_TESTING}\\\"\")\n"
"message(\"EMBREE_TESTING_INSTALL_TESTS: \\\"\${EMBREE_TESTING_INSTALL_TESTS}\\\"\")\n"
"message(\"EMBREE_SYCL_SUPPORT: \\\"\${EMBREE_SYCL_SUPPORT}\\\"\")\n"
"message(\"EMBREE_TESTING_INTENSITY: \\\"\${EMBREE_TESTING_INTENSITY}\\\"\")\n"
"message(\"EMBREE_TESTING_ONLY_SYCL_TESTS: \\\"\${EMBREE_TESTING_ONLY_SYCL_TESTS}\\\"\")\n"
"message(\"EMBREE_GEOMETRY_TRIANGLE: \\\"\${EMBREE_GEOMETRY_TRIANGLE}\\\"\")\n"
"message(\"EMBREE_GEOMETRY_QUAD: \\\"\${EMBREE_GEOMETRY_QUAD}\\\"\")\n"
"message(\"EMBREE_GEOMETRY_GRID: \\\"\${EMBREE_GEOMETRY_GRID}\\\"\")\n"
"message(\"EMBREE_GEOMETRY_CURVE: \\\"\${EMBREE_GEOMETRY_CURVE}\\\"\")\n"
"message(\"EMBREE_GEOMETRY_SUBDIVISION: \\\"\${EMBREE_GEOMETRY_SUBDIVISION}\\\"\")\n"
"message(\"EMBREE_GEOMETRY_USER: \\\"\${EMBREE_GEOMETRY_USER}\\\"\")\n"
"message(\"EMBREE_GEOMETRY_INSTANCE: \\\"\${EMBREE_GEOMETRY_INSTANCE}\\\"\")\n"
"message(\"EMBREE_GEOMETRY_INSTANCE_ARRAY: \\\"\${EMBREE_GEOMETRY_INSTANCE_ARRAY}\\\"\")\n"
"\n"
"include(embree-addtests.cmake)\n"
)
Expand Down

0 comments on commit daa8de0

Please sign in to comment.