2019-05-29 15:42:46 +00:00
|
|
|
# Copyright (c) 2019 Google LLC
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
if (${SPIRV_BUILD_FUZZER})
|
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
fuzz_test_util.h
|
|
|
|
|
2019-11-07 16:19:06 +00:00
|
|
|
data_synonym_transformation_test.cpp
|
2019-10-25 11:46:52 +00:00
|
|
|
equivalence_relation_test.cpp
|
2019-06-11 14:56:08 +00:00
|
|
|
fact_manager_test.cpp
|
2019-05-29 15:42:46 +00:00
|
|
|
fuzz_test_util.cpp
|
2019-06-18 17:41:08 +00:00
|
|
|
fuzzer_pass_add_useful_constructs_test.cpp
|
2019-10-22 17:05:35 +00:00
|
|
|
instruction_descriptor_test.cpp
|
2019-06-04 13:55:00 +00:00
|
|
|
transformation_add_constant_boolean_test.cpp
|
|
|
|
transformation_add_constant_scalar_test.cpp
|
2019-06-05 07:02:16 +00:00
|
|
|
transformation_add_dead_break_test.cpp
|
2019-07-25 12:50:33 +00:00
|
|
|
transformation_add_dead_continue_test.cpp
|
2019-10-11 08:15:47 +00:00
|
|
|
transformation_add_no_contraction_decoration_test.cpp
|
2019-06-04 13:55:00 +00:00
|
|
|
transformation_add_type_boolean_test.cpp
|
|
|
|
transformation_add_type_float_test.cpp
|
|
|
|
transformation_add_type_int_test.cpp
|
2019-06-18 17:41:08 +00:00
|
|
|
transformation_add_type_pointer_test.cpp
|
2019-10-27 18:11:07 +00:00
|
|
|
transformation_composite_construct_test.cpp
|
2019-10-28 09:33:08 +00:00
|
|
|
transformation_composite_extract_test.cpp
|
2019-08-05 17:00:13 +00:00
|
|
|
transformation_copy_object_test.cpp
|
2019-05-31 08:59:06 +00:00
|
|
|
transformation_move_block_down_test.cpp
|
2019-06-06 21:22:35 +00:00
|
|
|
transformation_replace_boolean_constant_with_constant_binary_test.cpp
|
2019-06-18 17:41:08 +00:00
|
|
|
transformation_replace_constant_with_uniform_test.cpp
|
2019-11-07 16:19:06 +00:00
|
|
|
transformation_replace_id_with_synonym_test.cpp
|
2019-10-11 06:10:47 +00:00
|
|
|
transformation_set_function_control_test.cpp
|
2019-10-10 12:34:38 +00:00
|
|
|
transformation_set_loop_control_test.cpp
|
2019-10-22 17:05:35 +00:00
|
|
|
transformation_set_memory_operands_mask_test.cpp
|
2019-10-08 10:25:34 +00:00
|
|
|
transformation_set_selection_control_test.cpp
|
2019-06-19 19:45:14 +00:00
|
|
|
transformation_split_block_test.cpp
|
2019-11-06 17:11:54 +00:00
|
|
|
transformation_vector_shuffle_test.cpp
|
2019-06-19 19:45:14 +00:00
|
|
|
uniform_buffer_element_descriptor_test.cpp)
|
2019-05-29 15:42:46 +00:00
|
|
|
|
2019-09-20 08:43:26 +00:00
|
|
|
if (${SPIRV_ENABLE_LONG_FUZZER_TESTS})
|
|
|
|
# These are long-running tests that depend on random seeds. We do not want
|
|
|
|
# to run them during regular whole-project CI because they may reveal
|
|
|
|
# spirv-fuzz bugs in changes that are totally unrelated to spirv-fuzz,
|
|
|
|
# which would be counfounding. Instead, they should be run regularly but
|
|
|
|
# separately.
|
2019-09-20 14:23:25 +00:00
|
|
|
set(SOURCES ${SOURCES}
|
2019-09-20 08:43:26 +00:00
|
|
|
fuzzer_replayer_test.cpp
|
|
|
|
fuzzer_shrinker_test.cpp)
|
|
|
|
endif()
|
|
|
|
|
2019-05-29 15:42:46 +00:00
|
|
|
add_spvtools_unittest(TARGET fuzz
|
|
|
|
SRCS ${SOURCES}
|
|
|
|
LIBS SPIRV-Tools-fuzz
|
|
|
|
)
|
|
|
|
endif()
|