MCPcopy Create free account
hub / github.com/RenderKit/embree / runConfig

Function runConfig

scripts/test.py:71–431  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

69
70# configures tests for specified host machine
71def 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"):

Callers 1

test.pyFile · 0.85

Calls 5

escapeFunction · 0.85
appendMethod · 0.80
joinMethod · 0.80
parse_versionFunction · 0.70
typeFunction · 0.50

Tested by

no test coverage detected