| 69 | |
| 70 | # configures tests for specified host machine |
| 71 | def runConfig(config): |
| 72 | |
| 73 | conf = [] # CMake configuration |
| 74 | env = [] # shell environment |
| 75 | rtcore = [] # rtcore configuration |
| 76 | |
| 77 | build = config["build"] |
| 78 | conf.append("-D CMAKE_BUILD_TYPE="+build+"") |
| 79 | |
| 80 | cmake_build_suffix = "" |
| 81 | threads = "0" |
| 82 | |
| 83 | if "threads" in config: |
| 84 | threads = config["threads"] |
| 85 | |
| 86 | # TODO: not used in any of the workflow definitions |
| 87 | if "memcheck" in config: |
| 88 | conf.append("-D EMBREE_TESTING_MEMCHECK="+config["memcheck"]+"") |
| 89 | |
| 90 | # TODO: this is not used anywhere in embree cmake... |
| 91 | if "sde" in config: |
| 92 | conf.append("-D EMBREE_TESTING_SDE="+config["sde"]+"") |
| 93 | |
| 94 | if "addrsanitizer" in config: |
| 95 | conf.append("-D EMBREE_ADDRESS_SANITIZER="+config["addrsanitizer"]+"") |
| 96 | |
| 97 | if "intensity" in config: |
| 98 | g_intensity = config["intensity"] |
| 99 | else: |
| 100 | g_intensity = 2 |
| 101 | |
| 102 | if "klocwork" in config: |
| 103 | conf.append("-D EMBREE_TESTING_KLOCWORK="+config["klocwork"]) |
| 104 | |
| 105 | if "L0RTAS" in config: |
| 106 | conf.append("-D EMBREE_SYCL_L0_RTAS_BUILDER="+config["L0RTAS"]) |
| 107 | |
| 108 | if "package" in config: |
| 109 | conf.append("-D EMBREE_STACK_PROTECTOR=ON") |
| 110 | |
| 111 | if "maxinstancelevelcount" in config: |
| 112 | conf.append("-D EMBREE_MAX_INSTANCE_LEVEL_COUNT="+config["maxinstancelevelcount"]) |
| 113 | |
| 114 | enable_sycl_support = False |
| 115 | if "EMBREE_SYCL_SUPPORT" in config: |
| 116 | enable_sycl_support = True |
| 117 | conf.append("-D EMBREE_SYCL_SUPPORT="+config["EMBREE_SYCL_SUPPORT"]) |
| 118 | conf.append("-D EMBREE_TESTING_ONLY_SYCL_TESTS=ON") |
| 119 | |
| 120 | #if "package" in config and OS == 'linux': # we need up to date cmake for RPMs to work properly |
| 121 | compiler = config["compiler"] |
| 122 | platform = config["platform"] |
| 123 | if OS == "windows": |
| 124 | cmake_build_suffix = "-- /m /t:rebuild" |
| 125 | ext = "" |
| 126 | if platform == "x64": |
| 127 | ext = " Win64" |
| 128 | if (compiler == "V142"): |