Skip to content
Snippets Groups Projects
Commit 5b54aa11 authored by Martin Killenberg's avatar Martin Killenberg
Browse files

IFFF: added config and DoocsVariableConfig for test. Now fails because not known in XML

parent 2bbcab89
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?>
<device_server xmlns="https://github.com/ChimeraTK/ControlSystemAdapter-DoocsAdapter">
<location name="CUSTOM">
<D_ifff name="IFFF"
i1_source="/INT/FROM_DEVICE_SCALAR"
f1_source="/FLOAT/FROM_DEVICE_SCALAR"
f2_source="/DOUBLE/FROM_DEVICE_SCALAR"
f3_source="/SHORT/FROM_DEVICE_SCALAR">
</D_ifff>
</location>
<import>/</import>
</device_server>
eq_conf:
oper_uid: -1
oper_gid: 405
xpert_uid: 1000
xpert_gid: 1000
ring_buffer: 10000
memory_buffer: 500
eq_fct_name: "IFFF_TEST._SVR"
eq_fct_type: 1
{
SVR.RPC_NUMBER: 700000007
SVR.NAME: "IFFF_TEST._SVR"
SVR.BPN: 6000
}
...@@ -71,18 +71,18 @@ std::string DoocsLauncher::rpc_no; ...@@ -71,18 +71,18 @@ std::string DoocsLauncher::rpc_no;
BOOST_GLOBAL_FIXTURE(DoocsLauncher); BOOST_GLOBAL_FIXTURE(DoocsLauncher);
/**********************************************************************************************************************/ /**********************************************************************************************************************/
BOOST_AUTO_TEST_CASE(testIfffUpdate) { BOOST_AUTO_TEST_CASE(testIfffUpdate) {
std::cout << "testIfffUpdate" << std::endl; std::cout << "testIfffUpdate" << std::endl;
auto extractValue = []() -> IFFF { auto extractValue = []() -> IFFF {
auto d_ifff = getDoocsProperty<D_ifff>(PROPERTY_NAME); auto d_ifff = getDoocsProperty<D_ifff>(PROPERTY_NAME);
auto location = getLocationFromPropertyAddress(PROPERTY_NAME); auto location = getLocationFromPropertyAddress(PROPERTY_NAME);
IFFF value; // a copy of the value. We don't want to hold the location lock longer than needed IFFF value; // a copy of the value. We don't want to hold the location lock longer than needed
location->lock(); location->lock();
value = *(d_ifff->value()); // value returs a pointer which we only must dereference while holding the lock. So we make a copy value = *(
d_ifff
->value()); // value returs a pointer which we only must dereference while holding the lock. So we make a copy
location->unlock(); location->unlock();
return value; return value;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment