SPIRV-Tools/test/diff/diff_files
Shahbaz Youssefi 9c66587d14
spirv-diff: Update test expectations (#5264)
Seems to have been left out due to submission race condition
2023-06-09 16:28:30 -04:00
..
.gitignore Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
basic_autogen.cpp spirv-diff: Leave undefined ids unpaired. (#5262) 2023-06-09 15:00:46 -04:00
basic_dst.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
basic_src.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
constant_array_size_autogen.cpp spirv-diff: Leave undefined ids unpaired. (#5262) 2023-06-09 15:00:46 -04:00
constant_array_size_dst.spvasm spirv-diff: Handle OpSpecConstant array sizes (#4700) 2022-02-09 09:06:46 -05:00
constant_array_size_src.spvasm spirv-diff: Handle OpSpecConstant array sizes (#4700) 2022-02-09 09:06:46 -05:00
diff_test_files_autogen.cmake spirv-diff: Properly match SPV_KHR_ray_query types. (#5259) 2023-06-08 10:42:45 -04:00
different_decorations_fragment_autogen.cpp Fix pairing of function parameters. (#5225) 2023-05-30 09:30:01 -04:00
different_decorations_fragment_dst.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
different_decorations_fragment_src.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
different_decorations_vertex_autogen.cpp Fix pairing of function parameters. (#5225) 2023-05-30 09:30:01 -04:00
different_decorations_vertex_dst.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
different_decorations_vertex_src.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
different_function_parameter_count_autogen.cpp spirv-diff: Leave undefined ids unpaired. (#5262) 2023-06-09 15:00:46 -04:00
different_function_parameter_count_dst.spvasm spirv-diff: Fix OpTypeFunction matching w.r.t operand count (#4771) 2022-04-01 09:04:26 -04:00
different_function_parameter_count_src.spvasm spirv-diff: Fix OpTypeFunction matching w.r.t operand count (#4771) 2022-04-01 09:04:26 -04:00
extra_if_block_autogen.cpp spirv-diff: Leave undefined ids unpaired. (#5262) 2023-06-09 15:00:46 -04:00
extra_if_block_dst.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
extra_if_block_src.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
generate_tests.py spirv-diff: Basic support for OpTypeForwardPointer (#4761) 2022-03-28 17:01:07 +00:00
index_signedness_autogen.cpp Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
index_signedness_dst.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
index_signedness_src.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
int_vs_uint_constants_autogen.cpp spirv-diff: Leave undefined ids unpaired. (#5262) 2023-06-09 15:00:46 -04:00
int_vs_uint_constants_dst.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
int_vs_uint_constants_src.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
large_functions_large_diffs_autogen.cpp Stabilize the output of spirv-diff (#4698) 2022-02-07 09:37:04 -05:00
large_functions_large_diffs_dst.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
large_functions_large_diffs_src.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
large_functions_small_diffs_autogen.cpp Stabilize the output of spirv-diff (#4698) 2022-02-07 09:37:04 -05:00
large_functions_small_diffs_dst.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
large_functions_small_diffs_src.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
multiple_different_entry_points_autogen.cpp Stabilize the output of spirv-diff (#4698) 2022-02-07 09:37:04 -05:00
multiple_different_entry_points_dst.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
multiple_different_entry_points_src.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
multiple_same_entry_points_autogen.cpp diff: Don't give up entry point matching too early. (#5224) 2023-05-24 15:28:45 -04:00
multiple_same_entry_points_dst.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
multiple_same_entry_points_src.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
OpExtInst_in_dst_only_autogen.cpp Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
OpExtInst_in_dst_only_dst.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
OpExtInst_in_dst_only_src.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
OpExtInst_in_src_only_autogen.cpp spirv-diff: Leave undefined ids unpaired. (#5262) 2023-06-09 15:00:46 -04:00
OpExtInst_in_src_only_dst.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
OpExtInst_in_src_only_src.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
OpTypeForwardPointer_basic_autogen.cpp spirv-diff: Basic support for OpTypeForwardPointer (#4761) 2022-03-28 17:01:07 +00:00
OpTypeForwardPointer_basic_dst.spvasm spirv-diff: Basic support for OpTypeForwardPointer (#4761) 2022-03-28 17:01:07 +00:00
OpTypeForwardPointer_basic_src.spvasm spirv-diff: Basic support for OpTypeForwardPointer (#4761) 2022-03-28 17:01:07 +00:00
OpTypeForwardPointer_intertwined_autogen.cpp spirv-diff: Basic support for OpTypeForwardPointer (#4761) 2022-03-28 17:01:07 +00:00
OpTypeForwardPointer_intertwined_dst.spvasm spirv-diff: Basic support for OpTypeForwardPointer (#4761) 2022-03-28 17:01:07 +00:00
OpTypeForwardPointer_intertwined_src.spvasm spirv-diff: Basic support for OpTypeForwardPointer (#4761) 2022-03-28 17:01:07 +00:00
OpTypeForwardPointer_mismatching_class_autogen.cpp spirv-diff: Basic support for OpTypeForwardPointer (#4761) 2022-03-28 17:01:07 +00:00
OpTypeForwardPointer_mismatching_class_dst.spvasm spirv-diff: Basic support for OpTypeForwardPointer (#4761) 2022-03-28 17:01:07 +00:00
OpTypeForwardPointer_mismatching_class_src.spvasm spirv-diff: Basic support for OpTypeForwardPointer (#4761) 2022-03-28 17:01:07 +00:00
OpTypeForwardPointer_mismatching_type_autogen.cpp spirv-diff: Basic support for OpTypeForwardPointer (#4761) 2022-03-28 17:01:07 +00:00
OpTypeForwardPointer_mismatching_type_dst.spvasm spirv-diff: Basic support for OpTypeForwardPointer (#4761) 2022-03-28 17:01:07 +00:00
OpTypeForwardPointer_mismatching_type_src.spvasm spirv-diff: Basic support for OpTypeForwardPointer (#4761) 2022-03-28 17:01:07 +00:00
OpTypeForwardPointer_nested_autogen.cpp spirv-diff: Basic support for OpTypeForwardPointer (#4761) 2022-03-28 17:01:07 +00:00
OpTypeForwardPointer_nested_dst.spvasm spirv-diff: Basic support for OpTypeForwardPointer (#4761) 2022-03-28 17:01:07 +00:00
OpTypeForwardPointer_nested_src.spvasm spirv-diff: Basic support for OpTypeForwardPointer (#4761) 2022-03-28 17:01:07 +00:00
OpTypeForwardPointer_onesided_debug_autogen.cpp spirv-diff: Basic support for OpTypeForwardPointer (#4761) 2022-03-28 17:01:07 +00:00
OpTypeForwardPointer_onesided_debug_dst.spvasm spirv-diff: Basic support for OpTypeForwardPointer (#4761) 2022-03-28 17:01:07 +00:00
OpTypeForwardPointer_onesided_debug_src.spvasm spirv-diff: Basic support for OpTypeForwardPointer (#4761) 2022-03-28 17:01:07 +00:00
ray_query_types_autogen.cpp spirv-diff: Update test expectations (#5264) 2023-06-09 16:28:30 -04:00
ray_query_types_dst.spvasm spirv-diff: Properly match SPV_KHR_ray_query types. (#5259) 2023-06-08 10:42:45 -04:00
ray_query_types_src.spvasm spirv-diff: Properly match SPV_KHR_ray_query types. (#5259) 2023-06-08 10:42:45 -04:00
README.md Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
reordered_if_blocks_autogen.cpp spirv-diff: Leave undefined ids unpaired. (#5262) 2023-06-09 15:00:46 -04:00
reordered_if_blocks_dst.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
reordered_if_blocks_src.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
reordered_switch_blocks_autogen.cpp spirv-diff: Leave undefined ids unpaired. (#5262) 2023-06-09 15:00:46 -04:00
reordered_switch_blocks_dst.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
reordered_switch_blocks_src.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
small_functions_small_diffs_autogen.cpp Stabilize the output of spirv-diff (#4698) 2022-02-07 09:37:04 -05:00
small_functions_small_diffs_dst.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
small_functions_small_diffs_src.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
spec_constant_array_size_autogen.cpp spirv-diff: Leave undefined ids unpaired. (#5262) 2023-06-09 15:00:46 -04:00
spec_constant_array_size_dst.spvasm spirv-diff: Handle OpSpecConstant array sizes (#4700) 2022-02-09 09:06:46 -05:00
spec_constant_array_size_src.spvasm spirv-diff: Handle OpSpecConstant array sizes (#4700) 2022-02-09 09:06:46 -05:00
spec_constant_composite_autogen.cpp spirv-diff: Match OpSpecConstantComposite correctly (#4704) 2022-02-11 15:29:42 +00:00
spec_constant_composite_dst.spvasm spirv-diff: Match OpSpecConstantComposite correctly (#4704) 2022-02-11 15:29:42 +00:00
spec_constant_composite_src.spvasm spirv-diff: Match OpSpecConstantComposite correctly (#4704) 2022-02-11 15:29:42 +00:00
spec_constant_op_autogen.cpp spirv-diff: Allow no SpecId (#4904) 2022-09-07 15:14:26 -04:00
spec_constant_op_dst.spvasm spirv-diff: Allow no SpecId (#4904) 2022-09-07 15:14:26 -04:00
spec_constant_op_src.spvasm spirv-diff: Allow no SpecId (#4904) 2022-09-07 15:14:26 -04:00
spec_constant_specid_autogen.cpp spirv-diff: Allow no SpecId (#4904) 2022-09-07 15:14:26 -04:00
spec_constant_specid_dst.spvasm spirv-diff: Allow no SpecId (#4904) 2022-09-07 15:14:26 -04:00
spec_constant_specid_src.spvasm spirv-diff: Allow no SpecId (#4904) 2022-09-07 15:14:26 -04:00
unrelated_shaders_autogen.cpp Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
unrelated_shaders_dst.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00
unrelated_shaders_src.spvasm Introduce spirv-diff (#4611) 2022-02-02 10:33:18 -05:00

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.