KhronosGroup / SPIRV-Tools

Apache License 2.0
1.06k stars 549 forks source link

spirv-fuzz: Add tests for fuzzer_util.cpp #3493

Open Vasniktel opened 4 years ago

Vasniktel commented 4 years ago

fuzzer_util.cpp has many functions that change SPIR-V module. These include Add* functions (e.g. AddVectorType and others). It would be good to have some tests for them.

afd commented 3 years ago

@Vasniktel Perhaps this could be split into several "good first issue"s.

Vasniktel commented 3 years ago

Agreed. However, there are a lot of functions in fuzzerutil::. It might be better to have a single issue for this and instead make multiple PRs to fix it. We could split PRs as follows:

There are some trivial functions there, though, which we could probably ignore (e.g. FloatToWord, RepeatedUInt32PairToMap, InstructionHasNoSideEffects and maybe others).

@afd, what do you think?

Vasniktel commented 3 years ago

I've created to separate issues for Add* functions and MaybeGet* functions: #4178 #4179.

Thus, we can focus this issue on writing tests for the following functions: