Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
6dd3cc0e
"benchmark/vscode:/vscode.git/clone" did not exist on "ef8ec07b2ce4c70c2a33ec5acda4ce529bc3cda4"
Commit
6dd3cc0e
authored
Apr 23, 2018
by
Paul
Browse files
Check tests
parent
febb47e0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
.clang-tidy
.clang-tidy
+2
-2
test/CMakeLists.txt
test/CMakeLists.txt
+1
-1
test/literal_test.cpp
test/literal_test.cpp
+2
-2
test/shape_test.cpp
test/shape_test.cpp
+1
-1
No files found.
.clang-tidy
View file @
6dd3cc0e
...
@@ -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: '
30
0'
value: '
15
0'
- 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
...
...
test/CMakeLists.txt
View file @
6dd3cc0e
...
@@ -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"
)
...
...
test/literal_test.cpp
View file @
6dd3cc0e
...
@@ -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
()
...
...
test/shape_test.cpp
View file @
6dd3cc0e
...
@@ -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
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment