google / graphicsfuzz

A testing framework for automatically finding and simplifying bugs in graphics shader compilers.
Apache License 2.0
561 stars 117 forks source link

Refactor fuzz_glsl/spirv_test files in gfauto #1161

Closed afd closed 2 years ago

afd commented 2 years ago

Refactors the files that take care of GLSL and SPIR-V fuzzing in gfauto to (a) make them Amber-specific (paving the way for new ShaderTrap-related files in the future), and (b) prevent them from depending on one another by extracting common functionality to a utilty file.

Also fixes a minor style issue where a variable was named "match", which was leading to a warning in PyCharm.

Related issue: #1160.