diff options
Diffstat (limited to 'test/functional-tests/xml/XML_Test')
10 files changed, 1103 insertions, 0 deletions
diff --git a/test/functional-tests/xml/XML_Test/Reference_Compliant.xml b/test/functional-tests/xml/XML_Test/Reference_Compliant.xml new file mode 100644 index 0000000..48b1720 --- /dev/null +++ b/test/functional-tests/xml/XML_Test/Reference_Compliant.xml @@ -0,0 +1,182 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ConfigurableDomains xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="/home/lab/ICS/hardware/intel/PRIVATE/parameter-framework/test/configuration/Schemas/ConfigurableDomains.xsd" SystemClassName="Test"> + <ConfigurableDomain Name="Domain_1"> + <Configurations> + <Configuration Name="Conf_1_0"> + <CompoundRule Type="All"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x1"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="Is" Value="State_1"/> + </CompoundRule> + </Configuration> + <Configuration Name="Conf_1_1"> + <CompoundRule Type="Any"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x2"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="IsNot" Value="State_1"/> + </CompoundRule> + </Configuration> + </Configurations> + <ConfigurableElements> + <ConfigurableElement Path="/Test/Test/TEST_DIR" /> + </ConfigurableElements> + <Settings> + <Configuration Name="Conf_1_1"> + <ConfigurableElement Path="/Test/Test/TEST_DIR"> + <Component Name="TEST_DIR"> + <!-- Tested Booleans --> + <BooleanParameter Name="BOOL">0</BooleanParameter> + <!-- Tested FixedPoints --> + <FixedPointParameter Name="FP8_Q0.7">0.1</FixedPointParameter> + <FixedPointParameter Name="FP8_Q7.0">2</FixedPointParameter> + <FixedPointParameter Name="FP8_Q3.4">2.1</FixedPointParameter> + <FixedPointParameter Name="FP16_Q0.15">0.1</FixedPointParameter> + <FixedPointParameter Name="FP16_Q15.0">2</FixedPointParameter> + <FixedPointParameter Name="FP16_Q7.8">2</FixedPointParameter> + <FixedPointParameter Name="FP32_Q0.31">0.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q31.0">2</FixedPointParameter> + <FixedPointParameter Name="FP32_Q15.16">2.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q8.20">2.1</FixedPointParameter> + <!-- Tested Integers --> + <IntegerParameter Name="UINT32">0</IntegerParameter> + <IntegerParameter Name="INT32">0</IntegerParameter> + <IntegerParameter Name="UINT32_Max">0</IntegerParameter> + <IntegerParameter Name="INT32_Max">0</IntegerParameter> + <IntegerParameter Name="UINT16">0</IntegerParameter> + <IntegerParameter Name="INT16">0</IntegerParameter> + <IntegerParameter Name="UINT16_Max">0</IntegerParameter> + <IntegerParameter Name="INT16_Max">0</IntegerParameter> + <IntegerParameter Name="UINT8">0</IntegerParameter> + <IntegerParameter Name="INT8">0</IntegerParameter> + <IntegerParameter Name="UINT8_Max">0</IntegerParameter> + <IntegerParameter Name="INT8_Max">0</IntegerParameter> + <!-- Tested Arrays --> + <IntegerParameter Name="UINT32_ARRAY">0</IntegerParameter> + <IntegerParameter Name="INT16_ARRAY">0</IntegerParameter> + <IntegerParameter Name="UINT8_ARRAY">0</IntegerParameter> + <IntegerParameter Name="UINT8_Max_ARRAY">0</IntegerParameter> + <!-- Tested String--> + <StringParameter Name="STR_CHAR128">string_Conf_1_1</StringParameter> + </Component> + </ConfigurableElement> + </Configuration> + <Configuration Name="Conf_1_0"> + <ConfigurableElement Path="/Test/Test/TEST_DIR"> + <Component Name="TEST_DIR"> + <!-- Tested Booleans --> + <BooleanParameter Name="BOOL">1</BooleanParameter> + <!-- Tested FixedPoints --> + <FixedPointParameter Name="FP8_Q0.7">0.2</FixedPointParameter> + <FixedPointParameter Name="FP8_Q7.0">1</FixedPointParameter> + <FixedPointParameter Name="FP8_Q3.4">1.2</FixedPointParameter> + <FixedPointParameter Name="FP16_Q0.15">0.2</FixedPointParameter> + <FixedPointParameter Name="FP16_Q15.0">1</FixedPointParameter> + <FixedPointParameter Name="FP16_Q7.8">1.2</FixedPointParameter> + <FixedPointParameter Name="FP32_Q0.31">0.2</FixedPointParameter> + <FixedPointParameter Name="FP32_Q31.0">1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q15.16">1.2</FixedPointParameter> + <FixedPointParameter Name="FP32_Q8.20">1.2</FixedPointParameter> + <!-- Tested Integers --> + <IntegerParameter Name="UINT32">1</IntegerParameter> + <IntegerParameter Name="INT32">-1</IntegerParameter> + <IntegerParameter Name="UINT32_Max">1</IntegerParameter> + <IntegerParameter Name="INT32_Max">-1</IntegerParameter> + <IntegerParameter Name="UINT16">1</IntegerParameter> + <IntegerParameter Name="INT16">-1</IntegerParameter> + <IntegerParameter Name="UINT16_Max">1</IntegerParameter> + <IntegerParameter Name="INT16_Max">-1</IntegerParameter> + <IntegerParameter Name="UINT8">1</IntegerParameter> + <IntegerParameter Name="INT8">-1</IntegerParameter> + <IntegerParameter Name="UINT8_Max">1</IntegerParameter> + <IntegerParameter Name="INT8_Max">-1</IntegerParameter> + <!-- Tested Arrays --> + <IntegerParameter Name="UINT32_ARRAY">1</IntegerParameter> + <IntegerParameter Name="INT16_ARRAY">-1</IntegerParameter> + <IntegerParameter Name="UINT8_ARRAY">1</IntegerParameter> + <IntegerParameter Name="UINT8_Max_ARRAY">1</IntegerParameter> + <!-- Tested String--> + <StringParameter Name="STR_CHAR128">string_Conf_1_0</StringParameter> + </Component> + </ConfigurableElement> + </Configuration> + </Settings> + </ConfigurableDomain> + + <ConfigurableDomain Name="Domain_2"> + <Configurations> + <Configuration Name="Conf_2_0"> + <CompoundRule Type="All"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x1"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="Is" Value="State_1"/> + </CompoundRule> + </Configuration> + <Configuration Name="Conf_2_1"> + <CompoundRule Type="Any"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x2"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="IsNot" Value="State_1"/> + </CompoundRule> + </Configuration> + </Configurations> + <ConfigurableElements> + <ConfigurableElement Path="/Test/Test/TEST_DOMAIN_0" /> + </ConfigurableElements> + <Settings> + <Configuration Name="Conf_2_1"> + <ConfigurableElement Path="/Test/Test/TEST_DOMAIN_0"> + <Component Name="TEST_DOMAIN_0"> + <IntegerParameter Name="Param_00">4</IntegerParameter> + <IntegerParameter Name="Param_01">4</IntegerParameter> + <IntegerParameter Name="Param_02">4</IntegerParameter> + </Component> + </ConfigurableElement> + </Configuration> + <Configuration Name="Conf_2_0"> + <ConfigurableElement Path="/Test/Test/TEST_DOMAIN_0"> + <Component Name="TEST_DOMAIN_0"> + <IntegerParameter Name="Param_00">5</IntegerParameter> + <IntegerParameter Name="Param_01">5</IntegerParameter> + <IntegerParameter Name="Param_02">5</IntegerParameter> + </Component> + </ConfigurableElement> + </Configuration> + </Settings> + </ConfigurableDomain> + + <ConfigurableDomain Name="Domain_3"> + <Configurations> + <Configuration Name="Conf_3_0"> + <CompoundRule Type="All"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x1"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="Is" Value="State_1"/> + </CompoundRule> + </Configuration> + <Configuration Name="Conf_3_1"> + <CompoundRule Type="Any"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x2"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="IsNot" Value="State_1"/> + </CompoundRule> + </Configuration> + </Configurations> + <ConfigurableElements> + <ConfigurableElement Path="/Test/Test/TEST_DOMAIN_1" /> + </ConfigurableElements> + <Settings> + <Configuration Name="Conf_3_1"> + <ConfigurableElement Path="/Test/Test/TEST_DOMAIN_1"> + <Component Name="TEST_DOMAIN_1"> + <IntegerParameter Name="Param_10">4</IntegerParameter> + <IntegerParameter Name="Param_11">4</IntegerParameter> + <IntegerParameter Name="Param_12">4</IntegerParameter> + </Component> + </ConfigurableElement> + </Configuration> + <Configuration Name="Conf_3_0"> + <ConfigurableElement Path="/Test/Test/TEST_DOMAIN_1"> + <Component Name="TEST_DOMAIN_1"> + <IntegerParameter Name="Param_10">5</IntegerParameter> + <IntegerParameter Name="Param_11">5</IntegerParameter> + <IntegerParameter Name="Param_12">5</IntegerParameter> + </Component> + </ConfigurableElement> + </Configuration> + </Settings> + </ConfigurableDomain> +</ConfigurableDomains> diff --git a/test/functional-tests/xml/XML_Test/Reference_Criteria.xml b/test/functional-tests/xml/XML_Test/Reference_Criteria.xml new file mode 100644 index 0000000..76664e2 --- /dev/null +++ b/test/functional-tests/xml/XML_Test/Reference_Criteria.xml @@ -0,0 +1,182 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ConfigurableDomains xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../Schemas/ConfigurableDomains.xsd" SystemClassName="Test"> + <ConfigurableDomain Name="Domain_1"> + <Configurations> + <Configuration Name="Conf_1_0"> + <CompoundRule Type="All"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x1"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="Is" Value="State_1"/> + </CompoundRule> + </Configuration> + <Configuration Name="Conf_1_1"> + <CompoundRule Type="Any"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Excludes" Value="State_0x1"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="IsNot" Value="State_1"/> + </CompoundRule> + </Configuration> + </Configurations> + <ConfigurableElements> + <ConfigurableElement Path="/Test/Test/TEST_DIR" /> + </ConfigurableElements> + <Settings> + <Configuration Name="Conf_1_1"> + <ConfigurableElement Path="/Test/Test/TEST_DIR"> + <Component Name="TEST_DIR"> + <!-- Tested Booleans --> + <BooleanParameter Name="BOOL">0</BooleanParameter> + <!-- Tested FixedPoints --> + <FixedPointParameter Name="FP8_Q0.7">0.1</FixedPointParameter> + <FixedPointParameter Name="FP8_Q7.0">1</FixedPointParameter> + <FixedPointParameter Name="FP8_Q3.4">0.1</FixedPointParameter> + <FixedPointParameter Name="FP16_Q0.15">0.1</FixedPointParameter> + <FixedPointParameter Name="FP16_Q15.0">1</FixedPointParameter> + <FixedPointParameter Name="FP16_Q7.8">0.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q0.31">0.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q31.0">1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q15.16">0.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q8.20">0.1</FixedPointParameter> + <!-- Tested Integers --> + <IntegerParameter Name="UINT32">0</IntegerParameter> + <IntegerParameter Name="INT32">0</IntegerParameter> + <IntegerParameter Name="UINT32_Max">0</IntegerParameter> + <IntegerParameter Name="INT32_Max">0</IntegerParameter> + <IntegerParameter Name="UINT16">0</IntegerParameter> + <IntegerParameter Name="INT16">0</IntegerParameter> + <IntegerParameter Name="UINT16_Max">0</IntegerParameter> + <IntegerParameter Name="INT16_Max">0</IntegerParameter> + <IntegerParameter Name="UINT8">0</IntegerParameter> + <IntegerParameter Name="INT8">0</IntegerParameter> + <IntegerParameter Name="UINT8_Max">0</IntegerParameter> + <IntegerParameter Name="INT8_Max">0</IntegerParameter> + <!-- Tested Arrays --> + <IntegerParameter Name="UINT32_ARRAY">0</IntegerParameter> + <IntegerParameter Name="INT16_ARRAY">0</IntegerParameter> + <IntegerParameter Name="UINT8_ARRAY">0</IntegerParameter> + <IntegerParameter Name="UINT8_Max_ARRAY">0</IntegerParameter> + <!-- Tested String--> + <StringParameter Name="STR_CHAR128">string_Conf_1_1</StringParameter> + </Component> + </ConfigurableElement> + </Configuration> + <Configuration Name="Conf_1_0"> + <ConfigurableElement Path="/Test/Test/TEST_DIR"> + <Component Name="TEST_DIR"> + <!-- Tested Booleans --> + <BooleanParameter Name="BOOL">1</BooleanParameter> + <!-- Tested FixedPoints --> + <FixedPointParameter Name="FP8_Q0.7">0.9</FixedPointParameter> + <FixedPointParameter Name="FP8_Q7.0">0.9</FixedPointParameter> + <FixedPointParameter Name="FP8_Q3.4">0.9</FixedPointParameter> + <FixedPointParameter Name="FP16_Q0.15">0.9</FixedPointParameter> + <FixedPointParameter Name="FP16_Q15.0">0.9</FixedPointParameter> + <FixedPointParameter Name="FP16_Q7.8">0.9</FixedPointParameter> + <FixedPointParameter Name="FP32_Q0.31">0.9</FixedPointParameter> + <FixedPointParameter Name="FP32_Q31.0">0.9</FixedPointParameter> + <FixedPointParameter Name="FP32_Q15.16">0.9</FixedPointParameter> + <FixedPointParameter Name="FP32_Q8.20">0.9</FixedPointParameter> + <!-- Tested Integers --> + <IntegerParameter Name="UINT32">1</IntegerParameter> + <IntegerParameter Name="INT32">-1</IntegerParameter> + <IntegerParameter Name="UINT32_Max">1</IntegerParameter> + <IntegerParameter Name="INT32_Max">-1</IntegerParameter> + <IntegerParameter Name="UINT16">1</IntegerParameter> + <IntegerParameter Name="INT16">-1</IntegerParameter> + <IntegerParameter Name="UINT16_Max">1</IntegerParameter> + <IntegerParameter Name="INT16_Max">-1</IntegerParameter> + <IntegerParameter Name="UINT8">1</IntegerParameter> + <IntegerParameter Name="INT8">-1</IntegerParameter> + <IntegerParameter Name="UINT8_Max">1</IntegerParameter> + <IntegerParameter Name="INT8_Max">-1</IntegerParameter> + <!-- Tested Arrays --> + <IntegerParameter Name="UINT32_ARRAY">1</IntegerParameter> + <IntegerParameter Name="INT16_ARRAY">-1</IntegerParameter> + <IntegerParameter Name="UINT8_ARRAY">1</IntegerParameter> + <IntegerParameter Name="UINT8_Max_ARRAY">1</IntegerParameter> + <!-- Tested String--> + <StringParameter Name="STR_CHAR128">string_Conf_1_0</StringParameter> + </Component> + </ConfigurableElement> + </Configuration> + </Settings> + </ConfigurableDomain> + + <ConfigurableDomain Name="Domain_2"> + <Configurations> + <Configuration Name="Conf_2_0"> + <CompoundRule Type="All"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x1"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="IsNot" Value="State_1"/> + </CompoundRule> + </Configuration> + <Configuration Name="Conf_2_1"> + <CompoundRule Type="All"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x2"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="Is" Value="State_1"/> + </CompoundRule> + </Configuration> + </Configurations> + <ConfigurableElements> + <ConfigurableElement Path="/Test/Test/TEST_DOMAIN_0" /> + </ConfigurableElements> + <Settings> + <Configuration Name="Conf_2_1"> + <ConfigurableElement Path="/Test/Test/TEST_DOMAIN_0"> + <Component Name="TEST_DOMAIN_0"> + <IntegerParameter Name="Param_00">4</IntegerParameter> + <IntegerParameter Name="Param_01">4</IntegerParameter> + <IntegerParameter Name="Param_02">4</IntegerParameter> + </Component> + </ConfigurableElement> + </Configuration> + <Configuration Name="Conf_2_0"> + <ConfigurableElement Path="/Test/Test/TEST_DOMAIN_0"> + <Component Name="TEST_DOMAIN_0"> + <IntegerParameter Name="Param_00">5</IntegerParameter> + <IntegerParameter Name="Param_01">5</IntegerParameter> + <IntegerParameter Name="Param_02">5</IntegerParameter> + </Component> + </ConfigurableElement> + </Configuration> + </Settings> + </ConfigurableDomain> + + <ConfigurableDomain Name="Domain_3"> + <Configurations> + <Configuration Name="Conf_3_0"> + <CompoundRule Type="Any"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x1"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="Is" Value="State_0"/> + </CompoundRule> + </Configuration> + <Configuration Name="Conf_3_1"> + <CompoundRule Type="Any"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x2"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="Is" Value="State_1"/> + </CompoundRule> + </Configuration> + </Configurations> + <ConfigurableElements> + <ConfigurableElement Path="/Test/Test/TEST_DOMAIN_1" /> + </ConfigurableElements> + <Settings> + <Configuration Name="Conf_3_1"> + <ConfigurableElement Path="/Test/Test/TEST_DOMAIN_1"> + <Component Name="TEST_DOMAIN_1"> + <IntegerParameter Name="Param_10">4</IntegerParameter> + <IntegerParameter Name="Param_11">4</IntegerParameter> + <IntegerParameter Name="Param_12">4</IntegerParameter> + </Component> + </ConfigurableElement> + </Configuration> + <Configuration Name="Conf_3_0"> + <ConfigurableElement Path="/Test/Test/TEST_DOMAIN_1"> + <Component Name="TEST_DOMAIN_1"> + <IntegerParameter Name="Param_10">5</IntegerParameter> + <IntegerParameter Name="Param_11">5</IntegerParameter> + <IntegerParameter Name="Param_12">5</IntegerParameter> + </Component> + </ConfigurableElement> + </Configuration> + </Settings> + </ConfigurableDomain> +</ConfigurableDomains> diff --git a/test/functional-tests/xml/XML_Test/Reference_Split_Domain.xml b/test/functional-tests/xml/XML_Test/Reference_Split_Domain.xml new file mode 100644 index 0000000..7f7edbc --- /dev/null +++ b/test/functional-tests/xml/XML_Test/Reference_Split_Domain.xml @@ -0,0 +1,166 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!--DOMAIN 1 DEFINITION--> +<ConfigurableDomains xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../Schemas/ConfigurableDomains.xsd" SystemClassName="Test"> + <ConfigurableDomain Name="Domain_1"> + <Configurations> + <Configuration Name="Conf_1_0"> + <CompoundRule Type="All"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x1"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="Is" Value="State_1"/> + </CompoundRule> + </Configuration> + <Configuration Name="Conf_1_1"> + <CompoundRule Type="Any"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Excludes" Value="State_0x1"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="IsNot" Value="State_1"/> + </CompoundRule> + </Configuration> + </Configurations> + <ConfigurableElements> + <ConfigurableElement Path="/Test/Test/TEST_MAIN" /> + <!--ConfigurableElement Path="/Test/Test/TEST_MAIN/TEST_DIR_0" /> + <ConfigurableElement Path="/Test/Test/TEST_MAIN/TEST_DIR_1" /> + <ConfigurableElement Path="/Test/Test/TEST_MAIN/TEST_DIR_2" /--> + </ConfigurableElements> + <Settings> + <Configuration Name="Conf_1_1"> + <ConfigurableElement Path="/Test/Test/TEST_MAIN"> + <Component Name="TEST_MAIN"> + <Component Name="TEST_DIR_0"> + <!-- Tested Booleans --> + <BooleanParameter Name="BOOL">0</BooleanParameter> + <!-- Tested FixedPoints --> + <FixedPointParameter Name="FP8_Q0.7">0.1</FixedPointParameter> + <FixedPointParameter Name="FP8_Q7.0">2</FixedPointParameter> + <FixedPointParameter Name="FP8_Q3.4">2.1</FixedPointParameter> + <FixedPointParameter Name="FP16_Q0.15">0.1</FixedPointParameter> + <FixedPointParameter Name="FP16_Q15.0">2</FixedPointParameter> + <FixedPointParameter Name="FP16_Q7.8">2</FixedPointParameter> + <FixedPointParameter Name="FP32_Q0.31">0.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q31.0">2</FixedPointParameter> + <FixedPointParameter Name="FP32_Q15.16">2.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q8.20">2.1</FixedPointParameter> + <!-- Tested Integers --> + <IntegerParameter Name="UINT32">0</IntegerParameter> + <IntegerParameter Name="INT32">0</IntegerParameter> + <IntegerParameter Name="UINT32_Max">0</IntegerParameter> + <IntegerParameter Name="INT32_Max">0</IntegerParameter> + <IntegerParameter Name="UINT16">0</IntegerParameter> + <IntegerParameter Name="INT16">0</IntegerParameter> + <IntegerParameter Name="UINT16_Max">0</IntegerParameter> + <IntegerParameter Name="INT16_Max">0</IntegerParameter> + <IntegerParameter Name="UINT8">0</IntegerParameter> + <IntegerParameter Name="INT8">0</IntegerParameter> + <IntegerParameter Name="UINT8_Max">0</IntegerParameter> + <IntegerParameter Name="INT8_Max">0</IntegerParameter> + <!-- Tested Arrays --> + <IntegerParameter Name="UINT32_ARRAY">0</IntegerParameter> + <IntegerParameter Name="INT16_ARRAY">0</IntegerParameter> + <IntegerParameter Name="UINT8_ARRAY">0</IntegerParameter> + <IntegerParameter Name="UINT8_Max_ARRAY">0</IntegerParameter> + <!-- Tested String--> + <StringParameter Name="STR_CHAR128">string_Conf_1_1</StringParameter> + </Component> + <Component Name="TEST_DIR_1"> + <IntegerParameter Name="Param_00">4</IntegerParameter> + <IntegerParameter Name="Param_01">4</IntegerParameter> + <IntegerParameter Name="Param_02">4</IntegerParameter> + </Component> + <Component Name="TEST_DIR_2"> + <IntegerParameter Name="Param_10">4</IntegerParameter> + <IntegerParameter Name="Param_11">4</IntegerParameter> + <IntegerParameter Name="Param_12">4</IntegerParameter> + </Component> + </Component> + </ConfigurableElement> + </Configuration> + <Configuration Name="Conf_1_0"> + <ConfigurableElement Path="/Test/Test/TEST_MAIN"> + <Component Name="TEST_MAIN"> + <Component Name="TEST_DIR_0"> + <!-- Tested Booleans --> + <BooleanParameter Name="BOOL">0</BooleanParameter> + <!-- Tested FixedPoints --> + <FixedPointParameter Name="FP8_Q0.7">0.1</FixedPointParameter> + <FixedPointParameter Name="FP8_Q7.0">2</FixedPointParameter> + <FixedPointParameter Name="FP8_Q3.4">2.1</FixedPointParameter> + <FixedPointParameter Name="FP16_Q0.15">0.1</FixedPointParameter> + <FixedPointParameter Name="FP16_Q15.0">2</FixedPointParameter> + <FixedPointParameter Name="FP16_Q7.8">2</FixedPointParameter> + <FixedPointParameter Name="FP32_Q0.31">0.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q31.0">2</FixedPointParameter> + <FixedPointParameter Name="FP32_Q15.16">2.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q8.20">2.1</FixedPointParameter> + <!-- Tested Integers --> + <IntegerParameter Name="UINT32">0</IntegerParameter> + <IntegerParameter Name="INT32">0</IntegerParameter> + <IntegerParameter Name="UINT32_Max">0</IntegerParameter> + <IntegerParameter Name="INT32_Max">0</IntegerParameter> + <IntegerParameter Name="UINT16">0</IntegerParameter> + <IntegerParameter Name="INT16">0</IntegerParameter> + <IntegerParameter Name="UINT16_Max">0</IntegerParameter> + <IntegerParameter Name="INT16_Max">0</IntegerParameter> + <IntegerParameter Name="UINT8">0</IntegerParameter> + <IntegerParameter Name="INT8">0</IntegerParameter> + <IntegerParameter Name="UINT8_Max">0</IntegerParameter> + <IntegerParameter Name="INT8_Max">0</IntegerParameter> + <!-- Tested Arrays --> + <IntegerParameter Name="UINT32_ARRAY">0</IntegerParameter> + <IntegerParameter Name="INT16_ARRAY">0</IntegerParameter> + <IntegerParameter Name="UINT8_ARRAY">0</IntegerParameter> + <IntegerParameter Name="UINT8_Max_ARRAY">0</IntegerParameter> + <!-- Tested String--> + <StringParameter Name="STR_CHAR128">string_Conf_1_1</StringParameter> + </Component> + <Component Name="TEST_DIR_1"> + <IntegerParameter Name="Param_00">5</IntegerParameter> + <IntegerParameter Name="Param_01">5</IntegerParameter> + <IntegerParameter Name="Param_02">5</IntegerParameter> + </Component> + <Component Name="TEST_DIR_2"> + <IntegerParameter Name="Param_10">5</IntegerParameter> + <IntegerParameter Name="Param_11">5</IntegerParameter> + <IntegerParameter Name="Param_12">5</IntegerParameter> + </Component> + </Component> + </ConfigurableElement> + </Configuration> + </Settings> + </ConfigurableDomain> +<!--DOMAIN 2 DEFINITION--> + <ConfigurableDomain Name="Domain_2"> + <Configurations> + <Configuration Name="Conf_2_0"> + <CompoundRule Type="All"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x1"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="IsNot" Value="State_1"/> + </CompoundRule> + </Configuration> + <Configuration Name="Conf_2_1"> + <CompoundRule Type="All"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x2"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="Is" Value="State_1"/> + </CompoundRule> + </Configuration> + </Configurations> + <ConfigurableElements/> + </ConfigurableDomain> +<!--DOMAIN 3 DEFINITION--> + <ConfigurableDomain Name="Domain_3"> + <Configurations> + <Configuration Name="Conf_3_0"> + <CompoundRule Type="Any"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x1"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="Is" Value="State_0"/> + </CompoundRule> + </Configuration> + <Configuration Name="Conf_3_1"> + <CompoundRule Type="Any"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x2"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="Is" Value="State_1"/> + </CompoundRule> + </Configuration> + </Configurations> + <ConfigurableElements/> + </ConfigurableDomain> +</ConfigurableDomains> diff --git a/test/functional-tests/xml/XML_Test/Reference_dumpDomains b/test/functional-tests/xml/XML_Test/Reference_dumpDomains new file mode 100644 index 0000000..9277d20 --- /dev/null +++ b/test/functional-tests/xml/XML_Test/Reference_dumpDomains @@ -0,0 +1,12 @@ +- ConfigurableDomains: Test + - ConfigurableDomain: Domain_0_1 = {Sequence aware: no, Last applied configuration: <none>} + - Configuration: Conf_0_0 + - ConfigurableDomain: Domain_1_2 = {Sequence aware: no, Last applied configuration: <none>} + - Configuration: Conf_1_0 + - CompoundRule = All + - SelectionCriterionRule = Crit_0 Includes State_0x1 + - SelectionCriterionRule = Crit_1 Is State_1 + - Configuration: Conf_1_1 + - CompoundRule = Any + - SelectionCriterionRule = Crit_0 Includes State_0x2 + - SelectionCriterionRule = Crit_1 IsNot State_1 diff --git a/test/functional-tests/xml/XML_Test/Reference_dumpDomains.xml b/test/functional-tests/xml/XML_Test/Reference_dumpDomains.xml new file mode 100644 index 0000000..844099e --- /dev/null +++ b/test/functional-tests/xml/XML_Test/Reference_dumpDomains.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ConfigurableDomains xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="/home/lab/ICS/hardware/intel/PRIVATE/parameter-framework/test/configuration/Schemas/ConfigurableDomains.xsd" SystemClassName="Test"> + + <ConfigurableDomain Name="Domain_0_1"> + <Configurations> + <Configuration Name="Conf_0_0"/> + </Configurations> + <ConfigurableElements> + <ConfigurableElement Path="/Test/Test/TEST_DOMAIN_0" /> + </ConfigurableElements> + <Settings> + <Configuration Name="Conf_0_0"> + <ConfigurableElement Path="/Test/Test/TEST_DOMAIN_0"> + <Component Name="TEST_DOMAIN_0"> + <IntegerParameter Name="Param_00">0</IntegerParameter> + <IntegerParameter Name="Param_01">0</IntegerParameter> + <IntegerParameter Name="Param_02">0</IntegerParameter> + </Component> + </ConfigurableElement> + </Configuration> + </Settings> + </ConfigurableDomain> + <ConfigurableDomain Name="Domain_1_2"> + <Configurations> + <Configuration Name="Conf_1_0"> + <CompoundRule Type="All"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x1"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="Is" Value="State_1"/> + </CompoundRule> + </Configuration> + <Configuration Name="Conf_1_1"> + <CompoundRule Type="Any"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x2"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="IsNot" Value="State_1"/> + </CompoundRule> + </Configuration> + </Configurations> + <ConfigurableElements> + <ConfigurableElement Path="/Test/Test/TEST_DOMAIN_1" /> + </ConfigurableElements> + <Settings> + <Configuration Name="Conf_1_1"> + <ConfigurableElement Path="/Test/Test/TEST_DOMAIN_1"> + <Component Name="TEST_DOMAIN_1"> + <IntegerParameter Name="Param_10">4</IntegerParameter> + <IntegerParameter Name="Param_11">4</IntegerParameter> + <IntegerParameter Name="Param_12">4</IntegerParameter> + </Component> + </ConfigurableElement> + </Configuration> + <Configuration Name="Conf_1_0"> + <ConfigurableElement Path="/Test/Test/TEST_DOMAIN_1"> + <Component Name="TEST_DOMAIN_1"> + <IntegerParameter Name="Param_10">5</IntegerParameter> + <IntegerParameter Name="Param_11">5</IntegerParameter> + <IntegerParameter Name="Param_12">5</IntegerParameter> + </Component> + </ConfigurableElement> + </Configuration> + </Settings> + </ConfigurableDomain> +</ConfigurableDomains> diff --git a/test/functional-tests/xml/XML_Test/Reference_dumpElement b/test/functional-tests/xml/XML_Test/Reference_dumpElement new file mode 100644 index 0000000..37342fa --- /dev/null +++ b/test/functional-tests/xml/XML_Test/Reference_dumpElement @@ -0,0 +1,89 @@ +- SystemClass: Test + - Subsystem: Test + - Component: TEST_DIR + - BooleanParameter: BOOL = 1 + - FixedPointParameter: FP8_Q0.7 = 0.8984375 + - FixedPointParameter: FP8_Q7.0 = 1 + - FixedPointParameter: FP8_Q3.4 = 1.0000 + - FixedPointParameter: FP16_Q0.15 = 0.899993896484375 + - FixedPointParameter: FP16_Q15.0 = 1 + - FixedPointParameter: FP16_Q7.8 = 1.00000000 + - FixedPointParameter: FP32_Q0.31 = 0.8999999999068677425384521484375 + - FixedPointParameter: FP32_Q31.0 = 1 + - FixedPointParameter: FP32_Q15.16 = 1.0000000000000000 + - FixedPointParameter: FP32_Q8.20 = 1.00000000000000000000 + - IntegerParameter: UINT32 = 1 + - IntegerParameter: INT32 = 1 + - IntegerParameter: UINT32_Max = 1 + - IntegerParameter: INT32_Max = 1 + - IntegerParameter: UINT16 = 1 + - IntegerParameter: INT16 = 1 + - IntegerParameter: UINT16_Max = 1 + - IntegerParameter: INT16_Max = 1 + - IntegerParameter: UINT8 = 1 + - IntegerParameter: INT8 = 1 + - IntegerParameter: UINT8_Max = 1 + - IntegerParameter: INT8_Max = 1 + - IntegerParameter: UINT32_ARRAY = 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 + - IntegerParameter: INT16_ARRAY = 1 0 0 0 0 + - IntegerParameter: UINT8_ARRAY = 1 0 0 0 0 + - IntegerParameter: UINT8_Max_ARRAY = 1 0 0 0 0 + - StringParameter: STR_CHAR128 = string_Conf_1 + - Component: TEST_DOMAIN_0 + - IntegerParameter: Param_00 = 4 + - IntegerParameter: Param_01 = 4 + - IntegerParameter: Param_02 = 4 + - Component: TEST_DOMAIN_1 + - IntegerParameter: Param_10 = 4 + - IntegerParameter: Param_11 = 4 + - IntegerParameter: Param_12 = 4 + - Component: TEST_TYPES + - EnumParameter: ENUM = ENUM_MIN + - BitParameterBlock: BLOCK_8BIT + - BitParameter: BIT_0_3 = 0 + - BitParameter: BIT_3_1 = 0 + - BitParameter: BIT_4_1 = 0 + - BitParameter: BIT_6_2 = 0 + - BitParameter: BIT_7_1 = 0 + - ParameterBlock: BLOCK_PARAMETER + - IntegerParameter: UINT8 = 0 + - IntegerParameter: UINT16 = 0 + - IntegerParameter: UINT32 = 0 + - Component: TEST_MAIN + - Component: TEST_DIR_0 + - BooleanParameter: BOOL = 0 + - FixedPointParameter: FP8_Q0.7 = 0.1015625 + - FixedPointParameter: FP8_Q7.0 = 2 + - FixedPointParameter: FP8_Q3.4 = 2.1250 + - FixedPointParameter: FP16_Q0.15 = 0.100006103515625 + - FixedPointParameter: FP16_Q15.0 = 2 + - FixedPointParameter: FP16_Q7.8 = 2.00000000 + - FixedPointParameter: FP32_Q0.31 = 0.1000000000931322574615478515625 + - FixedPointParameter: FP32_Q31.0 = 2 + - FixedPointParameter: FP32_Q15.16 = 2.1000061035156250 + - FixedPointParameter: FP32_Q8.20 = 2.10000038146972656250 + - IntegerParameter: UINT32 = 0 + - IntegerParameter: INT32 = 0 + - IntegerParameter: UINT32_Max = 0 + - IntegerParameter: INT32_Max = 0 + - IntegerParameter: UINT16 = 0 + - IntegerParameter: INT16 = 0 + - IntegerParameter: UINT16_Max = 0 + - IntegerParameter: INT16_Max = 0 + - IntegerParameter: UINT8 = 0 + - IntegerParameter: INT8 = 0 + - IntegerParameter: UINT8_Max = 0 + - IntegerParameter: INT8_Max = 0 + - IntegerParameter: UINT32_ARRAY = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 + - IntegerParameter: INT16_ARRAY = 0 0 0 0 0 + - IntegerParameter: UINT8_ARRAY = 0 0 0 0 0 + - IntegerParameter: UINT8_Max_ARRAY = 0 0 0 0 0 + - StringParameter: STR_CHAR128 = string_Conf_1_1 + - Component: TEST_DIR_1 + - IntegerParameter: Param_00 = 4 + - IntegerParameter: Param_01 = 4 + - IntegerParameter: Param_02 = 4 + - Component: TEST_DIR_2 + - IntegerParameter: Param_10 = 4 + - IntegerParameter: Param_11 = 4 + - IntegerParameter: Param_12 = 4
\ No newline at end of file diff --git a/test/functional-tests/xml/XML_Test/Uncompliant_OutboundParameter.xml b/test/functional-tests/xml/XML_Test/Uncompliant_OutboundParameter.xml new file mode 100644 index 0000000..339a75c --- /dev/null +++ b/test/functional-tests/xml/XML_Test/Uncompliant_OutboundParameter.xml @@ -0,0 +1,102 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ConfigurableDomains xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../Schemas/ConfigurableDomains.xsd" SystemClassName="Test"> + <ConfigurableDomain Name="Domain_1"> + <Configurations> + <Configuration Name="Conf_1_0"> + <CompoundRule Type="All"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x1"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="Is" Value="State_1"/> + </CompoundRule> + </Configuration> + <Configuration Name="Conf_1_1"> + <CompoundRule Type="Any"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x2"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="IsNot" Value="State_1"/> + </CompoundRule> + </Configuration> + </Configurations> + <ConfigurableElements> + <ConfigurableElement Path="/Test/Test/TEST_DIR" /> + </ConfigurableElements> + <Settings> + <Configuration Name="Conf_1_1"> + <ConfigurableElement Path="/Test/Test/TEST_DIR"> + <Component Name="TEST_DIR"> + <!-- Tested Booleans --> + <BooleanParameter Name="BOOL">2</BooleanParameter> + <!-- Tested FixedPoints --> + <FixedPointParameter Name="FP8_Q0.7">0.1</FixedPointParameter> + <FixedPointParameter Name="FP8_Q7.0">0.1</FixedPointParameter> + <FixedPointParameter Name="FP8_Q3.4">0.1</FixedPointParameter> + <FixedPointParameter Name="FP16_Q0.15">0.1</FixedPointParameter> + <FixedPointParameter Name="FP16_Q15.0">0.1</FixedPointParameter> + <FixedPointParameter Name="FP16_Q7.8">0.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q0.31">0.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q31.0">0.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q15.16">0.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q8.20">0.1</FixedPointParameter> + <!-- Tested Integers --> + <IntegerParameter Name="UINT32">0</IntegerParameter> + <IntegerParameter Name="INT32">0</IntegerParameter> + <IntegerParameter Name="UINT32_Max">0</IntegerParameter> + <IntegerParameter Name="INT32_Max">0</IntegerParameter> + <IntegerParameter Name="UINT16">0</IntegerParameter> + <IntegerParameter Name="INT16">0</IntegerParameter> + <IntegerParameter Name="UINT16_Max">0</IntegerParameter> + <IntegerParameter Name="INT16_Max">0</IntegerParameter> + <IntegerParameter Name="UINT8">0</IntegerParameter> + <IntegerParameter Name="INT8">0</IntegerParameter> + <IntegerParameter Name="UINT8_Max">0</IntegerParameter> + <IntegerParameter Name="INT8_Max">0</IntegerParameter> + <!-- Tested Arrays --> + <IntegerParameter Name="UINT32_ARRAY">0</IntegerParameter> + <IntegerParameter Name="INT16_ARRAY">0</IntegerParameter> + <IntegerParameter Name="UINT8_ARRAY">0</IntegerParameter> + <IntegerParameter Name="UINT8_Max_ARRAY">0</IntegerParameter> + <!-- Tested String--> + <StringParameter Name="STR_CHAR128">string_Conf_1_1</StringParameter> + </Component> + </ConfigurableElement> + </Configuration> + <Configuration Name="Conf_1_0"> + <ConfigurableElement Path="/Test/Test/TEST_DIR"> + <Component Name="TEST_DIR"> + <!-- Tested Booleans --> + <BooleanParameter Name="BOOL">1</BooleanParameter> + <!-- Tested FixedPoints --> + <FixedPointParameter Name="FP8_Q0.7">0.9</FixedPointParameter> + <FixedPointParameter Name="FP8_Q7.0">0.9</FixedPointParameter> + <FixedPointParameter Name="FP8_Q3.4">0.9</FixedPointParameter> + <FixedPointParameter Name="FP16_Q0.15">0.9</FixedPointParameter> + <FixedPointParameter Name="FP16_Q15.0">0.9</FixedPointParameter> + <FixedPointParameter Name="FP16_Q7.8">0.9</FixedPointParameter> + <FixedPointParameter Name="FP32_Q0.31">0.9</FixedPointParameter> + <FixedPointParameter Name="FP32_Q31.0">0.9</FixedPointParameter> + <FixedPointParameter Name="FP32_Q15.16">0.9</FixedPointParameter> + <FixedPointParameter Name="FP32_Q8.20">0.9</FixedPointParameter> + <!-- Tested Integers --> + <IntegerParameter Name="UINT32">1</IntegerParameter> + <IntegerParameter Name="INT32">-1</IntegerParameter> + <IntegerParameter Name="UINT32_Max">1</IntegerParameter> + <IntegerParameter Name="INT32_Max">-1</IntegerParameter> + <IntegerParameter Name="UINT16">1</IntegerParameter> + <IntegerParameter Name="INT16">-1</IntegerParameter> + <IntegerParameter Name="UINT16_Max">1</IntegerParameter> + <IntegerParameter Name="INT16_Max">-1</IntegerParameter> + <IntegerParameter Name="UINT8">1</IntegerParameter> + <IntegerParameter Name="INT8">-1</IntegerParameter> + <IntegerParameter Name="UINT8_Max">1</IntegerParameter> + <IntegerParameter Name="INT8_Max">-1</IntegerParameter> + <!-- Tested Arrays --> + <IntegerParameter Name="UINT32_ARRAY">1</IntegerParameter> + <IntegerParameter Name="INT16_ARRAY">-1</IntegerParameter> + <IntegerParameter Name="UINT8_ARRAY">1</IntegerParameter> + <IntegerParameter Name="UINT8_Max_ARRAY">1</IntegerParameter> + <!-- Tested String--> + <StringParameter Name="STR_CHAR128">string_Conf_1_0</StringParameter> + </Component> + </ConfigurableElement> + </Configuration> + </Settings> + </ConfigurableDomain> +</ConfigurableDomains> diff --git a/test/functional-tests/xml/XML_Test/Uncompliant_UndeclaredConfigurableElement.xml b/test/functional-tests/xml/XML_Test/Uncompliant_UndeclaredConfigurableElement.xml new file mode 100644 index 0000000..f8c00be --- /dev/null +++ b/test/functional-tests/xml/XML_Test/Uncompliant_UndeclaredConfigurableElement.xml @@ -0,0 +1,102 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ConfigurableDomains xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../Schemas/ConfigurableDomains.xsd" SystemClassName="Test"> + <ConfigurableDomain Name="Domain_1"> + <Configurations> + <Configuration Name="Conf_1_0"> + <CompoundRule Type="All"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x1"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="Is" Value="State_1"/> + </CompoundRule> + </Configuration> + <Configuration Name="Conf_1_1"> + <CompoundRule Type="Any"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x2"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="IsNot" Value="State_1"/> + </CompoundRule> + </Configuration> + </Configurations> + <ConfigurableElements> + <ConfigurableElement Path="/Test/Test/ERROR" /> + </ConfigurableElements> + <Settings> + <Configuration Name="Conf_1_1"> + <ConfigurableElement Path="/Test/Test/ERROR"> + <Component Name="TEST_DIR"> + <!-- Tested Booleans --> + <BooleanParameter Name="BOOL">0</BooleanParameter> + <!-- Tested FixedPoints --> + <FixedPointParameter Name="FP8_Q0.7">0.1</FixedPointParameter> + <FixedPointParameter Name="FP8_Q7.0">0.1</FixedPointParameter> + <FixedPointParameter Name="FP8_Q3.4">0.1</FixedPointParameter> + <FixedPointParameter Name="FP16_Q0.15">0.1</FixedPointParameter> + <FixedPointParameter Name="FP16_Q15.0">0.1</FixedPointParameter> + <FixedPointParameter Name="FP16_Q7.8">0.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q0.31">0.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q31.0">0.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q15.16">0.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q8.20">0.1</FixedPointParameter> + <!-- Tested Integers --> + <IntegerParameter Name="UINT32">0</IntegerParameter> + <IntegerParameter Name="INT32">0</IntegerParameter> + <IntegerParameter Name="UINT32_Max">0</IntegerParameter> + <IntegerParameter Name="INT32_Max">0</IntegerParameter> + <IntegerParameter Name="UINT16">0</IntegerParameter> + <IntegerParameter Name="INT16">0</IntegerParameter> + <IntegerParameter Name="UINT16_Max">0</IntegerParameter> + <IntegerParameter Name="INT16_Max">0</IntegerParameter> + <IntegerParameter Name="UINT8">0</IntegerParameter> + <IntegerParameter Name="INT8">0</IntegerParameter> + <IntegerParameter Name="UINT8_Max">0</IntegerParameter> + <IntegerParameter Name="INT8_Max">0</IntegerParameter> + <!-- Tested Arrays --> + <IntegerParameter Name="UINT32_ARRAY">0</IntegerParameter> + <IntegerParameter Name="INT16_ARRAY">0</IntegerParameter> + <IntegerParameter Name="UINT8_ARRAY">0</IntegerParameter> + <IntegerParameter Name="UINT8_Max_ARRAY">0</IntegerParameter> + <!-- Tested String--> + <StringParameter Name="STR_CHAR128">string_Conf_1_1</StringParameter> + </Component> + </ConfigurableElement> + </Configuration> + <Configuration Name="Conf_1_0"> + <ConfigurableElement Path="/Test/Test/TEST_DIR"> + <Component Name="TEST_DIR"> + <!-- Tested Booleans --> + <BooleanParameter Name="BOOL">1</BooleanParameter> + <!-- Tested FixedPoints --> + <FixedPointParameter Name="FP8_Q0.7">0.9</FixedPointParameter> + <FixedPointParameter Name="FP8_Q7.0">0.9</FixedPointParameter> + <FixedPointParameter Name="FP8_Q3.4">0.9</FixedPointParameter> + <FixedPointParameter Name="FP16_Q0.15">0.9</FixedPointParameter> + <FixedPointParameter Name="FP16_Q15.0">0.9</FixedPointParameter> + <FixedPointParameter Name="FP16_Q7.8">0.9</FixedPointParameter> + <FixedPointParameter Name="FP32_Q0.31">0.9</FixedPointParameter> + <FixedPointParameter Name="FP32_Q31.0">0.9</FixedPointParameter> + <FixedPointParameter Name="FP32_Q15.16">0.9</FixedPointParameter> + <FixedPointParameter Name="FP32_Q8.20">0.9</FixedPointParameter> + <!-- Tested Integers --> + <IntegerParameter Name="UINT32">1</IntegerParameter> + <IntegerParameter Name="INT32">-1</IntegerParameter> + <IntegerParameter Name="UINT32_Max">1</IntegerParameter> + <IntegerParameter Name="INT32_Max">-1</IntegerParameter> + <IntegerParameter Name="UINT16">1</IntegerParameter> + <IntegerParameter Name="INT16">-1</IntegerParameter> + <IntegerParameter Name="UINT16_Max">1</IntegerParameter> + <IntegerParameter Name="INT16_Max">-1</IntegerParameter> + <IntegerParameter Name="UINT8">1</IntegerParameter> + <IntegerParameter Name="INT8">-1</IntegerParameter> + <IntegerParameter Name="UINT8_Max">1</IntegerParameter> + <IntegerParameter Name="INT8_Max">-1</IntegerParameter> + <!-- Tested Arrays --> + <IntegerParameter Name="UINT32_ARRAY">1</IntegerParameter> + <IntegerParameter Name="INT16_ARRAY">-1</IntegerParameter> + <IntegerParameter Name="UINT8_ARRAY">1</IntegerParameter> + <IntegerParameter Name="UINT8_Max_ARRAY">1</IntegerParameter> + <!-- Tested String--> + <StringParameter Name="STR_CHAR128">string_Conf_1_0</StringParameter> + </Component> + </ConfigurableElement> + </Configuration> + </Settings> + </ConfigurableDomain> +</ConfigurableDomains> diff --git a/test/functional-tests/xml/XML_Test/Uncompliant_UndeclaredParameter.xml b/test/functional-tests/xml/XML_Test/Uncompliant_UndeclaredParameter.xml new file mode 100644 index 0000000..f831de5 --- /dev/null +++ b/test/functional-tests/xml/XML_Test/Uncompliant_UndeclaredParameter.xml @@ -0,0 +1,104 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ConfigurableDomains xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../Schemas/ConfigurableDomains.xsd" SystemClassName="Test"> + <ConfigurableDomain Name="Domain_1"> + <Configurations> + <Configuration Name="Conf_1_0"> + <CompoundRule Type="All"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x1"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="Is" Value="State_1"/> + </CompoundRule> + </Configuration> + <Configuration Name="Conf_1_1"> + <CompoundRule Type="Any"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x2"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="IsNot" Value="State_1"/> + </CompoundRule> + </Configuration> + </Configurations> + <ConfigurableElements> + <ConfigurableElement Path="/Test/Test/TEST_DIR" /> + </ConfigurableElements> + <Settings> + <Configuration Name="Conf_1_1"> + <ConfigurableElement Path="/Test/Test/TEST_DIR"> + <Component Name="TEST_DIR"> + <!-- Tested Booleans --> + <BooleanParameter Name="BOOL">0</BooleanParameter> + <BooleanParameter Name="UNDECLARED">0</BooleanParameter> + <!-- Tested FixedPoints --> + <FixedPointParameter Name="FP8_Q0.7">0.1</FixedPointParameter> + <FixedPointParameter Name="FP8_Q7.0">0.1</FixedPointParameter> + <FixedPointParameter Name="FP8_Q3.4">0.1</FixedPointParameter> + <FixedPointParameter Name="FP16_Q0.15">0.1</FixedPointParameter> + <FixedPointParameter Name="FP16_Q15.0">0.1</FixedPointParameter> + <FixedPointParameter Name="FP16_Q7.8">0.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q0.31">0.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q31.0">0.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q15.16">0.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q8.20">0.1</FixedPointParameter> + <!-- Tested Integers --> + <IntegerParameter Name="UINT32">0</IntegerParameter> + <IntegerParameter Name="INT32">0</IntegerParameter> + <IntegerParameter Name="UINT32_Max">0</IntegerParameter> + <IntegerParameter Name="INT32_Max">0</IntegerParameter> + <IntegerParameter Name="UINT16">0</IntegerParameter> + <IntegerParameter Name="INT16">0</IntegerParameter> + <IntegerParameter Name="UINT16_Max">0</IntegerParameter> + <IntegerParameter Name="INT16_Max">0</IntegerParameter> + <IntegerParameter Name="UINT8">0</IntegerParameter> + <IntegerParameter Name="INT8">0</IntegerParameter> + <IntegerParameter Name="UINT8_Max">0</IntegerParameter> + <IntegerParameter Name="INT8_Max">0</IntegerParameter> + <!-- Tested Arrays --> + <IntegerParameter Name="UINT32_ARRAY">0</IntegerParameter> + <IntegerParameter Name="INT16_ARRAY">0</IntegerParameter> + <IntegerParameter Name="UINT8_ARRAY">0</IntegerParameter> + <IntegerParameter Name="UINT8_Max_ARRAY">0</IntegerParameter> + <!-- Tested String--> + <StringParameter Name="STR_CHAR128">string_Conf_1_1</StringParameter> + </Component> + </ConfigurableElement> + </Configuration> + <Configuration Name="Conf_1_0"> + <ConfigurableElement Path="/Test/Test/TEST_DIR"> + <Component Name="TEST_DIR"> + <!-- Tested Booleans --> + <BooleanParameter Name="BOOL">1</BooleanParameter> + <BooleanParameter Name="UNDECLARED">0</BooleanParameter> + <!-- Tested FixedPoints --> + <FixedPointParameter Name="FP8_Q0.7">0.9</FixedPointParameter> + <FixedPointParameter Name="FP8_Q7.0">0.9</FixedPointParameter> + <FixedPointParameter Name="FP8_Q3.4">0.9</FixedPointParameter> + <FixedPointParameter Name="FP16_Q0.15">0.9</FixedPointParameter> + <FixedPointParameter Name="FP16_Q15.0">0.9</FixedPointParameter> + <FixedPointParameter Name="FP16_Q7.8">0.9</FixedPointParameter> + <FixedPointParameter Name="FP32_Q0.31">0.9</FixedPointParameter> + <FixedPointParameter Name="FP32_Q31.0">0.9</FixedPointParameter> + <FixedPointParameter Name="FP32_Q15.16">0.9</FixedPointParameter> + <FixedPointParameter Name="FP32_Q8.20">0.9</FixedPointParameter> + <!-- Tested Integers --> + <IntegerParameter Name="UINT32">1</IntegerParameter> + <IntegerParameter Name="INT32">-1</IntegerParameter> + <IntegerParameter Name="UINT32_Max">1</IntegerParameter> + <IntegerParameter Name="INT32_Max">-1</IntegerParameter> + <IntegerParameter Name="UINT16">1</IntegerParameter> + <IntegerParameter Name="INT16">-1</IntegerParameter> + <IntegerParameter Name="UINT16_Max">1</IntegerParameter> + <IntegerParameter Name="INT16_Max">-1</IntegerParameter> + <IntegerParameter Name="UINT8">1</IntegerParameter> + <IntegerParameter Name="INT8">-1</IntegerParameter> + <IntegerParameter Name="UINT8_Max">1</IntegerParameter> + <IntegerParameter Name="INT8_Max">-1</IntegerParameter> + <!-- Tested Arrays --> + <IntegerParameter Name="UINT32_ARRAY">1</IntegerParameter> + <IntegerParameter Name="INT16_ARRAY">-1</IntegerParameter> + <IntegerParameter Name="UINT8_ARRAY">1</IntegerParameter> + <IntegerParameter Name="UINT8_Max_ARRAY">1</IntegerParameter> + <!-- Tested String--> + <StringParameter Name="STR_CHAR128">string_Conf_1_0</StringParameter> + </Component> + </ConfigurableElement> + </Configuration> + </Settings> + </ConfigurableDomain> +</ConfigurableDomains> diff --git a/test/functional-tests/xml/XML_Test/Uncompliant_UnorderConfigurableElement.xml b/test/functional-tests/xml/XML_Test/Uncompliant_UnorderConfigurableElement.xml new file mode 100644 index 0000000..3d9aaa4 --- /dev/null +++ b/test/functional-tests/xml/XML_Test/Uncompliant_UnorderConfigurableElement.xml @@ -0,0 +1,102 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ConfigurableDomains xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../Schemas/ConfigurableDomains.xsd" SystemClassName="Test"> + <ConfigurableDomain Name="Domain_1"> + <Configurations> + <Configuration Name="Conf_1_0"> + <CompoundRule Type="All"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x1"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="Is" Value="State_1"/> + </CompoundRule> + </Configuration> + <Configuration Name="Conf_1_1"> + <CompoundRule Type="Any"> + <SelectionCriterionRule SelectionCriterion="Crit_0" MatchesWhen="Includes" Value="State_0x2"/> + <SelectionCriterionRule SelectionCriterion="Crit_1" MatchesWhen="IsNot" Value="State_1"/> + </CompoundRule> + </Configuration> + </Configurations> + <ConfigurableElements> + <ConfigurableElement Path="/Test/Test/TEST_DIR" /> + </ConfigurableElements> + <Settings> + <Configuration Name="Conf_1_1"> + <ConfigurableElement Path="/Test/Test/TEST_DOMAIN_0"> + <Component Name="TEST_DOMAIN_0"> + <!-- Tested Booleans --> + <BooleanParameter Name="BOOL">0</BooleanParameter> + <!-- Tested FixedPoints --> + <FixedPointParameter Name="FP8_Q0.7">0.1</FixedPointParameter> + <FixedPointParameter Name="FP8_Q7.0">0.1</FixedPointParameter> + <FixedPointParameter Name="FP8_Q3.4">0.1</FixedPointParameter> + <FixedPointParameter Name="FP16_Q0.15">0.1</FixedPointParameter> + <FixedPointParameter Name="FP16_Q15.0">0.1</FixedPointParameter> + <FixedPointParameter Name="FP16_Q7.8">0.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q0.31">0.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q31.0">0.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q15.16">0.1</FixedPointParameter> + <FixedPointParameter Name="FP32_Q8.20">0.1</FixedPointParameter> + <!-- Tested Integers --> + <IntegerParameter Name="UINT32">0</IntegerParameter> + <IntegerParameter Name="INT32">0</IntegerParameter> + <IntegerParameter Name="UINT32_Max">0</IntegerParameter> + <IntegerParameter Name="INT32_Max">0</IntegerParameter> + <IntegerParameter Name="UINT16">0</IntegerParameter> + <IntegerParameter Name="INT16">0</IntegerParameter> + <IntegerParameter Name="UINT16_Max">0</IntegerParameter> + <IntegerParameter Name="INT16_Max">0</IntegerParameter> + <IntegerParameter Name="UINT8">0</IntegerParameter> + <IntegerParameter Name="INT8">0</IntegerParameter> + <IntegerParameter Name="UINT8_Max">0</IntegerParameter> + <IntegerParameter Name="INT8_Max">0</IntegerParameter> + <!-- Tested Arrays --> + <IntegerParameter Name="UINT32_ARRAY">0</IntegerParameter> + <IntegerParameter Name="INT16_ARRAY">0</IntegerParameter> + <IntegerParameter Name="UINT8_ARRAY">0</IntegerParameter> + <IntegerParameter Name="UINT8_Max_ARRAY">0</IntegerParameter> + <!-- Tested String--> + <StringParameter Name="STR_CHAR128">string_Conf_1_1</StringParameter> + </Component> + </ConfigurableElement> + </Configuration> + <Configuration Name="Conf_1_0"> + <ConfigurableElement Path="/Test/Test/TEST_DIR"> + <Component Name="TEST_DIR"> + <!-- Tested Booleans --> + <BooleanParameter Name="BOOL">1</BooleanParameter> + <!-- Tested FixedPoints --> + <FixedPointParameter Name="FP8_Q0.7">0.9</FixedPointParameter> + <FixedPointParameter Name="FP8_Q7.0">0.9</FixedPointParameter> + <FixedPointParameter Name="FP8_Q3.4">0.9</FixedPointParameter> + <FixedPointParameter Name="FP16_Q0.15">0.9</FixedPointParameter> + <FixedPointParameter Name="FP16_Q15.0">0.9</FixedPointParameter> + <FixedPointParameter Name="FP16_Q7.8">0.9</FixedPointParameter> + <FixedPointParameter Name="FP32_Q0.31">0.9</FixedPointParameter> + <FixedPointParameter Name="FP32_Q31.0">0.9</FixedPointParameter> + <FixedPointParameter Name="FP32_Q15.16">0.9</FixedPointParameter> + <FixedPointParameter Name="FP32_Q8.20">0.9</FixedPointParameter> + <!-- Tested Integers --> + <IntegerParameter Name="UINT32">1</IntegerParameter> + <IntegerParameter Name="INT32">-1</IntegerParameter> + <IntegerParameter Name="UINT32_Max">1</IntegerParameter> + <IntegerParameter Name="INT32_Max">-1</IntegerParameter> + <IntegerParameter Name="UINT16">1</IntegerParameter> + <IntegerParameter Name="INT16">-1</IntegerParameter> + <IntegerParameter Name="UINT16_Max">1</IntegerParameter> + <IntegerParameter Name="INT16_Max">-1</IntegerParameter> + <IntegerParameter Name="UINT8">1</IntegerParameter> + <IntegerParameter Name="INT8">-1</IntegerParameter> + <IntegerParameter Name="UINT8_Max">1</IntegerParameter> + <IntegerParameter Name="INT8_Max">-1</IntegerParameter> + <!-- Tested Arrays --> + <IntegerParameter Name="UINT32_ARRAY">1</IntegerParameter> + <IntegerParameter Name="INT16_ARRAY">-1</IntegerParameter> + <IntegerParameter Name="UINT8_ARRAY">1</IntegerParameter> + <IntegerParameter Name="UINT8_Max_ARRAY">1</IntegerParameter> + <!-- Tested String--> + <StringParameter Name="STR_CHAR128">string_Conf_1_0</StringParameter> + </Component> + </ConfigurableElement> + </Configuration> + </Settings> + </ConfigurableDomain> +</ConfigurableDomains> |