| 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_arithmetics_test.cpp |
| 27 |
val_atomics_test.cpp |
| 28 |
val_barriers_test.cpp |
| 29 |
val_bitwise_test.cpp |
| 30 |
val_builtins_test.cpp |
| 31 |
val_cfg_test.cpp |
| 32 |
val_composites_test.cpp |
| 33 |
val_constants_test.cpp |
| 34 |
val_conversion_test.cpp |
| 35 |
val_data_test.cpp |
| 36 |
val_decoration_test.cpp |
| 37 |
val_derivatives_test.cpp |
| 38 |
val_entry_point.cpp |
| 39 |
val_explicit_reserved_test.cpp |
| 40 |
val_extensions_test.cpp |
| 41 |
val_extension_spv_khr_terminate_invocation.cpp |
| 42 |
val_ext_inst_test.cpp |
| 43 |
${VAL_TEST_COMMON_SRCS} |
| 44 |
LIBS ${SPIRV_TOOLS_FULL_VISIBILITY} |
| 45 |
PCH_FILE pch_test_val |
| 46 |
) |
| 47 |
|
| 48 |
add_spvtools_unittest(TARGET val_capability |
| 49 |
SRCS |
| 50 |
val_capability_test.cpp |
| 51 |
LIBS ${SPIRV_TOOLS_FULL_VISIBILITY} |
| 52 |
PCH_FILE pch_test_val |
| 53 |
) |
| 54 |
|
| 55 |
add_spvtools_unittest(TARGET val_limits |
| 56 |
SRCS val_limits_test.cpp |
| 57 |
${VAL_TEST_COMMON_SRCS} |
| 58 |
LIBS ${SPIRV_TOOLS_FULL_VISIBILITY} |
| 59 |
PCH_FILE pch_test_val |
| 60 |
) |
| 61 |
|
| 62 |
add_spvtools_unittest(TARGET val_fghijklmnop |
| 63 |
SRCS |
| 64 |
val_function_test.cpp |
| 65 |
val_id_test.cpp |
| 66 |
val_image_test.cpp |
| 67 |
val_interfaces_test.cpp |
| 68 |
val_layout_test.cpp |
| 69 |
val_literals_test.cpp |
| 70 |
val_logicals_test.cpp |
| 71 |
val_memory_test.cpp |
| 72 |
val_misc_test.cpp |
| 73 |
val_modes_test.cpp |
| 74 |
val_non_semantic_test.cpp |
| 75 |
val_non_uniform_test.cpp |
| 76 |
val_opencl_test.cpp |
| 77 |
val_primitives_test.cpp |
| 78 |
${VAL_TEST_COMMON_SRCS} |
| 79 |
LIBS ${SPIRV_TOOLS_FULL_VISIBILITY} |
| 80 |
PCH_FILE pch_test_val |
| 81 |
) |
| 82 |
|
| 83 |
add_spvtools_unittest(TARGET val_stuvw |
| 84 |
SRCS |
| 85 |
val_small_type_uses_test.cpp |
| 86 |
val_ssa_test.cpp |
| 87 |
val_state_test.cpp |
| 88 |
val_storage_test.cpp |
| 89 |
val_type_unique_test.cpp |
| 90 |
val_validation_state_test.cpp |
| 91 |
val_version_test.cpp |
| 92 |
val_webgpu_test.cpp |
| 93 |
${VAL_TEST_COMMON_SRCS} |
| 94 |
LIBS ${SPIRV_TOOLS_FULL_VISIBILITY} |
| 95 |
PCH_FILE pch_test_val |
| 96 |
) |