Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MSK-SW
Low-Level Radio Frequency
Piezo
LLRF Piezo Server
Commits
912b8300
Commit
912b8300
authored
Nov 22, 2022
by
Martin Killenberg
Browse files
use current constructor of TestFacility
parent
65141d52
Pipeline
#42311
failed with stage
in 0 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/testInputRejectedCollector.cc
View file @
912b8300
...
...
@@ -14,7 +14,7 @@ namespace ctk = ChimeraTK;
// Fxture with the stepApplication and test sequence to avoid code duplication
struct
Fixture
{
PiezoCtrlServer
theTestApp
;
ChimeraTK
::
TestFacility
testFacility
;
ChimeraTK
::
TestFacility
testFacility
{
theTestApp
}
;
ctk
::
ScalarRegisterAccessor
<
std
::
string
>
inputRejectedMessage
;
// FIXME: Should be Boolean, but it's not supported by the DOCOS adapter so I fall back to int
...
...
tests/testStateMachine.cc
View file @
912b8300
...
...
@@ -84,7 +84,7 @@ struct Fixture {
if
(
startTestFacility
)
testFacility
.
runApplication
();
}
PiezoCtrlServer
theTestApp
;
ChimeraTK
::
TestFacility
testFacility
;
ChimeraTK
::
TestFacility
testFacility
{
theTestApp
}
;
ctk
::
Device
piezoDriver
;
ctk
::
Device
pzt4
;
// we need the raw device because some lmapped registers are read only
...
...
tests/testSumLimiter.cc
View file @
912b8300
...
...
@@ -16,7 +16,7 @@ namespace ctk = ChimeraTK;
BOOST_AUTO_TEST_CASE
(
testSumLimiter
)
{
PiezoCtrlServer
theTestApp
;
ChimeraTK
::
TestFacility
testFacility
;
ChimeraTK
::
TestFacility
testFacility
(
theTestApp
)
;
testFacility
.
runApplication
();
// all values are 0 at the moment (except for the limit, which is 70, coming from the config)
...
...
@@ -169,7 +169,7 @@ BOOST_AUTO_TEST_CASE(testSumLimiter) {
BOOST_AUTO_TEST_CASE
(
testInitialisation
)
{
{
// new scope
PiezoCtrlServer
theTestApp
;
ChimeraTK
::
TestFacility
testFacility
;
ChimeraTK
::
TestFacility
testFacility
(
theTestApp
)
;
// theTestApp.cs.dump();
...
...
@@ -188,7 +188,7 @@ BOOST_AUTO_TEST_CASE(testInitialisation) {
{
// new scope
PiezoCtrlServer
theTestApp
;
ChimeraTK
::
TestFacility
testFacility
;
ChimeraTK
::
TestFacility
testFacility
(
theTestApp
)
;
// theTestApp.dumpConnections();
...
...
@@ -209,9 +209,7 @@ BOOST_AUTO_TEST_CASE(testInitialisation) {
{
// new scope
PiezoCtrlServer
theTestApp
;
ChimeraTK
::
TestFacility
testFacility
;
// theTestApp.dumpConnections();
ChimeraTK
::
TestFacility
testFacility
(
theTestApp
);
testFacility
.
setScalarDefault
<
double
>
(
"/Channel0/VoltageSumLimiter/acVoltageSetpoint"
,
55.
);
testFacility
.
setScalarDefault
<
double
>
(
"/Channel0/VoltageSumLimiter/dcVoltageSetpoint"
,
-
20.
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment