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

server based test for global writeable flag. all 'positive' tests moved from...

server based test for global writeable flag. all 'positive' tests moved from testVariableMapper to server based now. Errorhandling stays extra for the moment.
parent b21dd109
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">
<is_writeable>false</is_writeable>
<location name="DOUBLE">
<is_writeable>true</is_writeable>
<property source="TO_DEVICE_SCALAR">
<is_writeable>false</is_writeable>
</property>
<!-- to test that it picks up the default when explicitly mentioned as property-->
<property source="/DOUBLE/TO_DEVICE_ARRAY" name="TO_DEVICE_ARRAY"/>
<!-- to test that it picks up the default when being imported-->
<import>/DOUBLE</import>
</location>
<location name="FLOAT">
<property source="TO_DEVICE_ARRAY">
<is_writeable>true</is_writeable>
</property>
<import>/FLOAT</import>
</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: "GLOBAL_ON_OFF_WRITEABLE_TEST._SVR"
eq_fct_type: 1
{
SVR.RPC_NUMBER: 610498009
SVR.NAME: "GLOBAL_ON_OFF_WRITEABLE_TEST._SVR"
SVR.RATE: 57005 48879 0 0
SVR.BPN: 6000
}
eq_fct_name: "INT"
eq_fct_type: 10
{
NAME: "INT"
}
eq_fct_name: "SHORT"
eq_fct_type: 10
{
NAME: "SHORT"
}
eq_fct_name: "FLOAT"
eq_fct_type: 10
{
NAME: "FLOAT"
}
eq_fct_name: "DOUBLE"
eq_fct_type: 10
{
NAME: "DOUBLE"
}
eq_fct_name: "UINT"
eq_fct_type: 10
{
NAME: "UINT"
}
eq_fct_name: "USHORT"
eq_fct_type: 10
{
NAME: "USHORT"
}
eq_fct_name: "CHAR"
eq_fct_type: 10
{
NAME: "CHAR"
}
eq_fct_name: "UCHAR"
eq_fct_type: 10
{
NAME: "UCHAR"
}
......@@ -177,16 +177,6 @@ BOOST_AUTO_TEST_CASE( testUnkownLocationNode ){
}
}
BOOST_AUTO_TEST_CASE( testLocationTurnOffOn ){
testXmlParsing("variableTreeXml/locationTurnOffOn.xml", { {"/A/a/di", {"/A/a/di","DUMMY_LOCATION","a.di",false}},
{"/A/a/do", {"/A/a/do","DUMMY_LOCATION","A.a.do",true}},
{"/A/b", {"/A/b","DUMMY_LOCATION","b",false}},
{"/B/a/dr", {"/B/a/dr","ANOTHER_LOCATION","a.dr",true, false}},
{"/B/c/de", {"/B/c/de","ANOTHER_LOCATION","c.de",true, false}},
{"/B/c/gne", {"/B/c/gne","ANOTHER_LOCATION","WRITE_ME"}},
});
}
BOOST_AUTO_TEST_CASE( testGlobalTurnOffOnHistory ){
testXmlParsing("variableTreeXml/globalTurnOnOffHistory.xml",
{ {"/A/a/di", {"/A/a/di","DUMMY_LOCATION","a.di",true}},
......
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