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
14405df2
Commit
14405df2
authored
6 years ago
by
Martin Christoph Hierholzer
Browse files
Options
Downloads
Patches
Plain Diff
removed unnecessary code, added some helpful couts
parent
936d7c0d
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/testDirectDeviceToCS.cc
+2
-14
2 additions, 14 deletions
tests/executables_src/testDirectDeviceToCS.cc
with
2 additions
and
14 deletions
tests/executables_src/testDirectDeviceToCS.cc
+
2
−
14
View file @
14405df2
...
...
@@ -37,19 +37,6 @@ typedef boost::mpl::list<int8_t,uint8_t,
} \
}
/*********************************************************************************************************************/
/* the ApplicationModule for the test is a template of the user type */
template
<
typename
T
>
struct
TestModule
:
public
ctk
::
ApplicationModule
{
using
ctk
::
ApplicationModule
::
ApplicationModule
;
ctk
::
ScalarPushInput
<
T
>
consumer
{
this
,
"consumer"
,
""
,
"No comment."
};
ctk
::
ScalarOutput
<
T
>
feeder
{
this
,
"feeder"
,
"MV/m"
,
"Some fancy explanation about this variable"
};
void
mainLoop
()
{}
};
/*********************************************************************************************************************/
/* dummy application */
...
...
@@ -63,7 +50,6 @@ struct TestApplication : public ctk::Application {
using
Application
::
makeConnections
;
// we call makeConnections() manually in the tests to catch exceptions etc.
void
defineConnections
()
{}
// the setup is done in the tests
TestModule
<
T
>
testModule
{
this
,
"TestModule"
,
"The test module"
};
ctk
::
ControlSystemModule
cs
;
ctk
::
DeviceModule
dev
{
"Dummy0"
};
...
...
@@ -139,6 +125,7 @@ void testDirectRegister(ctk::TestFacility &test, ChimeraTK::ScalarRegisterAccess
/* test direct control system to device connections */
BOOST_AUTO_TEST_CASE_TEMPLATE
(
testDirectCStoDev
,
T
,
test_types
)
{
std
::
cout
<<
"testDirectCStoDev"
<<
std
::
endl
;
TestApplication
<
T
>
app
;
...
...
@@ -170,6 +157,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE( testDirectCStoDev, T, test_types ) {
/* test direct control system to device connections with fan out */
BOOST_AUTO_TEST_CASE_TEMPLATE
(
testDirectCStoDevFanOut
,
T
,
test_types
)
{
std
::
cout
<<
"testDirectCStoDevFanOut"
<<
std
::
endl
;
TestApplication
<
T
>
app
;
...
...
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