<commit_before>## ======================================================================== ##
## Copyright 2009-2018 Intel Corporation                                    ##
##                                                                          ##
## Licensed under the Apache License, Version 2.0 (the "License");          ##
## you may not use this file except in compliance with the License.         ##
## You may obtain a copy of the License at                                  ##
##                                                                          ##
##     http://www.apache.org/licenses/LICENSE-2.0                           ##
##                                                                          ##
## Unless required by applicable law or agreed to in writing, software      ##
## distributed under the License is distributed on an "AS IS" BASIS,        ##
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ##
## See the License for the specific language governing permissions and      ##
## limitations under the License.                                           ##
## ======================================================================== ##

INCLUDE(tutorial)
ADD_TUTORIAL(next_hit)

MACRO (ALL_HITS_TEST name model max_next_hits      )
  ADD_TEST(NAME next_hit_${name}_${max_next_hits} COMMAND next_hit -c ${EMBREE_MODEL_DIR}/${model} -c ${EMBREE_MODEL_DIR}/${model} --verify --max_next_hits ${max_next_hits} --max_total_hits 1024 ${ARGN} --shader default -o test.tga)
ENDMACRO ()

IF (EMBREE_TESTING_INTENSITY GREATER 1)
  ALL_HITS_TEST(triangle_robust_crown crown/crown.ecs 1)
  ALL_HITS_TEST(triangle_robust_crown crown/crown.ecs 2)
  ALL_HITS_TEST(triangle_robust_crown crown/crown.ecs 3)
  ALL_HITS_TEST(triangle_robust_crown crown/crown.ecs 4)
  ALL_HITS_TEST(quads_robust_crown crown/crown.ecs 1 --convert_triangles_to_quads)
  ALL_HITS_TEST(grids_robust_crown crown/crown.ecs 1 --convert_triangles_to_grids)
  ALL_HITS_TEST(flat_curve_robust_tighten tighten/tighten.ecs 1)
  ALL_HITS_TEST(flat_curve_robust curves/hair0.ecs 1)
#  ALL_HITS_TEST(round_curve_robust curves/hair0.ecs 1 --convert-flat-to-round-curves)<commit_msg>disabled some all_hits tests under Win32<commit_after>## ======================================================================== ##
## Copyright 2009-2018 Intel Corporation                                    ##
##                                                                          ##
## Licensed under the Apache License, Version 2.0 (the "License");          ##
## you may not use this file except in compliance with the License.         ##
## You may obtain a copy of the License at                                  ##
##                                                                          ##
##     http://www.apache.org/licenses/LICENSE-2.0                           ##
##                                                                          ##
## Unless required by applicable law or agreed to in writing, software      ##
## distributed under the License is distributed on an "AS IS" BASIS,        ##
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ##
## See the License for the specific language governing permissions and      ##
## limitations under the License.                                           ##
## ======================================================================== ##

INCLUDE(tutorial)
ADD_TUTORIAL(next_hit)

MACRO (ALL_HITS_TEST name model max_next_hits)
  ADD_TEST(NAME next_hit_${name}_${max_next_hits} COMMAND next_hit -c ${EMBREE_MODEL_DIR}/${model} -c ${EMBREE_MODEL_DIR}/${model} --verify --max_next_hits ${max_next_hits} --max_total_hits 1024 ${ARGN} --shader default -o test.tga)
ENDMACRO ()

IF (EMBREE_TESTING_INTENSITY GREATER 1)
  IF (CMAKE_SIZEOF_VOID_P EQUAL 8) # FIXME: these cause out of memory under Win32
    ALL_HITS_TEST(triangle_robust_crown crown/crown.ecs 1)
    ALL_HITS_TEST(triangle_robust_crown crown/crown.ecs 2)
    ALL_HITS_TEST(triangle_robust_crown crown/crown.ecs 3)
    ALL_HITS_TEST(triangle_robust_crown crown/crown.ecs 4)
    ALL_HITS_TEST(quads_robust_crown crown/crown.ecs 1 --convert_triangles_to_quads)
    ALL_HITS_TEST(grids_robust_crown crown/crown.ecs 1 --convert_triangles_to_grids)
  ENDIF()
  ALL_HITS_TEST(flat_curve_robust_tighten tighten/tighten.ecs 1)
  ALL_HITS_TEST(flat_curve_robust curves/hair0.ecs 1)
#  ALL_HITS_TEST(round_curve_robust curves/hair0.ecs 1 --convert-flat-to-round-curves)
{'fraction_non_alphanumeric': 0.14719574373753047, 'fraction_numerical': 0.013522500554200843, 'mean_word_length': 2.3873873873873874, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 26, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4649170', 'n_tokens_mistral': 1349, 'n_tokens_neox': 1240, 'n_words': 303}