Panagiotis Christopoulos Charitos 781a476498 Add ray_tracing_position_fetch support 9 months ago
..
OpExtInst_in_dst_only_autogen.cpp a089b63617 Bye GLSL bye glslang 2 years ago
OpExtInst_in_dst_only_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
OpExtInst_in_dst_only_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
OpExtInst_in_src_only_autogen.cpp 781a476498 Add ray_tracing_position_fetch support 9 months ago
OpExtInst_in_src_only_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
OpExtInst_in_src_only_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
OpTypeForwardPointer_basic_autogen.cpp a089b63617 Bye GLSL bye glslang 2 years ago
OpTypeForwardPointer_basic_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
OpTypeForwardPointer_basic_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
OpTypeForwardPointer_intertwined_autogen.cpp a089b63617 Bye GLSL bye glslang 2 years ago
OpTypeForwardPointer_intertwined_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
OpTypeForwardPointer_intertwined_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
OpTypeForwardPointer_mismatching_class_autogen.cpp a089b63617 Bye GLSL bye glslang 2 years ago
OpTypeForwardPointer_mismatching_class_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
OpTypeForwardPointer_mismatching_class_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
OpTypeForwardPointer_mismatching_type_autogen.cpp a089b63617 Bye GLSL bye glslang 2 years ago
OpTypeForwardPointer_mismatching_type_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
OpTypeForwardPointer_mismatching_type_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
OpTypeForwardPointer_nested_autogen.cpp a089b63617 Bye GLSL bye glslang 2 years ago
OpTypeForwardPointer_nested_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
OpTypeForwardPointer_nested_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
OpTypeForwardPointer_onesided_debug_autogen.cpp a089b63617 Bye GLSL bye glslang 2 years ago
OpTypeForwardPointer_onesided_debug_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
OpTypeForwardPointer_onesided_debug_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
README.md a089b63617 Bye GLSL bye glslang 2 years ago
basic_autogen.cpp 781a476498 Add ray_tracing_position_fetch support 9 months ago
basic_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
basic_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
constant_array_size_autogen.cpp 781a476498 Add ray_tracing_position_fetch support 9 months ago
constant_array_size_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
constant_array_size_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
diff_test_files_autogen.cmake 781a476498 Add ray_tracing_position_fetch support 9 months ago
different_decorations_fragment_autogen.cpp 781a476498 Add ray_tracing_position_fetch support 9 months ago
different_decorations_fragment_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
different_decorations_fragment_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
different_decorations_vertex_autogen.cpp 781a476498 Add ray_tracing_position_fetch support 9 months ago
different_decorations_vertex_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
different_decorations_vertex_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
different_function_parameter_count_autogen.cpp 781a476498 Add ray_tracing_position_fetch support 9 months ago
different_function_parameter_count_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
different_function_parameter_count_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
extra_if_block_autogen.cpp 781a476498 Add ray_tracing_position_fetch support 9 months ago
extra_if_block_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
extra_if_block_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
function_group_by_full_type_autogen.cpp 781a476498 Add ray_tracing_position_fetch support 9 months ago
function_group_by_full_type_dst.spvasm 781a476498 Add ray_tracing_position_fetch support 9 months ago
function_group_by_full_type_src.spvasm 781a476498 Add ray_tracing_position_fetch support 9 months ago
function_group_by_mapped_id_autogen.cpp 781a476498 Add ray_tracing_position_fetch support 9 months ago
function_group_by_mapped_id_dst.spvasm 781a476498 Add ray_tracing_position_fetch support 9 months ago
function_group_by_mapped_id_src.spvasm 781a476498 Add ray_tracing_position_fetch support 9 months ago
generate_tests.py a089b63617 Bye GLSL bye glslang 2 years ago
index_signedness_autogen.cpp a089b63617 Bye GLSL bye glslang 2 years ago
index_signedness_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
index_signedness_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
int_vs_uint_constants_autogen.cpp 781a476498 Add ray_tracing_position_fetch support 9 months ago
int_vs_uint_constants_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
int_vs_uint_constants_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
large_functions_large_diffs_autogen.cpp a089b63617 Bye GLSL bye glslang 2 years ago
large_functions_large_diffs_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
large_functions_large_diffs_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
large_functions_small_diffs_autogen.cpp a089b63617 Bye GLSL bye glslang 2 years ago
large_functions_small_diffs_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
large_functions_small_diffs_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
multiple_different_entry_points_autogen.cpp a089b63617 Bye GLSL bye glslang 2 years ago
multiple_different_entry_points_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
multiple_different_entry_points_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
multiple_same_entry_points_autogen.cpp 781a476498 Add ray_tracing_position_fetch support 9 months ago
multiple_same_entry_points_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
multiple_same_entry_points_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
ray_query_types_autogen.cpp 781a476498 Add ray_tracing_position_fetch support 9 months ago
ray_query_types_dst.spvasm 781a476498 Add ray_tracing_position_fetch support 9 months ago
ray_query_types_src.spvasm 781a476498 Add ray_tracing_position_fetch support 9 months ago
reordered_if_blocks_autogen.cpp 781a476498 Add ray_tracing_position_fetch support 9 months ago
reordered_if_blocks_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
reordered_if_blocks_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
reordered_switch_blocks_autogen.cpp 781a476498 Add ray_tracing_position_fetch support 9 months ago
reordered_switch_blocks_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
reordered_switch_blocks_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
small_functions_small_diffs_autogen.cpp a089b63617 Bye GLSL bye glslang 2 years ago
small_functions_small_diffs_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
small_functions_small_diffs_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
spec_constant_array_size_autogen.cpp 781a476498 Add ray_tracing_position_fetch support 9 months ago
spec_constant_array_size_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
spec_constant_array_size_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
spec_constant_composite_autogen.cpp a089b63617 Bye GLSL bye glslang 2 years ago
spec_constant_composite_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
spec_constant_composite_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
spec_constant_op_autogen.cpp a089b63617 Bye GLSL bye glslang 2 years ago
spec_constant_op_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
spec_constant_op_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
spec_constant_specid_autogen.cpp a089b63617 Bye GLSL bye glslang 2 years ago
spec_constant_specid_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
spec_constant_specid_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
string_in_ext_inst_autogen.cpp 781a476498 Add ray_tracing_position_fetch support 9 months ago
string_in_ext_inst_dst.spvasm 781a476498 Add ray_tracing_position_fetch support 9 months ago
string_in_ext_inst_src.spvasm 781a476498 Add ray_tracing_position_fetch support 9 months ago
unrelated_shaders_autogen.cpp a089b63617 Bye GLSL bye glslang 2 years ago
unrelated_shaders_dst.spvasm a089b63617 Bye GLSL bye glslang 2 years ago
unrelated_shaders_src.spvasm a089b63617 Bye GLSL bye glslang 2 years ago

README.md

Diff tests

This directory contains files used to ensure correctness of the spirv-diff implementation. The generate_tests.py script takes name_src.spvasm and name_dst.spvasm (for each name) and produces unit test files in the form of name_autogen.cpp.

The unit test files test the diff between the src and dst inputs, as well as between debug-stripped versions of those. Additionally, based on the {variant}_TESTS lists defined in generate_tests.py, extra unit tests are added to exercise different options of spirv-diff.

New tests are added simply by placing a new name_src.spvasm and name_dst.spvasm pair in this directory and running generate_tests.py. Note that this script needs the path to the spirv-diff executable that is built.

The generate_tests.py script additionally expects name_src.spvasm to include a heading where the purpose of the test is explained. This heading is parsed as a block of lines starting with ;; at the top of the file.