Commit 912b8300 authored by Martin Killenberg's avatar Martin Killenberg
Browse files

use current constructor of TestFacility

parent 65141d52
Pipeline #42311 failed with stage
in 0 seconds
......@@ -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
......
......@@ -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
......
......@@ -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.);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment