Home | History | Annotate | Download | only in val
      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_fixtures.h
     19 )
     20 
     21 add_spvtools_unittest(TARGET val_abcde
     22   SRCS
     23        val_adjacency_test.cpp
     24        val_arithmetics_test.cpp
     25        val_atomics_test.cpp
     26        val_barriers_test.cpp
     27        val_bitwise_test.cpp
     28        val_builtins_test.cpp
     29        val_capability_test.cpp
     30        val_cfg_test.cpp
     31        val_composites_test.cpp
     32        val_conversion_test.cpp
     33        val_data_test.cpp
     34        val_decoration_test.cpp
     35        val_derivatives_test.cpp
     36        val_explicit_reserved_test.cpp
     37        val_extensions_test.cpp
     38        val_ext_inst_test.cpp
     39        ${VAL_TEST_COMMON_SRCS}
     40   LIBS ${SPIRV_TOOLS}
     41   PCH_FILE pch_test_val
     42 )
     43 
     44 add_spvtools_unittest(TARGET val_limits
     45   SRCS val_limits_test.cpp
     46        ${VAL_TEST_COMMON_SRCS}
     47   LIBS ${SPIRV_TOOLS}
     48 )
     49 
     50 add_spvtools_unittest(TARGET val_ijklmnop
     51   SRCS
     52        val_id_test.cpp
     53        val_image_test.cpp
     54        val_interfaces_test.cpp
     55        val_layout_test.cpp
     56        val_literals_test.cpp
     57        val_logicals_test.cpp
     58        val_memory_test.cpp
     59        val_modes_test.cpp
     60        val_non_uniform_test.cpp
     61        val_primitives_test.cpp
     62        ${VAL_TEST_COMMON_SRCS}
     63   LIBS ${SPIRV_TOOLS}
     64   PCH_FILE pch_test_val
     65 )
     66 
     67 add_spvtools_unittest(TARGET val_stuvw
     68   SRCS
     69        val_ssa_test.cpp
     70        val_state_test.cpp
     71        val_storage_test.cpp
     72        val_type_unique_test.cpp
     73        val_validation_state_test.cpp
     74        val_version_test.cpp
     75        val_webgpu_test.cpp
     76        ${VAL_TEST_COMMON_SRCS}
     77   LIBS ${SPIRV_TOOLS}
     78   PCH_FILE pch_test_val
     79 )
     80