Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ApplicationCore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ChimeraTK Mirror
ApplicationCore
Commits
0de4d30b
Commit
0de4d30b
authored
4 years ago
by
Martin Christoph Hierholzer
Browse files
Options
Downloads
Patches
Plain Diff
code formatting
parent
794c5d50
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/executables_src/testPropagateDataFaultFlag.cc
+22
-0
22 additions, 0 deletions
tests/executables_src/testPropagateDataFaultFlag.cc
with
22 additions
and
0 deletions
tests/executables_src/testPropagateDataFaultFlag.cc
+
22
−
0
View file @
0de4d30b
...
...
@@ -26,6 +26,9 @@ namespace ctk = ChimeraTK;
/* dummy application */
/*********************************************************************************************************************/
/*********************************************************************************************************************/
struct
TestModule1
:
ctk
::
ApplicationModule
{
using
ctk
::
ApplicationModule
::
ApplicationModule
;
ctk
::
ScalarPushInput
<
int
>
i1
{
this
,
"i1"
,
""
,
""
};
...
...
@@ -72,6 +75,7 @@ struct TestApplication2 : ctk::Application {
TestModule1
t1
{
this
,
"t1"
,
""
};
ctk
::
ControlSystemModule
cs
;
};
/*********************************************************************************************************************/
// first test without FanOuts of any kind
...
...
@@ -332,6 +336,7 @@ BOOST_AUTO_TEST_CASE(testWithFanOut) {
BOOST_CHECK_EQUAL
(
int
(
Bi1
),
6
);
}
/*********************************************************************************************************************/
/*********************************************************************************************************************/
/*
* Tests below verify data fault flag propagation on:
...
...
@@ -426,6 +431,9 @@ struct TestApplication3 : ctk::Application {
}
};
/*********************************************************************************************************************/
/*********************************************************************************************************************/
struct
Fixture_testFacility
{
Fixture_testFacility
()
:
device1DummyBackend
(
boost
::
dynamic_pointer_cast
<
ctk
::
ExceptionDummy
>
(
...
...
@@ -450,6 +458,8 @@ struct Fixture_testFacility {
BOOST_FIXTURE_TEST_SUITE
(
data_validity_propagation
,
Fixture_testFacility
)
/*********************************************************************************************************************/
BOOST_AUTO_TEST_CASE
(
testThreadedFanout
)
{
std
::
cout
<<
"testThreadedFanout"
<<
std
::
endl
;
auto
threadedFanoutInput
=
test
.
getScalar
<
int
>
(
"m1/o1"
);
...
...
@@ -502,6 +512,8 @@ BOOST_AUTO_TEST_CASE(testThreadedFanout) {
BOOST_CHECK
(
m2_result
.
dataValidity
()
==
ctk
::
DataValidity
::
ok
);
}
/*********************************************************************************************************************/
BOOST_AUTO_TEST_CASE
(
testInvalidTrigger
)
{
std
::
cout
<<
"testInvalidTrigger"
<<
std
::
endl
;
...
...
@@ -555,6 +567,9 @@ BOOST_AUTO_TEST_CASE(testInvalidTrigger) {
BOOST_AUTO_TEST_SUITE_END
()
/*********************************************************************************************************************/
/*********************************************************************************************************************/
struct
Fixture_noTestableMode
{
Fixture_noTestableMode
()
:
device1DummyBackend
(
boost
::
dynamic_pointer_cast
<
ctk
::
ExceptionDummy
>
(
...
...
@@ -894,6 +909,9 @@ BOOST_AUTO_TEST_CASE(testDataFlowOnDeviceException) {
BOOST_AUTO_TEST_SUITE_END
()
/*********************************************************************************************************************/
/*********************************************************************************************************************/
// Module and Application for test case "testDataValidPropagationOnException"
struct
Module3
:
ctk
::
ApplicationModule
{
using
ctk
::
ApplicationModule
::
ApplicationModule
;
...
...
@@ -931,6 +949,8 @@ struct TestApplication4 : ctk::Application {
}
};
/*********************************************************************************************************************/
BOOST_AUTO_TEST_CASE
(
testDataValidPropagationOnException
)
{
std
::
cout
<<
"testDataValidPropagationOnException"
<<
std
::
endl
;
...
...
@@ -1050,3 +1070,5 @@ BOOST_AUTO_TEST_CASE(testDataValidPropagationOnException) {
// nothing more in the queue
BOOST_CHECK
(
result
.
readLatest
()
==
false
);
}
/*********************************************************************************************************************/
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment