Commit 6dd3cc0e authored by Paul's avatar Paul
Browse files

Check tests

parent febb47e0
...@@ -6,11 +6,11 @@ CheckOptions: ...@@ -6,11 +6,11 @@ CheckOptions:
- key: readability-function-size.LineThreshold - key: readability-function-size.LineThreshold
value: '300' value: '300'
- key: readability-function-size.NestingThreshold - key: readability-function-size.NestingThreshold
value: '8' value: '5'
- key: readability-function-size.ParameterThreshold - key: readability-function-size.ParameterThreshold
value: '10' value: '10'
- key: readability-function-size.StatementThreshold - key: readability-function-size.StatementThreshold
value: '300' value: '150'
- key: readability-identifier-naming.Namespace - key: readability-identifier-naming.Namespace
value: snake_case value: snake_case
- key: readability-identifier-naming.InlineNamespace - key: readability-identifier-naming.InlineNamespace
......
...@@ -43,7 +43,7 @@ endfunction() ...@@ -43,7 +43,7 @@ endfunction()
function(add_test_executable TEST_NAME) function(add_test_executable TEST_NAME)
add_executable (${TEST_NAME} EXCLUDE_FROM_ALL ${ARGN}) add_executable (${TEST_NAME} EXCLUDE_FROM_ALL ${ARGN})
# clang_tidy_check(${TEST_NAME}) rocm_clang_tidy_check(${TEST_NAME})
target_link_libraries(${TEST_NAME} ${CMAKE_THREAD_LIBS_INIT}) target_link_libraries(${TEST_NAME} ${CMAKE_THREAD_LIBS_INIT})
# Cmake does not add flags correctly for gcc # Cmake does not add flags correctly for gcc
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU") if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
......
...@@ -12,7 +12,7 @@ void literal_test() ...@@ -12,7 +12,7 @@ void literal_test()
EXPECT(rtg::literal{} != rtg::literal{2}); EXPECT(rtg::literal{} != rtg::literal{2});
rtg::literal l1{1}; rtg::literal l1{1};
rtg::literal l2 = l1; rtg::literal l2 = l1; // NOLINT
EXPECT(l1 == l2); EXPECT(l1 == l2);
EXPECT(l1.at<int>(0) == 1); EXPECT(l1.at<int>(0) == 1);
EXPECT(!l1.empty()); EXPECT(!l1.empty());
...@@ -38,7 +38,7 @@ void literal_os2() ...@@ -38,7 +38,7 @@ void literal_os2()
rtg::literal l{}; rtg::literal l{};
std::stringstream ss; std::stringstream ss;
ss << l; ss << l;
EXPECT(ss.str() == ""); EXPECT(ss.str().empty());
} }
void literal_os3() void literal_os3()
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
void test_shape_assign() void test_shape_assign()
{ {
rtg::shape s1{rtg::shape::float_type, {100, 32, 8, 8}}; rtg::shape s1{rtg::shape::float_type, {100, 32, 8, 8}};
rtg::shape s2 = s1; rtg::shape s2 = s1; // NOLINT
EXPECT(s1 == s2); EXPECT(s1 == s2);
EXPECT(!(s1 != s2)); EXPECT(!(s1 != s2));
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment