• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15set(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
23add_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_extensions_test.cpp
42       val_extension_spv_khr_expect_assume_test.cpp
43       val_extension_spv_khr_linkonce_odr_test.cpp
44       val_extension_spv_khr_subgroup_uniform_control_flow_test.cpp
45       val_extension_spv_khr_integer_dot_product_test.cpp
46       val_extension_spv_khr_bit_instructions_test.cpp
47       val_extension_spv_khr_terminate_invocation_test.cpp
48       val_extension_spv_khr_subgroup_rotate_test.cpp
49       val_ext_inst_test.cpp
50       val_ext_inst_debug_test.cpp
51       ${VAL_TEST_COMMON_SRCS}
52  LIBS ${SPIRV_TOOLS_FULL_VISIBILITY}
53  PCH_FILE pch_test_val
54)
55
56add_spvtools_unittest(TARGET val_capability
57  SRCS
58       val_capability_test.cpp
59  LIBS ${SPIRV_TOOLS_FULL_VISIBILITY}
60  PCH_FILE pch_test_val
61)
62
63add_spvtools_unittest(TARGET val_limits
64  SRCS val_limits_test.cpp
65       ${VAL_TEST_COMMON_SRCS}
66  LIBS ${SPIRV_TOOLS_FULL_VISIBILITY}
67  PCH_FILE pch_test_val
68)
69
70add_spvtools_unittest(TARGET val_fghijklmnop
71  SRCS
72       val_function_test.cpp
73       val_id_test.cpp
74       val_image_test.cpp
75       val_interfaces_test.cpp
76       val_layout_test.cpp
77       val_literals_test.cpp
78       val_logicals_test.cpp
79       val_memory_test.cpp
80       val_mesh_shading_test.cpp
81       val_misc_test.cpp
82       val_modes_test.cpp
83       val_non_semantic_test.cpp
84       val_non_uniform_test.cpp
85       val_opencl_test.cpp
86       val_primitives_test.cpp
87       ${VAL_TEST_COMMON_SRCS}
88  LIBS ${SPIRV_TOOLS_FULL_VISIBILITY}
89  PCH_FILE pch_test_val
90)
91
92add_spvtools_unittest(TARGET val_rstuvw
93  SRCS
94       val_ray_query_test.cpp
95       val_ray_tracing_test.cpp
96       val_small_type_uses_test.cpp
97       val_ssa_test.cpp
98       val_state_test.cpp
99       val_storage_test.cpp
100       val_type_unique_test.cpp
101       val_validation_state_test.cpp
102       val_version_test.cpp
103       ${VAL_TEST_COMMON_SRCS}
104  LIBS ${SPIRV_TOOLS_FULL_VISIBILITY}
105  PCH_FILE pch_test_val
106)
107