"Fossies" - the Fresh Open Source Software Archive

Member "darktable-2.6.3/src/external/rawspeed/fuzz/corpora/CMakeLists.txt" (19 Oct 2019, 950 Bytes) of package /linux/misc/darktable-2.6.3.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "CMakeLists.txt": 2.6.2_vs_2.6.3.

    1 file(GLOB_RECURSE CORPORA_ROOTS FOLLOW_SYMLINKS "${CMAKE_CURRENT_SOURCE_DIR}/**/timestamp.txt")
    2 foreach(TOP_CORPORA_DIR ${CORPORA_ROOTS})
    3   get_filename_component(TOP_CORPORA_DIRS "${TOP_CORPORA_DIR}" DIRECTORY)
    4   file(GLOB CORPORAS FOLLOW_SYMLINKS "${TOP_CORPORA_DIRS}/*")
    5 
    6   foreach(CORPORA ${CORPORAS})
    7     if(IS_DIRECTORY "${CORPORA}")
    8       get_filename_component(dirname "${CORPORA}" NAME)
    9       list(FIND ALL_FUZZERS "${dirname}" IsFuzzerName)
   10 
   11       if(NOT IsFuzzerName EQUAL -1)
   12         # get all the files
   13         file(GLOB_RECURSE CORPUSES RELATIVE "${CORPORA}" FOLLOW_SYMLINKS "${CORPORA}/*")
   14 
   15         set(test "corpora/${dirname}")
   16         rawspeed_add_test(NAME ${test}
   17           COMMAND ${dirname} ${CORPUSES}
   18           WORKING_DIRECTORY "${CORPORA}")
   19         set_tests_properties(${test} PROPERTIES DEPENDS ${dirname})
   20         set_tests_properties(${test} PROPERTIES TIMEOUT 300)
   21       endif()
   22     endif()
   23   endforeach()
   24 endforeach()