Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
C
compass-github-pull
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
steinbac
compass-github-pull
Commits
cd00a1c5
Commit
cd00a1c5
authored
Oct 02, 2018
by
Peter Steinbach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
releasing string requirements on device_name
parent
e0a74d34
Pipeline
#635
passed with stages
in 1 minute and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
tests/test_build_machine.cpp
tests/test_build_machine.cpp
+3
-1
No files found.
tests/test_build_machine.cpp
View file @
cd00a1c5
...
@@ -38,12 +38,14 @@ TEST_CASE_METHOD( host_reference, "machine_specific" ){
...
@@ -38,12 +38,14 @@ TEST_CASE_METHOD( host_reference, "machine_specific" ){
SECTION
(
"device_name_right"
){
SECTION
(
"device_name_right"
){
auto
value
=
compass
::
runtime
::
device_name
();
auto
value
=
compass
::
runtime
::
device_name
();
auto
brand
=
compass
::
runtime
::
brand
();
if
(
expected_device_name
.
size
()
>
0
){
if
(
expected_device_name
.
size
()
>
0
){
REQUIRE
(
value
.
size
()
==
expected_device_name
.
size
());
REQUIRE
(
value
.
size
()
==
expected_device_name
.
size
());
REQUIRE_THAT
(
value
,
Catch
::
Matchers
::
Contains
(
expected_device_name
)
);
REQUIRE_THAT
(
value
,
Catch
::
Matchers
::
Contains
(
expected_device_name
)
);
}
else
{
}
else
{
REQUIRE
(
value
.
size
()
>
0
);
REQUIRE
(
value
.
size
()
>=
0
);
REQUIRE
(
value
.
size
()
<=
brand
.
size
());
}
}
}
}
...
...
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