mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-26 05:10:05 +00:00
Rename validation tests to comply with Google style guide.
This commit is contained in:
parent
6c899a52f9
commit
2881fe958f
@ -16,55 +16,55 @@ set(VAL_TEST_COMMON_SRCS
|
||||
${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
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/val_fixtures.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/val_fixtures.cpp
|
||||
)
|
||||
|
||||
|
||||
add_spvtools_unittest(TARGET val_capability
|
||||
SRCS ${CMAKE_CURRENT_SOURCE_DIR}/Validate.Capability.cpp
|
||||
SRCS val_capability_test.cpp
|
||||
${VAL_TEST_COMMON_SRCS}
|
||||
LIBS ${SPIRV_TOOLS}
|
||||
)
|
||||
|
||||
add_spvtools_unittest(TARGET val_cfg
|
||||
SRCS ${CMAKE_CURRENT_SOURCE_DIR}/Validate.CFG.cpp
|
||||
SRCS val_cfg_test.cpp
|
||||
${VAL_TEST_COMMON_SRCS}
|
||||
LIBS ${SPIRV_TOOLS}
|
||||
)
|
||||
|
||||
add_spvtools_unittest(TARGET val_id
|
||||
SRCS ${CMAKE_CURRENT_SOURCE_DIR}/ValidateID.cpp
|
||||
SRCS val_id_test.cpp
|
||||
${VAL_TEST_COMMON_SRCS}
|
||||
LIBS ${SPIRV_TOOLS}
|
||||
)
|
||||
|
||||
add_spvtools_unittest(TARGET val_layout
|
||||
SRCS ${CMAKE_CURRENT_SOURCE_DIR}/Validate.Layout.cpp
|
||||
SRCS val_layout_test.cpp
|
||||
${VAL_TEST_COMMON_SRCS}
|
||||
LIBS ${SPIRV_TOOLS}
|
||||
)
|
||||
|
||||
add_spvtools_unittest(TARGET val_ssa
|
||||
SRCS ${CMAKE_CURRENT_SOURCE_DIR}/Validate.SSA.cpp
|
||||
SRCS val_ssa_test.cpp
|
||||
${VAL_TEST_COMMON_SRCS}
|
||||
LIBS ${SPIRV_TOOLS}
|
||||
)
|
||||
|
||||
add_spvtools_unittest(TARGET val_storage
|
||||
SRCS ${CMAKE_CURRENT_SOURCE_DIR}/Validate.Storage.cpp
|
||||
SRCS val_storage_test.cpp
|
||||
${VAL_TEST_COMMON_SRCS}
|
||||
LIBS ${SPIRV_TOOLS}
|
||||
)
|
||||
|
||||
add_spvtools_unittest(TARGET val_state
|
||||
SRCS ${CMAKE_CURRENT_SOURCE_DIR}/ValidationState.cpp
|
||||
SRCS val_state_test.cpp
|
||||
${VAL_TEST_COMMON_SRCS}
|
||||
LIBS ${SPIRV_TOOLS}
|
||||
)
|
||||
|
||||
add_spvtools_unittest(TARGET val_data
|
||||
SRCS ${CMAKE_CURRENT_SOURCE_DIR}/Validate.Data.cpp
|
||||
SRCS val_data_test.cpp
|
||||
${VAL_TEST_COMMON_SRCS}
|
||||
LIBS ${SPIRV_TOOLS}
|
||||
)
|
||||
|
@ -14,17 +14,18 @@
|
||||
|
||||
// Validation tests for Logical Layout
|
||||
|
||||
#include <gmock/gmock.h>
|
||||
#include "test_fixture.h"
|
||||
#include "unit_spirv.h"
|
||||
#include "ValidateFixtures.h"
|
||||
#include "source/assembly_grammar.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
#include <utility>
|
||||
|
||||
#include <gmock/gmock.h>
|
||||
|
||||
#include "source/assembly_grammar.h"
|
||||
#include "test_fixture.h"
|
||||
#include "unit_spirv.h"
|
||||
#include "val_fixtures.h"
|
||||
|
||||
namespace {
|
||||
|
||||
using spvtest::ScopedContext;
|
@ -27,7 +27,7 @@
|
||||
|
||||
#include "test_fixture.h"
|
||||
#include "unit_spirv.h"
|
||||
#include "ValidateFixtures.h"
|
||||
#include "val_fixtures.h"
|
||||
#include "source/diagnostic.h"
|
||||
#include "source/validate.h"
|
||||
|
@ -14,14 +14,14 @@
|
||||
|
||||
// Validation tests for Data Rules.
|
||||
|
||||
#include "unit_spirv.h"
|
||||
#include "ValidateFixtures.h"
|
||||
#include "gmock/gmock.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "gmock/gmock.h"
|
||||
#include "unit_spirv.h"
|
||||
#include "val_fixtures.h"
|
||||
|
||||
using ::testing::HasSubstr;
|
||||
using ::testing::MatchesRegex;
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
// Common validation fixtures for unit tests
|
||||
|
||||
#include "ValidateFixtures.h"
|
||||
#include "val_fixtures.h"
|
||||
|
||||
#include <functional>
|
||||
#include <tuple>
|
@ -21,9 +21,9 @@
|
||||
|
||||
#include "gmock/gmock.h"
|
||||
|
||||
#include "unit_spirv.h"
|
||||
#include "ValidateFixtures.h"
|
||||
#include "source/diagnostic.h"
|
||||
#include "unit_spirv.h"
|
||||
#include "val_fixtures.h"
|
||||
|
||||
using std::function;
|
||||
using std::ostream;
|
@ -14,14 +14,14 @@
|
||||
|
||||
// Validation tests for SSA
|
||||
|
||||
#include "unit_spirv.h"
|
||||
#include "ValidateFixtures.h"
|
||||
#include "gmock/gmock.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "gmock/gmock.h"
|
||||
#include "unit_spirv.h"
|
||||
#include "val_fixtures.h"
|
||||
|
||||
using ::testing::HasSubstr;
|
||||
using ::testing::MatchesRegex;
|
||||
|
@ -15,8 +15,6 @@
|
||||
|
||||
// Unit tests for ValidationState_t.
|
||||
|
||||
#include "val/ValidationState.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
@ -25,6 +23,7 @@
|
||||
#include "enum_set.h"
|
||||
#include "val/Construct.h"
|
||||
#include "val/Function.h"
|
||||
#include "val/ValidationState.h"
|
||||
#include "validate.h"
|
||||
|
||||
namespace {
|
@ -18,8 +18,8 @@
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
#include "ValidateFixtures.h"
|
||||
#include "gmock/gmock.h"
|
||||
#include "val_fixtures.h"
|
||||
|
||||
using ValidateStorage = spvtest::ValidateBase<std::string>;
|
||||
|
Loading…
Reference in New Issue
Block a user