Renaming test files to comply with Google style guide.
authorLei Zhang <antiagainst@google.com>
Thu, 22 Sep 2016 15:05:30 +0000 (11:05 -0400)
committerLei Zhang <antiagainst@google.com>
Mon, 7 Nov 2016 19:41:51 +0000 (14:41 -0500)
Also posfixing test files with `_test' to make it more clear.

86 files changed:
test/CMakeLists.txt
test/assembly_context_test.cpp [moved from test/AssemblyContext.cpp with 98% similarity]
test/assembly_format_test.cpp [moved from test/AssemblyFormat.cpp with 97% similarity]
test/binary_destroy_test.cpp [moved from test/BinaryDestroy.cpp with 96% similarity]
test/binary_endianness_test.cpp [moved from test/BinaryEndianness.cpp with 98% similarity]
test/binary_header_get_test.cpp [moved from test/BinaryHeaderGet.cpp with 99% similarity]
test/binary_parse_test.cpp [moved from test/BinaryParse.cpp with 99% similarity]
test/binary_to_text.literal_test.cpp [moved from test/BinaryToText.Literal.cpp with 98% similarity]
test/binary_to_text_test.cpp [moved from test/BinaryToText.cpp with 99% similarity]
test/c_interface_test.cpp [moved from test/c_interface.cpp with 100% similarity]
test/capability_set_test.cpp [moved from test/CapabilitySet.cpp with 99% similarity]
test/comment_test.cpp [moved from test/Comment.cpp with 96% similarity]
test/cpp_interface_test.cpp [moved from test/cpp_interface.cpp with 100% similarity]
test/diagnostic_test.cpp [moved from test/diagnostic.cpp with 99% similarity]
test/ext_inst.glsl_test.cpp [moved from test/ExtInstGLSLstd450.cpp with 99% similarity]
test/ext_inst.opencl_test.cpp [moved from test/ExtInst.OpenCL.std.cpp with 99% similarity]
test/fix_word_test.cpp [moved from test/FixWord.cpp with 98% similarity]
test/generator_magic_number_test.cpp [moved from test/GeneratorMagicNumber.cpp with 98% similarity]
test/hex_float_test.cpp [moved from test/HexFloat.cpp with 99% similarity]
test/immediate_int_test.cpp [moved from test/ImmediateInt.cpp with 99% similarity]
test/libspirv_macros_test.cpp [moved from test/LibspirvMacros.cpp with 97% similarity]
test/log_test.cpp [moved from test/test_log.cpp with 93% similarity]
test/name_mapper_test.cpp [moved from test/NameMapper.cpp with 99% similarity]
test/named_id_test.cpp [moved from test/NamedId.cpp with 98% similarity]
test/opcode_make_test.cpp [moved from test/OpcodeMake.cpp with 98% similarity]
test/opcode_require_capabilities_test.cpp [moved from test/OpcodeRequiresCapabilities.cpp with 99% similarity]
test/opcode_split_test.cpp [moved from test/OpcodeSplit.cpp with 97% similarity]
test/opcode_table_get_test.cpp [moved from test/OpcodeTableGet.cpp with 98% similarity]
test/operand_capabilities_test.cpp [moved from test/OperandCapabilities.cpp with 99% similarity]
test/operand_pattern_test.cpp [moved from test/OperandPattern.cpp with 99% similarity]
test/operand_test.cpp [moved from test/Operand.cpp with 99% similarity]
test/opt/CMakeLists.txt
test/opt/assembly_builder_test.cpp [moved from test/opt/test_assembly_builder.cpp with 100% similarity]
test/opt/def_use_test.cpp [moved from test/opt/test_def_use.cpp with 100% similarity]
test/opt/eliminate_dead_const_test.cpp [moved from test/opt/test_eliminate_dead_const.cpp with 100% similarity]
test/opt/fold_spec_const_op_composite_test.cpp [moved from test/opt/test_fold_spec_const_op_composite.cpp with 100% similarity]
test/opt/freeze_spec_const_test.cpp [moved from test/opt/test_freeze_spec_const.cpp with 100% similarity]
test/opt/instruction_test.cpp [moved from test/opt/test_instruction.cpp with 99% similarity]
test/opt/ir_loader_test.cpp [moved from test/opt/test_ir_loader.cpp with 100% similarity]
test/opt/iterator_test.cpp [moved from test/opt/test_iterator.cpp with 100% similarity]
test/opt/line_debug_info_test.cpp [moved from test/opt/test_line_debug_info.cpp with 100% similarity]
test/opt/module_test.cpp [moved from test/opt/test_module.cpp with 100% similarity]
test/opt/pass_manager_test.cpp [moved from test/opt/test_pass_manager.cpp with 100% similarity]
test/opt/set_spec_const_default_value_test.cpp [moved from test/opt/test_set_spec_const_default_value.cpp with 100% similarity]
test/opt/strip_debug_info_test.cpp [moved from test/opt/test_strip_debug_info.cpp with 100% similarity]
test/opt/type_manager_test.cpp [moved from test/opt/test_type_manager.cpp with 100% similarity]
test/opt/types_test.cpp [moved from test/opt/test_types.cpp with 100% similarity]
test/opt/unify_const_test.cpp [moved from test/opt/test_unify_const.cpp with 100% similarity]
test/opt/utils_test.cpp [moved from test/opt/test_utils.cpp with 100% similarity]
test/parse_number_test.cpp [moved from test/ParseNumber.cpp with 100% similarity]
test/software_version_test.cpp [moved from test/SoftwareVersion.cpp with 98% similarity]
test/target_env_test.cpp [moved from test/TargetEnv.cpp with 99% similarity]
test/test_fixture.h [moved from test/TestFixture.h with 99% similarity]
test/text_advance_test.cpp [moved from test/TextAdvance.cpp with 99% similarity]
test/text_destroy_test.cpp [moved from test/TextDestroy.cpp with 98% similarity]
test/text_literal_test.cpp [moved from test/TextLiteral.cpp with 99% similarity]
test/text_start_new_inst_test.cpp [moved from test/TextStartsNewInst.cpp with 99% similarity]
test/text_to_binary.annotation_test.cpp [moved from test/TextToBinary.Annotation.cpp with 99% similarity]
test/text_to_binary.barrier_test.cpp [moved from test/TextToBinary.Barrier.cpp with 99% similarity]
test/text_to_binary.constant_test.cpp [moved from test/TextToBinary.Constant.cpp with 99% similarity]
test/text_to_binary.control_flow_test.cpp [moved from test/TextToBinary.ControlFlow.cpp with 99% similarity]
test/text_to_binary.debug_test.cpp [moved from test/TextToBinary.Debug.cpp with 99% similarity]
test/text_to_binary.device_side_enqueue_test.cpp [moved from test/TextToBinary.DeviceSideEnqueue.cpp with 98% similarity]
test/text_to_binary.extension_test.cpp [moved from test/TextToBinary.Extension.cpp with 99% similarity]
test/text_to_binary.function_test.cpp [moved from test/TextToBinary.Function.cpp with 98% similarity]
test/text_to_binary.group_test.cpp [moved from test/TextToBinary.Group.cpp with 97% similarity]
test/text_to_binary.image_test.cpp [moved from test/TextToBinary.Image.cpp with 99% similarity]
test/text_to_binary.literal_test.cpp [moved from test/TextToBinary.Literal.cpp with 99% similarity]
test/text_to_binary.memory_test.cpp [moved from test/TextToBinary.Memory.cpp with 98% similarity]
test/text_to_binary.misc_test.cpp [moved from test/TextToBinary.Miscellaneous.cpp with 97% similarity]
test/text_to_binary.mode_setting_test.cpp [moved from test/TextToBinary.ModeSetting.cpp with 99% similarity]
test/text_to_binary.pipe_storage_test.cpp [moved from test/TextToBinary.PipeStorage.cpp with 99% similarity]
test/text_to_binary.subgroup_dispatch_test.cpp [moved from test/TextToBinary.SubgroupDispatch.cpp with 99% similarity]
test/text_to_binary.type_declaration_test.cpp [moved from test/TextToBinary.TypeDeclaration.cpp with 99% similarity]
test/text_to_binary_test.cpp [moved from test/TextToBinary.cpp with 99% similarity]
test/text_word_get_test.cpp [moved from test/TextWordGet.cpp with 99% similarity]
test/unit_spirv.cpp [moved from test/UnitSPIRV.cpp with 97% similarity]
test/unit_spirv.h [moved from test/UnitSPIRV.h with 100% similarity]
test/val/CMakeLists.txt
test/val/Validate.CFG.cpp
test/val/Validate.Capability.cpp
test/val/Validate.Layout.cpp
test/val/Validate.SSA.cpp
test/val/ValidateFixtures.cpp
test/val/ValidateFixtures.h
test/val/ValidateID.cpp

index 5ce9d9f..891828b 100644 (file)
@@ -62,61 +62,62 @@ function(add_spvtools_unittest)
 endfunction()
 
 set(TEST_SOURCES
-  ${CMAKE_CURRENT_SOURCE_DIR}/TestFixture.h
-  ${CMAKE_CURRENT_SOURCE_DIR}/UnitSPIRV.h
+  test_fixture.h
+  unit_spirv.h
 
-  ${CMAKE_CURRENT_SOURCE_DIR}/AssemblyContext.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/AssemblyFormat.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/BinaryDestroy.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/BinaryEndianness.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/BinaryHeaderGet.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/BinaryParse.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/BinaryToText.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/BinaryToText.Literal.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/CapabilitySet.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/Comment.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/ExtInstGLSLstd450.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/ExtInst.OpenCL.std.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/FixWord.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/GeneratorMagicNumber.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/HexFloat.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/ImmediateInt.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/LibspirvMacros.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/NamedId.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/NameMapper.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/OpcodeMake.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/OpcodeRequiresCapabilities.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/OpcodeSplit.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/OpcodeTableGet.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/OperandCapabilities.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/Operand.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/OperandPattern.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/SoftwareVersion.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TargetEnv.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TextAdvance.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TextDestroy.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TextLiteral.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TextStartsNewInst.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TextToBinary.Annotation.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TextToBinary.Barrier.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TextToBinary.Constant.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TextToBinary.ControlFlow.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TextToBinary.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TextToBinary.Debug.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TextToBinary.DeviceSideEnqueue.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TextToBinary.Extension.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TextToBinary.Function.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TextToBinary.Group.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TextToBinary.Image.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TextToBinary.Literal.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TextToBinary.Memory.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TextToBinary.Miscellaneous.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TextToBinary.ModeSetting.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TextToBinary.PipeStorage.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TextToBinary.TypeDeclaration.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TextToBinary.SubgroupDispatch.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/TextWordGet.cpp
-  ${CMAKE_CURRENT_SOURCE_DIR}/UnitSPIRV.cpp
+  assembly_context_test.cpp
+  assembly_format_test.cpp
+  binary_destroy_test.cpp
+  binary_endianness_test.cpp
+  binary_header_get_test.cpp
+  binary_parse_test.cpp
+  binary_to_text_test.cpp
+  binary_to_text.literal_test.cpp
+  capability_set_test.cpp
+  comment_test.cpp
+  ext_inst.glsl_test.cpp
+  ext_inst.opencl_test.cpp
+  fix_word_test.cpp
+  generator_magic_number_test.cpp
+  hex_float_test.cpp
+  immediate_int_test.cpp
+  libspirv_macros_test.cpp
+  named_id_test.cpp
+  name_mapper_test.cpp
+  opcode_make_test.cpp
+  opcode_require_capabilities_test.cpp
+  opcode_split_test.cpp
+  opcode_table_get_test.cpp
+  operand_capabilities_test.cpp
+  operand_test.cpp
+  operand_pattern_test.cpp
+  software_version_test.cpp
+  target_env_test.cpp
+  text_advance_test.cpp
+  text_destroy_test.cpp
+  text_literal_test.cpp
+  text_start_new_inst_test.cpp
+  text_to_binary.annotation_test.cpp
+  text_to_binary.barrier_test.cpp
+  text_to_binary.constant_test.cpp
+  text_to_binary.control_flow_test.cpp
+  text_to_binary_test.cpp
+  text_to_binary.debug_test.cpp
+  text_to_binary.device_side_enqueue_test.cpp
+  text_to_binary.extension_test.cpp
+  text_to_binary.function_test.cpp
+  text_to_binary.group_test.cpp
+  text_to_binary.image_test.cpp
+  text_to_binary.literal_test.cpp
+  text_to_binary.memory_test.cpp
+  text_to_binary.misc_test.cpp
+  text_to_binary.mode_setting_test.cpp
+  text_to_binary.pipe_storage_test.cpp
+  text_to_binary.type_declaration_test.cpp
+  text_to_binary.subgroup_dispatch_test.cpp
+  text_word_get_test.cpp
+
+  unit_spirv.cpp
 )
 
 add_spvtools_unittest(
@@ -126,27 +127,27 @@ add_spvtools_unittest(
 
 add_spvtools_unittest(
   TARGET diagnostic
-  SRCS diagnostic.cpp
+  SRCS diagnostic_test.cpp
   LIBS ${SPIRV_TOOLS})
 
 add_spvtools_unittest(
   TARGET c_interface
-  SRCS c_interface.cpp
+  SRCS c_interface_test.cpp
   LIBS ${SPIRV_TOOLS})
 
 add_spvtools_unittest(
   TARGET cpp_interface
-  SRCS cpp_interface.cpp
-  LIBS SPIRV-Tools-opt ${SPIRV_TOOLS})
+  SRCS cpp_interface_test.cpp
+  LIBS SPIRV-Tools-opt)
 
 add_spvtools_unittest(
   TARGET parse_number
-  SRCS ${CMAKE_CURRENT_SOURCE_DIR}/ParseNumber.cpp
+  SRCS parse_number_test.cpp
   LIBS ${SPIRV_TOOLS})
 
 add_spvtools_unittest(
   TARGET log
-  SRCS test_log.cpp
+  SRCS log_test.cpp
   LIBS ${SPIRV_TOOLS})
 
 add_subdirectory(opt)
similarity index 98%
rename from test/AssemblyContext.cpp
rename to test/assembly_context_test.cpp
index e530869..219a76a 100644 (file)
@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 #include <vector>
 #include <gmock/gmock.h>
similarity index 97%
rename from test/AssemblyFormat.cpp
rename to test/assembly_format_test.cpp
index 891eee9..953fb8a 100644 (file)
@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "TestFixture.h"
+#include "test_fixture.h"
 
 namespace {
 
similarity index 96%
rename from test/BinaryDestroy.cpp
rename to test/binary_destroy_test.cpp
index 9cac351..2df8379 100644 (file)
@@ -12,9 +12,9 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
-#include "TestFixture.h"
+#include "test_fixture.h"
 
 namespace {
 
similarity index 98%
rename from test/BinaryEndianness.cpp
rename to test/binary_endianness_test.cpp
index c23115e..343c17e 100644 (file)
@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 namespace {
 
similarity index 99%
rename from test/BinaryHeaderGet.cpp
rename to test/binary_header_get_test.cpp
index eed808c..047d3a0 100644 (file)
@@ -13,7 +13,7 @@
 // limitations under the License.
 
 #include "source/spirv_constant.h"
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 namespace {
 
similarity index 99%
rename from test/BinaryParse.cpp
rename to test/binary_parse_test.cpp
index 4ccf84d..138092c 100644 (file)
@@ -16,8 +16,8 @@
 #include <string>
 #include <vector>
 
-#include "TestFixture.h"
-#include "UnitSPIRV.h"
+#include "test_fixture.h"
+#include "unit_spirv.h"
 #include "gmock/gmock.h"
 #include "source/message.h"
 #include "source/table.h"
similarity index 98%
rename from test/BinaryToText.Literal.cpp
rename to test/binary_to_text.literal_test.cpp
index 67b9678..9201f4a 100644 (file)
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 #include "gmock/gmock.h"
-#include "TestFixture.h"
+#include "test_fixture.h"
 
 using ::testing::Eq;
 
similarity index 99%
rename from test/BinaryToText.cpp
rename to test/binary_to_text_test.cpp
index 1d28e9d..78f9aff 100644 (file)
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 #include <sstream>
 
 #include "gmock/gmock.h"
 
-#include "TestFixture.h"
+#include "test_fixture.h"
 #include "source/spirv_constant.h"
 
 namespace {
similarity index 99%
rename from test/CapabilitySet.cpp
rename to test/capability_set_test.cpp
index aaae54e..4a0111d 100644 (file)
@@ -16,7 +16,7 @@
 #include "gmock/gmock.h"
 
 #include "enum_set.h"
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 namespace {
 
similarity index 96%
rename from test/Comment.cpp
rename to test/comment_test.cpp
index d708a11..f60b791 100644 (file)
@@ -13,8 +13,8 @@
 // limitations under the License.
 
 #include "gmock/gmock.h"
-#include "TestFixture.h"
-#include "UnitSPIRV.h"
+#include "test_fixture.h"
+#include "unit_spirv.h"
 
 namespace {
 
similarity index 99%
rename from test/diagnostic.cpp
rename to test/diagnostic_test.cpp
index feb5403..65af274 100644 (file)
@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 namespace {
 
similarity index 99%
rename from test/ExtInstGLSLstd450.cpp
rename to test/ext_inst.glsl_test.cpp
index d81a444..8502cfd 100644 (file)
@@ -15,7 +15,7 @@
 #include <algorithm>
 #include <vector>
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 #include "spirv/1.0/GLSL.std.450.h"
 
 namespace {
similarity index 99%
rename from test/ExtInst.OpenCL.std.cpp
rename to test/ext_inst.opencl_test.cpp
index df463d3..3685415 100644 (file)
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 #include <gmock/gmock.h>
-#include "TestFixture.h"
+#include "test_fixture.h"
 #include "spirv/1.0/OpenCL.std.h"
 
 namespace {
similarity index 98%
rename from test/FixWord.cpp
rename to test/fix_word_test.cpp
index e5514e6..45ba6e6 100644 (file)
@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 namespace {
 
similarity index 98%
rename from test/GeneratorMagicNumber.cpp
rename to test/generator_magic_number_test.cpp
index 4427825..c3f30f6 100644 (file)
@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 #include <gmock/gmock.h>
 
similarity index 99%
rename from test/HexFloat.cpp
rename to test/hex_float_test.cpp
index 5b97f4a..33933df 100644 (file)
@@ -20,7 +20,9 @@
 #include <tuple>
 
 #include <gmock/gmock.h>
+
 #include "source/util/hex_float.h"
+#include "unit_spirv.h"
 
 namespace {
 using ::testing::Eq;
similarity index 99%
rename from test/ImmediateInt.cpp
rename to test/immediate_int_test.cpp
index bc2ff3c..30a8fb0 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <gmock/gmock.h>
 
-#include "TestFixture.h"
+#include "test_fixture.h"
 #include "source/util/bitutils.h"
 
 namespace {
similarity index 97%
rename from test/LibspirvMacros.cpp
rename to test/libspirv_macros_test.cpp
index ce84cea..5b9b541 100644 (file)
@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 namespace {
 
similarity index 93%
rename from test/test_log.cpp
rename to test/log_test.cpp
index fd258b1..f14f77d 100644 (file)
@@ -29,7 +29,7 @@ TEST(Log, Unimplemented) {
                                 const spv_position_t&, const char* message) {
     ++invocation;
     EXPECT_EQ(SPV_MSG_INTERNAL_ERROR, level);
-    EXPECT_THAT(source, MatchesRegex(".*test_log.cpp$"));
+    EXPECT_THAT(source, MatchesRegex(".*log_test.cpp$"));
     EXPECT_STREQ("unimplemented: the-ultimite-feature", message);
   };
 
@@ -43,7 +43,7 @@ TEST(Log, Unreachable) {
                                 const spv_position_t&, const char* message) {
     ++invocation;
     EXPECT_EQ(SPV_MSG_INTERNAL_ERROR, level);
-    EXPECT_THAT(source, MatchesRegex(".*test_log.cpp$"));
+    EXPECT_THAT(source, MatchesRegex(".*log_test.cpp$"));
     EXPECT_STREQ("unreachable", message);
   };
 
similarity index 99%
rename from test/NameMapper.cpp
rename to test/name_mapper_test.cpp
index 7a470f3..6c7755b 100644 (file)
@@ -14,8 +14,8 @@
 
 #include "gmock/gmock.h"
 
-#include "TestFixture.h"
-#include "UnitSPIRV.h"
+#include "test_fixture.h"
+#include "unit_spirv.h"
 
 #include "source/name_mapper.h"
 
similarity index 98%
rename from test/NamedId.cpp
rename to test/named_id_test.cpp
index 7ece9c9..68946bb 100644 (file)
@@ -14,8 +14,8 @@
 
 #include <vector>
 
-#include "TestFixture.h"
-#include "UnitSPIRV.h"
+#include "test_fixture.h"
+#include "unit_spirv.h"
 
 namespace {
 
similarity index 98%
rename from test/OpcodeMake.cpp
rename to test/opcode_make_test.cpp
index 5794a49..5353b71 100644 (file)
@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 namespace {
 
similarity index 99%
rename from test/OpcodeRequiresCapabilities.cpp
rename to test/opcode_require_capabilities_test.cpp
index 39de7f9..31a1736 100644 (file)
@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 #include "enum_set.h"
 
similarity index 97%
rename from test/OpcodeSplit.cpp
rename to test/opcode_split_test.cpp
index 197018f..f42d903 100644 (file)
@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 namespace {
 
similarity index 98%
rename from test/OpcodeTableGet.cpp
rename to test/opcode_table_get_test.cpp
index 67c46ae..f2272f0 100644 (file)
@@ -14,7 +14,7 @@
 
 #include <gmock/gmock.h>
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 namespace {
 
similarity index 99%
rename from test/OperandCapabilities.cpp
rename to test/operand_capabilities_test.cpp
index 5673ef7..20a7525 100644 (file)
@@ -19,7 +19,7 @@
 #include "gmock/gmock.h"
 
 #include "enum_set.h"
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 namespace {
 
similarity index 99%
rename from test/OperandPattern.cpp
rename to test/operand_pattern_test.cpp
index eee7b6d..be4fffd 100644 (file)
@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 #include "gmock/gmock.h"
 #include "source/operand.h"
similarity index 99%
rename from test/Operand.cpp
rename to test/operand_test.cpp
index b5e4897..a9056a2 100644 (file)
@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 namespace {
 
index 6a7d604..8e98793 100644 (file)
 # limitations under the License.
 
 add_spvtools_unittest(TARGET instruction
-  SRCS test_instruction.cpp
+  SRCS instruction_test.cpp
   LIBS SPIRV-Tools-opt
 )
 
 add_spvtools_unittest(TARGET ir_loader
-  SRCS test_ir_loader.cpp
+  SRCS ir_loader_test.cpp
   LIBS SPIRV-Tools-opt
 )
 
 add_spvtools_unittest(TARGET pass_manager
   SRCS module_utils.h
-       test_pass_manager.cpp
+       pass_manager_test.cpp
   LIBS SPIRV-Tools-opt
 )
 
 add_spvtools_unittest(TARGET pass_strip_debug_info
-  SRCS test_strip_debug_info.cpp pass_utils.cpp
+  SRCS strip_debug_info_test.cpp pass_utils.cpp
   LIBS SPIRV-Tools-opt
 )
 
 add_spvtools_unittest(TARGET pass_freeze_spec_const
-  SRCS test_freeze_spec_const.cpp pass_utils.cpp
+  SRCS freeze_spec_const_test.cpp pass_utils.cpp
   LIBS SPIRV-Tools-opt
 )
 
 add_spvtools_unittest(TARGET pass_eliminate_dead_const
-  SRCS test_eliminate_dead_const.cpp pass_utils.cpp
+  SRCS eliminate_dead_const_test.cpp pass_utils.cpp
   LIBS SPIRV-Tools-opt
 )
 
 add_spvtools_unittest(TARGET pass_utils
-  SRCS test_utils.cpp pass_utils.cpp
+  SRCS utils_test.cpp pass_utils.cpp
   LIBS SPIRV-Tools-opt
 )
 
 add_spvtools_unittest(TARGET def_use
-  SRCS test_def_use.cpp pass_utils.cpp
+  SRCS def_use_test.cpp pass_utils.cpp
   LIBS SPIRV-Tools-opt
 )
 
 add_spvtools_unittest(TARGET assembly_builder
-  SRCS test_assembly_builder.cpp pass_utils.cpp
+  SRCS assembly_builder_test.cpp pass_utils.cpp
   LIBS SPIRV-Tools-opt
 )
 
 add_spvtools_unittest(TARGET types
-  SRCS test_types.cpp
+  SRCS types_test.cpp
   LIBS SPIRV-Tools-opt
 )
 
 add_spvtools_unittest(TARGET type_manager
-  SRCS test_type_manager.cpp
+  SRCS type_manager_test.cpp
   LIBS SPIRV-Tools-opt
 )
 
 add_spvtools_unittest(TARGET iterator
-  SRCS test_iterator.cpp
+  SRCS iterator_test.cpp
   LIBS SPIRV-Tools-opt
 )
 
 add_spvtools_unittest(TARGET module
   SRCS module_utils.h
-       test_module.cpp
+       module_test.cpp
   LIBS SPIRV-Tools-opt
 )
 
 add_spvtools_unittest(TARGET pass_fold_spec_const_op_composite
-  SRCS test_fold_spec_const_op_composite.cpp pass_utils.cpp
+  SRCS fold_spec_const_op_composite_test.cpp pass_utils.cpp
   LIBS SPIRV-Tools-opt
 )
 
 add_spvtools_unittest(TARGET pass_unify_const
-  SRCS test_unify_const.cpp
+  SRCS unify_const_test.cpp
   LIBS SPIRV-Tools-opt
 )
 
 add_spvtools_unittest(TARGET pass_set_spec_const_default_value
-  SRCS test_set_spec_const_default_value.cpp pass_utils.cpp
+  SRCS set_spec_const_default_value_test.cpp pass_utils.cpp
   LIBS SPIRV-Tools-opt
 )
 
 add_spvtools_unittest(TARGET line_debug_info
-  SRCS test_line_debug_info.cpp pass_utils.cpp
+  SRCS line_debug_info_test.cpp pass_utils.cpp
   LIBS SPIRV-Tools-opt
 )
similarity index 99%
rename from test/opt/test_instruction.cpp
rename to test/opt/instruction_test.cpp
index af6593f..608229f 100644 (file)
@@ -17,7 +17,7 @@
 #include "gmock/gmock.h"
 
 #include "spirv-tools/libspirv.h"
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 namespace {
 
similarity index 98%
rename from test/SoftwareVersion.cpp
rename to test/software_version_test.cpp
index da64e1c..e1b3504 100644 (file)
@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 #include <sstream>
 
similarity index 99%
rename from test/TargetEnv.cpp
rename to test/target_env_test.cpp
index c3d0543..4df5f94 100644 (file)
@@ -14,7 +14,7 @@
 
 #include <gmock/gmock.h>
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 #include "source/spirv_target_env.h"
 
similarity index 99%
rename from test/TestFixture.h
rename to test/test_fixture.h
index f3cd1e4..e2948a8 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef LIBSPIRV_TEST_TEST_FIXTURE_H_
 #define LIBSPIRV_TEST_TEST_FIXTURE_H_
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 namespace spvtest {
 
similarity index 99%
rename from test/TextAdvance.cpp
rename to test/text_advance_test.cpp
index ec430d6..ffc8dbb 100644 (file)
@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 namespace {
 
similarity index 98%
rename from test/TextDestroy.cpp
rename to test/text_destroy_test.cpp
index 61522f6..c956d72 100644 (file)
@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 namespace {
 
similarity index 99%
rename from test/TextLiteral.cpp
rename to test/text_literal_test.cpp
index c866bda..e41a014 100644 (file)
@@ -12,9 +12,9 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
-#include "TestFixture.h"
+#include "test_fixture.h"
 #include "gmock/gmock.h"
 #include "message.h"
 
similarity index 99%
rename from test/TextStartsNewInst.cpp
rename to test/text_start_new_inst_test.cpp
index c7c6d39..6c3e554 100644 (file)
@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 #include <string>
 
similarity index 99%
rename from test/TextToBinary.Annotation.cpp
rename to test/text_to_binary.annotation_test.cpp
index eb6bbf7..e0fe84e 100644 (file)
 // Assembler tests for instructions in the "Annotation" section of the
 // SPIR-V spec.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 #include <sstream>
 #include <tuple>
 
-#include "TestFixture.h"
+#include "test_fixture.h"
 #include "gmock/gmock.h"
 
 namespace {
similarity index 99%
rename from test/TextToBinary.Barrier.cpp
rename to test/text_to_binary.barrier_test.cpp
index 287ec31..c086caa 100644 (file)
@@ -15,9 +15,9 @@
 // Assembler tests for instructions in the "Barrier Instructions" section
 // of the SPIR-V spec.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
-#include "TestFixture.h"
+#include "test_fixture.h"
 #include "gmock/gmock.h"
 
 namespace {
similarity index 99%
rename from test/TextToBinary.Constant.cpp
rename to test/text_to_binary.constant_test.cpp
index b27598e..d975f1c 100644 (file)
 // Assembler tests for instructions in the "Group Instrucions" section of the
 // SPIR-V spec.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 #include <cstdint>
 #include <limits>
 
-#include "TestFixture.h"
+#include "test_fixture.h"
 #include "gmock/gmock.h"
 
 namespace {
similarity index 99%
rename from test/TextToBinary.ControlFlow.cpp
rename to test/text_to_binary.control_flow_test.cpp
index eec8ce8..8152bf2 100644 (file)
@@ -19,9 +19,9 @@
 #include <tuple>
 #include <vector>
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
-#include "TestFixture.h"
+#include "test_fixture.h"
 #include "gmock/gmock.h"
 
 namespace {
similarity index 99%
rename from test/TextToBinary.Debug.cpp
rename to test/text_to_binary.debug_test.cpp
index 2be9be7..cefaaec 100644 (file)
 // Assembler tests for instructions in the "Debug" section of the
 // SPIR-V spec.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 #include <string>
 
-#include "TestFixture.h"
+#include "test_fixture.h"
 #include "gmock/gmock.h"
 
 namespace {
similarity index 98%
rename from test/TextToBinary.DeviceSideEnqueue.cpp
rename to test/text_to_binary.device_side_enqueue_test.cpp
index eaa108e..852eef7 100644 (file)
 // Assembler tests for instructions in the "Device-Side Enqueue Instructions"
 // section of the SPIR-V spec.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 #include "gmock/gmock.h"
-#include "TestFixture.h"
+#include "test_fixture.h"
 
 namespace {
 using spvtest::MakeInstruction;
similarity index 99%
rename from test/TextToBinary.Extension.cpp
rename to test/text_to_binary.extension_test.cpp
index b4508f2..44c9b1b 100644 (file)
@@ -15,9 +15,9 @@
 // Assembler tests for instructions in the "Extension Instruction" section
 // of the SPIR-V spec.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
-#include "TestFixture.h"
+#include "test_fixture.h"
 #include "gmock/gmock.h"
 #include "spirv/1.0/GLSL.std.450.h"
 #include "spirv/1.0/OpenCL.std.h"
similarity index 98%
rename from test/TextToBinary.Function.cpp
rename to test/text_to_binary.function_test.cpp
index 4246bad..5f1b72a 100644 (file)
 // Assembler tests for instructions in the "Function" section of the
 // SPIR-V spec.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 #include "gmock/gmock.h"
-#include "TestFixture.h"
+#include "test_fixture.h"
 
 namespace {
 
similarity index 97%
rename from test/TextToBinary.Group.cpp
rename to test/text_to_binary.group_test.cpp
index fc41646..6fb5706 100644 (file)
 // Assembler tests for instructions in the "Group Instrucions" section of the
 // SPIR-V spec.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 #include "gmock/gmock.h"
-#include "TestFixture.h"
+#include "test_fixture.h"
 
 namespace {
 
similarity index 99%
rename from test/TextToBinary.Image.cpp
rename to test/text_to_binary.image_test.cpp
index 14f389d..51dd52e 100644 (file)
 // Assembler tests for instructions in the "Image Instructions" section of
 // the SPIR-V spec.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 #include "gmock/gmock.h"
-#include "TestFixture.h"
+#include "test_fixture.h"
 
 namespace {
 
similarity index 99%
rename from test/TextToBinary.Literal.cpp
rename to test/text_to_binary.literal_test.cpp
index a4a55e8..4635581 100644 (file)
@@ -14,7 +14,7 @@
 
 // Assembler tests for literal numbers and literal strings.
 
-#include "TestFixture.h"
+#include "test_fixture.h"
 
 namespace {
 
similarity index 98%
rename from test/TextToBinary.Memory.cpp
rename to test/text_to_binary.memory_test.cpp
index 9fbde99..2146fce 100644 (file)
 // Assembler tests for instructions in the "Memory Instructions" section of
 // the SPIR-V spec.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 #include <sstream>
 
 #include "gmock/gmock.h"
-#include "TestFixture.h"
+#include "test_fixture.h"
 
 namespace {
 
similarity index 97%
rename from test/TextToBinary.Miscellaneous.cpp
rename to test/text_to_binary.misc_test.cpp
index c5acd94..470bdca 100644 (file)
@@ -15,9 +15,9 @@
 // Assembler tests for instructions in the "Miscellaneous" section of the
 // SPIR-V spec.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
-#include "TestFixture.h"
+#include "test_fixture.h"
 #include "gmock/gmock.h"
 
 namespace {
similarity index 99%
rename from test/TextToBinary.ModeSetting.cpp
rename to test/text_to_binary.mode_setting_test.cpp
index 8d47010..27991b2 100644 (file)
@@ -15,9 +15,9 @@
 // Assembler tests for instructions in the "Mode-Setting" section of the
 // SPIR-V spec.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
-#include "TestFixture.h"
+#include "test_fixture.h"
 #include "gmock/gmock.h"
 
 namespace {
similarity index 99%
rename from test/TextToBinary.PipeStorage.cpp
rename to test/text_to_binary.pipe_storage_test.cpp
index 3537d83..66d13ea 100644 (file)
@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "TestFixture.h"
+#include "test_fixture.h"
 #include "gmock/gmock.h"
 
 namespace {
similarity index 99%
rename from test/TextToBinary.SubgroupDispatch.cpp
rename to test/text_to_binary.subgroup_dispatch_test.cpp
index 80f3c7e..c74f9a6 100644 (file)
@@ -15,9 +15,9 @@
 // Assembler tests for instructions in the "Barrier Instructions" section
 // of the SPIR-V spec.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
-#include "TestFixture.h"
+#include "test_fixture.h"
 #include "gmock/gmock.h"
 
 namespace {
similarity index 99%
rename from test/TextToBinary.TypeDeclaration.cpp
rename to test/text_to_binary.type_declaration_test.cpp
index 4e548fb..cc2b165 100644 (file)
@@ -15,9 +15,9 @@
 // Assembler tests for instructions in the "Type-Declaration" section of the
 // SPIR-V spec.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
-#include "TestFixture.h"
+#include "test_fixture.h"
 #include "gmock/gmock.h"
 
 namespace {
similarity index 99%
rename from test/TextToBinary.cpp
rename to test/text_to_binary_test.cpp
index 4db3ed2..ff7e04e 100644 (file)
@@ -19,8 +19,8 @@
 
 #include "gmock/gmock.h"
 
-#include "TestFixture.h"
-#include "UnitSPIRV.h"
+#include "test_fixture.h"
+#include "unit_spirv.h"
 #include "source/spirv_constant.h"
 #include "source/util/bitutils.h"
 #include "source/util/hex_float.h"
similarity index 99%
rename from test/TextWordGet.cpp
rename to test/text_word_get_test.cpp
index 3b1e996..dccc713 100644 (file)
@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 namespace {
 
similarity index 97%
rename from test/UnitSPIRV.cpp
rename to test/unit_spirv.cpp
index f89df6e..c2a770a 100644 (file)
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 #include "gmock/gmock.h"
-#include "TestFixture.h"
+#include "test_fixture.h"
 
 namespace {
 
similarity index 100%
rename from test/UnitSPIRV.h
rename to test/unit_spirv.h
index 6518fca..3b79367 100644 (file)
@@ -13,9 +13,9 @@
 # limitations under the License.
 
 set(VAL_TEST_COMMON_SRCS
-  ${CMAKE_CURRENT_SOURCE_DIR}/../TestFixture.h
-  ${CMAKE_CURRENT_SOURCE_DIR}/../UnitSPIRV.h
-  ${CMAKE_CURRENT_SOURCE_DIR}/../UnitSPIRV.cpp
+  ${CMAKE_CURRENT_SOURCE_DIR}/../test_fixture.h
+  ${CMAKE_CURRENT_SOURCE_DIR}/../unit_spirv.h
+  ${CMAKE_CURRENT_SOURCE_DIR}/../unit_spirv.cpp
   ${CMAKE_CURRENT_SOURCE_DIR}/ValidateFixtures.h
   ${CMAKE_CURRENT_SOURCE_DIR}/ValidateFixtures.cpp
 )
index 8fbb0ce..d0461e3 100644 (file)
@@ -25,8 +25,8 @@
 
 #include "gmock/gmock.h"
 
-#include "TestFixture.h"
-#include "UnitSPIRV.h"
+#include "test_fixture.h"
+#include "unit_spirv.h"
 #include "ValidateFixtures.h"
 #include "source/diagnostic.h"
 #include "source/validate.h"
index 5af65d7..494a553 100644 (file)
@@ -15,8 +15,8 @@
 // Validation tests for Logical Layout
 
 #include <gmock/gmock.h>
-#include "TestFixture.h"
-#include "UnitSPIRV.h"
+#include "test_fixture.h"
+#include "unit_spirv.h"
 #include "ValidateFixtures.h"
 #include "source/assembly_grammar.h"
 
index a1256ab..6d5c817 100644 (file)
@@ -21,7 +21,7 @@
 
 #include "gmock/gmock.h"
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 #include "ValidateFixtures.h"
 #include "source/diagnostic.h"
 
index 06f5691..2386b15 100644 (file)
@@ -14,7 +14,7 @@
 
 // Validation tests for SSA
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 #include "ValidateFixtures.h"
 #include "gmock/gmock.h"
 
index 7d0d206..e10a6a6 100644 (file)
@@ -20,7 +20,7 @@
 #include <tuple>
 #include <utility>
 
-#include "TestFixture.h"
+#include "test_fixture.h"
 
 namespace spvtest {
 
index 3ec6627..faab41a 100644 (file)
@@ -17,7 +17,7 @@
 #ifndef LIBSPIRV_TEST_VALIDATE_FIXTURES_H_
 #define LIBSPIRV_TEST_VALIDATE_FIXTURES_H_
 
-#include "UnitSPIRV.h"
+#include "unit_spirv.h"
 
 namespace spvtest {
 
index 727aa95..8a91bc9 100644 (file)
@@ -15,7 +15,7 @@
 #include <sstream>
 #include <string>
 
-#include "TestFixture.h"
+#include "test_fixture.h"
 
 // NOTE: The tests in this file are ONLY testing ID usage, there for the input
 // SPIR-V does not follow the logical layout rules from the spec in all cases in