MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / generate_cmake

Function generate_cmake

test/diff/diff_files/generate_tests.py:271–278  ·  view source on GitHub ↗
(test_files)

Source from the content-addressed store, hash-verified

269 return [generate_test(diff_tool, test_name) for test_name in test_names]
270
271def generate_cmake(test_files):
272 cmake = TEMPLATE_TEST_FILES_CMAKE.format(
273 script_name = os.path.basename(__file__),
274 license = make_comment(LICENSE, '#'),
275 test_files = '\n'.join(['"diff_files/{}"'.format(f) for f in test_files]))
276
277 with open('diff_test_files_autogen.cmake', 'wb') as fout:
278 fout.write(str.encode(cmake))
279
280def main():
281

Callers 1

mainFunction · 0.85

Calls 2

make_commentFunction · 0.85
formatMethod · 0.80

Tested by

no test coverage detected