| 1 |
# Copyright (c) 2016 The Khronos Group Inc. |
| 2 |
# |
| 3 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
# you may not use this file except in compliance with the License. |
| 5 |
# You may obtain a copy of the License at |
| 6 |
# |
| 7 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
# |
| 9 |
# Unless required by applicable law or agreed to in writing, software |
| 10 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
# See the License for the specific language governing permissions and |
| 13 |
# limitations under the License. |
| 14 |
|
| 15 |
set(VAL_TEST_COMMON_SRCS |
| 16 |
${CMAKE_CURRENT_SOURCE_DIR}/../test_fixture.h |
| 17 |
${CMAKE_CURRENT_SOURCE_DIR}/../unit_spirv.h |
| 18 |
${CMAKE_CURRENT_SOURCE_DIR}/val_code_generator.cpp |
| 19 |
${CMAKE_CURRENT_SOURCE_DIR}/val_code_generator.h |
| 20 |
${CMAKE_CURRENT_SOURCE_DIR}/val_fixtures.h |
| 21 |
) |
| 22 |
|
| 23 |
add_spvtools_unittest(TARGET val_abcde |
| 24 |
SRCS |
| 25 |
val_adjacency_test.cpp |
| 26 |
val_annotation_test.cpp |
| 27 |
val_arithmetics_test.cpp |
| 28 |
val_atomics_test.cpp |
| 29 |
val_barriers_test.cpp |
| 30 |
val_bitwise_test.cpp |
| 31 |
val_builtins_test.cpp |
| 32 |
val_cfg_test.cpp |
| 33 |
val_composites_test.cpp |
| 34 |
val_constants_test.cpp |
| 35 |
val_conversion_test.cpp |
| 36 |
val_data_test.cpp |
| 37 |
val_decoration_test.cpp |
| 38 |
val_derivatives_test.cpp |
| 39 |
val_entry_point_test.cpp |
| 40 |
val_explicit_reserved_test.cpp |
| 41 |
val_invalid_type_test.cpp |
| 42 |
val_extensions_test.cpp |
| 43 |
val_extension_spv_khr_expect_assume_test.cpp |
| 44 |
val_extension_spv_khr_linkonce_odr_test.cpp |
| 45 |
val_extension_spv_khr_subgroup_uniform_control_flow_test.cpp |
| 46 |
val_extension_spv_khr_integer_dot_product_test.cpp |
| 47 |
val_extension_spv_khr_bit_instructions_test.cpp |
| 48 |
val_extension_spv_khr_terminate_invocation_test.cpp |
| 49 |
val_extension_spv_khr_subgroup_rotate_test.cpp |
| 50 |
val_extension_spv_nv_raw_access_chains.cpp |
| 51 |
val_extension_spv_intel_function_variants.cpp |
| 52 |
val_extension_spv_intel_inline_assembly.cpp |
| 53 |
val_extension_spv_ext_descriptor_heap.cpp |
| 54 |
val_ext_inst_test.cpp |
| 55 |
val_ext_inst_debug_test.cpp |
| 56 |
${VAL_TEST_COMMON_SRCS} |
| 57 |
LIBS ${SPIRV_TOOLS_FULL_VISIBILITY} |
| 58 |
PCH_FILE pch_test_val |
| 59 |
) |
| 60 |
|
| 61 |
add_spvtools_unittest(TARGET val_capability |
| 62 |
SRCS |
| 63 |
val_capability_test.cpp |
| 64 |
LIBS ${SPIRV_TOOLS_FULL_VISIBILITY} |
| 65 |
PCH_FILE pch_test_val |
| 66 |
) |
| 67 |
|
| 68 |
add_spvtools_unittest(TARGET val_limits |
| 69 |
SRCS val_limits_test.cpp |
| 70 |
${VAL_TEST_COMMON_SRCS} |
| 71 |
LIBS ${SPIRV_TOOLS_FULL_VISIBILITY} |
| 72 |
PCH_FILE pch_test_val |
| 73 |
) |
| 74 |
|
| 75 |
add_spvtools_unittest(TARGET val_fghijklmnop |
| 76 |
SRCS |
| 77 |
val_function_test.cpp |
| 78 |
val_graph_test.cpp |
| 79 |
val_id_test.cpp |
| 80 |
val_image_test.cpp |
| 81 |
val_interfaces_test.cpp |
| 82 |
val_layout_test.cpp |
| 83 |
val_literals_test.cpp |
| 84 |
val_logical_pointers_test.cpp |
| 85 |
val_logicals_test.cpp |
| 86 |
val_memory_test.cpp |
| 87 |
val_memory_semantics_test.cpp |
| 88 |
val_mesh_shading_test.cpp |
| 89 |
val_misc_test.cpp |
| 90 |
val_modes_test.cpp |
| 91 |
val_non_semantic_test.cpp |
| 92 |
val_non_uniform_test.cpp |
| 93 |
val_opencl_test.cpp |
| 94 |
val_primitives_test.cpp |
| 95 |
${VAL_TEST_COMMON_SRCS} |
| 96 |
LIBS ${SPIRV_TOOLS_FULL_VISIBILITY} |
| 97 |
PCH_FILE pch_test_val |
| 98 |
) |
| 99 |
|
| 100 |
add_spvtools_unittest(TARGET val_rstuvw |
| 101 |
SRCS |
| 102 |
val_ray_query_test.cpp |
| 103 |
val_ray_tracing_test.cpp |
| 104 |
val_ray_tracing_reorder_test.cpp |
| 105 |
val_small_type_uses_test.cpp |
| 106 |
val_ssa_test.cpp |
| 107 |
val_state_test.cpp |
| 108 |
val_storage_test.cpp |
| 109 |
val_tensor_test.cpp |
| 110 |
val_type_unique_test.cpp |
| 111 |
val_validation_state_test.cpp |
| 112 |
val_version_test.cpp |
| 113 |
${VAL_TEST_COMMON_SRCS} |
| 114 |
LIBS ${SPIRV_TOOLS_FULL_VISIBILITY} |
| 115 |
PCH_FILE pch_test_val |
| 116 |
) |