configurationengine/source/plugins/symbian/ConeCRMLPlugin/CRMLPlugin/tests/unittest_crml_impl.py
author terytkon
Thu, 11 Mar 2010 17:04:37 +0200
changeset 0 2e8eeb919028
child 3 e7e0ae78773e
permissions -rw-r--r--
Adding EPL version of configurationengine.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     1
#
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     2
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     3
# All rights reserved.
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     4
# This component and the accompanying materials are made available
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     5
# under the terms of "Eclipse Public License v1.0"
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     6
# which accompanies this distribution, and is available
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     8
#
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     9
# Initial Contributors:
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    10
# Nokia Corporation - initial contribution.
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    11
#
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    12
# Contributors:
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    13
#
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    14
# Description:
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    15
#
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    16
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    17
import sys, os, unittest
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    18
import __init__
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    19
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    20
ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    21
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    22
from cone.public import exceptions, plugin, api, container
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    23
from cone.public.plugin import FlatComparisonResultEntry, DuplicateImplementationEntry
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    24
from CRMLPlugin import crml_impl, crml_reader
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    25
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    26
def impl_from_resource(resource_ref, configuration):
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    27
    doc_root = plugin.ReaderBase._read_xml_doc_from_resource(resource_ref, configuration)
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    28
    return crml_reader.CrmlReader.read_impl(resource_ref, configuration, doc_root)
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    29
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    30
class MockGenerationContext(object):
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    31
    def __init__(self):
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    32
        self.tags = {}
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    33
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    34
class TestCrmlImpl(unittest.TestCase):
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    35
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    36
    def setUp(self):
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    37
        project_dir = os.path.join(ROOT_PATH, 'gen_project')
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    38
        self.project = api.Project(api.Storage.open(project_dir))
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    39
        self.config = self.project.get_configuration('root.confml')
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    40
    
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    41
    def test_has_ref(self):
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    42
        impl = impl_from_resource('Layer1/implml/00000001_feature1.crml', self.config)
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    43
        self.assertTrue(impl.has_ref(['Feature1.IntSetting']))
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    44
        self.assertTrue(impl.has_ref(['Feature1.RealSetting']))
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    45
        self.assertTrue(impl.has_ref(['Feature1.RealSetting', 'foo.bar']))
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    46
        
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    47
        impl = impl_from_resource('Layer1/implml/00000003_bitmask_test.crml', self.config)
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    48
        self.assertTrue(impl.has_ref(['BitmaskTest.Bit0']))
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    49
        self.assertFalse(impl.has_ref(['BitmaskTest.FooBit']))
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    50
        
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    51
        impl = impl_from_resource('Layer1/implml/0000000C_key_range.crml', self.config)
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    52
        self.assertTrue(impl.has_ref(['KeyRangeTest.EmptySequenceSetting']))
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    53
        self.assertTrue(impl.has_ref(['KeyRangeTest.EmptySequenceSetting.StringSubSetting']))
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    54
        self.assertFalse(impl.has_ref(['KeyRangeTest']))
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    55
        self.assertFalse(impl.has_ref(['KeyRangeTest.Foo']))
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    56
    
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    57
    def test_list_output_files(self):
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    58
        def oj( p2): # oj = output_join
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    59
            return os.path.normpath(os.path.join('output', p2))
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    60
        
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    61
        impl = impl_from_resource('Layer1/implml/00000001_feature1.crml', self.config)
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    62
        self.assertEquals(impl.list_output_files(), [oj('00000001.txt')])
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    63
        
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    64
        impl = impl_from_resource('Layer1/implml/00000003_bitmask_test.crml', self.config)
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    65
        self.assertEquals(impl.list_output_files(), [oj('00000003.txt')])
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    66
        
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    67
        gc = MockGenerationContext()
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    68
        gc.tags['target'] = ['core']
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    69
        impl.generation_context = gc
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    70
        self.assertEquals(impl.list_output_files(), [oj('00000003.txt'), oj('private/100059C9/cenrep_rfs.txt')])
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    71
    
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    72
    def test_is_cenrep_rfs_txt_to_be_generated(self):
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    73
        impl = impl_from_resource('Layer1/implml/00000001_feature1.crml', self.config)
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    74
        self.assertFalse(impl._is_cenrep_rfs_txt_to_be_generated())
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    75
        
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    76
        gc = MockGenerationContext()
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    77
        impl.generation_context = gc
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    78
        self.assertFalse(impl._is_cenrep_rfs_txt_to_be_generated())
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    79
        gc.tags['target'] = []
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    80
        self.assertFalse(impl._is_cenrep_rfs_txt_to_be_generated())
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    81
        gc.tags['target'] = ['uda']
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    82
        self.assertFalse(impl._is_cenrep_rfs_txt_to_be_generated())
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    83
        gc.tags['target'] = ['rofs3']
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    84
        self.assertFalse(impl._is_cenrep_rfs_txt_to_be_generated())
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    85
        gc.tags['target'] = ['rofs2']
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    86
        self.assertTrue(impl._is_cenrep_rfs_txt_to_be_generated())
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    87
        gc.tags['target'] = ['core']
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    88
        self.assertTrue(impl._is_cenrep_rfs_txt_to_be_generated())
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    89
        gc.tags['target'] = ['core', 'rofs3']
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    90
        self.assertTrue(impl._is_cenrep_rfs_txt_to_be_generated())
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    91
        gc.tags['target'] = ['uda', 'rofs2']
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    92
        self.assertTrue(impl._is_cenrep_rfs_txt_to_be_generated())
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    93
    
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    94
    def _open_config(self, project, config='root.confml'):
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    95
        project_dir = os.path.join(ROOT_PATH, project)
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    96
        project = api.Project(api.Storage.open(project_dir))
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    97
        return project.get_configuration(config)
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    98
    
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    99
    def test_compare(self):
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   100
        conf1 = self._open_config('comp_project_1')
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   101
        conf2 = self._open_config('comp_project_2')
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   102
        
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   103
        crml_file = None
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   104
        repo_uid = None
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   105
        
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   106
        def entry(**kwargs):
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   107
            kwargs['file']      = crml_file
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   108
            kwargs['impl_type'] = 'crml'
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   109
            kwargs['id']        = repo_uid
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   110
            return plugin.FlatComparisonResultEntry(**kwargs)
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   111
        
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   112
        comparison_result = None
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   113
        
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   114
        crml_file = 'Layer1/implml/00000001_simple_keys.crml'
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   115
        impl_filter = '00000001_simple_keys.crml$'
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   116
        repo_uid = '0x00000001'
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   117
        impls1 = plugin.get_impl_set(conf1, impl_filter)
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   118
        impls2 = plugin.get_impl_set(conf2, impl_filter)
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   119
        actual_result = impls1.flat_compare(impls2)
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   120
        
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   121
        expected_mods = [
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   122
            entry(sub_id='0x00000001', value_id='type',     source_value='int', target_value='real'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   123
            entry(sub_id='0x00000002', value_id='backup',   source_value=True,  target_value=False),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   124
            
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   125
            entry(sub_id='0x00000003', value_id='read_only', source_value=True,     target_value=False),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   126
            entry(sub_id='0x00000004', value_id='read_only', source_value=False,    target_value=True),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   127
            # Changing read-only changes also cap_wr
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   128
            entry(sub_id='0x00000003', value_id='cap_wr',   source_value='AlwaysFail',    target_value=None),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   129
            entry(sub_id='0x00000004', value_id='cap_wr',   source_value=None,            target_value='AlwaysFail'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   130
            
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   131
            entry(sub_id='0x00000005', value_id='type',     source_value='int',                 target_value='real'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   132
            entry(sub_id='0x00000006', value_id='name',     source_value='Setting 6',           target_value='Setting 6 (name changed)'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   133
            entry(sub_id='0x00000007', value_id='ref',      source_value='SimpleKeys.Setting7', target_value='SimpleKeys.Setting7RefChanged'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   134
            entry(sub_id='0x00000008', value_id='cap_rd',   source_value='ReadDeviceData',      target_value='ReadUserData'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   135
            entry(sub_id='0x00000008', value_id='cap_wr',   source_value='WriteDeviceData',     target_value='WriteUserData'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   136
            entry(sub_id='0x00000008', value_id='sid_rd',   source_value='0xAABBCCDD',          target_value='0x11223344'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   137
            entry(sub_id='0x00000008', value_id='sid_wr',   source_value='0xDDCCBBAA',          target_value='0x44332211'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   138
            entry(sub_id='0x00000009', value_id='cap_rd',   source_value='ReadDeviceData',      target_value=None),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   139
            entry(sub_id='0x00000009', value_id='cap_wr',   source_value='WriteDeviceData',     target_value=None),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   140
            entry(sub_id='0x00000009', value_id='sid_rd',   source_value='0xAABBCCDD',          target_value=None),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   141
            entry(sub_id='0x00000009', value_id='sid_wr',   source_value='0xDDCCBBAA',          target_value=None),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   142
        ]
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   143
        expected_removed = [
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   144
            entry(sub_id='0x10000001'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   145
            entry(sub_id='0x10000002'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   146
        ]
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   147
        expected_added = [
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   148
            entry(sub_id='0x20000001'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   149
            entry(sub_id='0x20000002'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   150
        ]
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   151
        expected_result = plugin.FlatComparisonResult(modified=expected_mods,
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   152
                                                      only_in_source=expected_removed,
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   153
                                                      only_in_target=expected_added)
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   154
        self.assertEquals(actual_result, expected_result)
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   155
        
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   156
    
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   157
    def test_compare_all(self):
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   158
        conf1 = self._open_config('comp_project_1')
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   159
        conf2 = self._open_config('comp_project_2')
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   160
        impls1 = plugin.get_impl_set(conf1)
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   161
        impls2 = plugin.get_impl_set(conf2)
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   162
        actual_result = impls1.flat_compare(impls2)
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   163
        
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   164
        expected_result = plugin.FlatComparisonResult(
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   165
            only_in_source = [
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   166
            FlatComparisonResultEntry(file='Layer1/implml/00000001_simple_keys.crml', impl_type='crml', id='0x00000001', sub_id='0x10000001'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   167
            FlatComparisonResultEntry(file='Layer1/implml/00000001_simple_keys.crml', impl_type='crml', id='0x00000001', sub_id='0x10000002'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   168
            FlatComparisonResultEntry(file='Layer1/implml/00000002_bitmask_keys.crml', impl_type='crml', id='0x00000002', sub_id='0x00000001 (bit 4)'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   169
            FlatComparisonResultEntry(file='Layer1/implml/00000002_bitmask_keys.crml', impl_type='crml', id='0x00000002', sub_id='0x00000003 (bit 4)'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   170
            FlatComparisonResultEntry(file='Layer1/implml/00000002_bitmask_keys.crml', impl_type='crml', id='0x00000002', sub_id='0x10000001'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   171
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00001001-0x00001FFF (sub-key 0x00000004)'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   172
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00003001-0x00003FFF (sub-key 0x00000004)'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   173
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x10001001-0x10001FFF'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   174
            FlatComparisonResultEntry(file='Layer1/implml/10000001_removed_repo.crml', impl_type='crml', id='0x10000001'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   175
            ],
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   176
            only_in_target = [
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   177
            FlatComparisonResultEntry(file='Layer1/implml/00000001_simple_keys.crml', impl_type='crml', id='0x00000001', sub_id='0x20000001'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   178
            FlatComparisonResultEntry(file='Layer1/implml/00000001_simple_keys.crml', impl_type='crml', id='0x00000001', sub_id='0x20000002'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   179
            FlatComparisonResultEntry(file='Layer1/implml/00000002_bitmask_keys.crml', impl_type='crml', id='0x00000002', sub_id='0x00000001 (bit 5)'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   180
            FlatComparisonResultEntry(file='Layer1/implml/00000002_bitmask_keys.crml', impl_type='crml', id='0x00000002', sub_id='0x00000003 (bit 5)'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   181
            FlatComparisonResultEntry(file='Layer1/implml/00000002_bitmask_keys.crml', impl_type='crml', id='0x00000002', sub_id='0x20000001'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   182
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00001001-0x00001FFF (sub-key 0x00000005)'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   183
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00003001-0x00003FFF (sub-key 0x00000005)'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   184
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x20001001-0x20001FFF'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   185
            FlatComparisonResultEntry(file='Layer1/implml/20000001_added_repo.crml', impl_type='crml', id='0x20000001'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   186
            ],
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   187
            modified = [
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   188
            FlatComparisonResultEntry(file='Layer1/implml/00000001_simple_keys.crml', impl_type='crml', id='0x00000001', sub_id='0x00000001', value_id='type', source_value='int', target_value='real'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   189
            FlatComparisonResultEntry(file='Layer1/implml/00000001_simple_keys.crml', impl_type='crml', id='0x00000001', sub_id='0x00000002', value_id='backup', source_value=True, target_value=False),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   190
            FlatComparisonResultEntry(file='Layer1/implml/00000001_simple_keys.crml', impl_type='crml', id='0x00000001', sub_id='0x00000003', value_id='cap_wr', source_value='AlwaysFail', target_value=None),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   191
            FlatComparisonResultEntry(file='Layer1/implml/00000001_simple_keys.crml', impl_type='crml', id='0x00000001', sub_id='0x00000003', value_id='read_only', source_value=True, target_value=False),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   192
            FlatComparisonResultEntry(file='Layer1/implml/00000001_simple_keys.crml', impl_type='crml', id='0x00000001', sub_id='0x00000004', value_id='cap_wr', source_value=None, target_value='AlwaysFail'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   193
            FlatComparisonResultEntry(file='Layer1/implml/00000001_simple_keys.crml', impl_type='crml', id='0x00000001', sub_id='0x00000004', value_id='read_only', source_value=False, target_value=True),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   194
            FlatComparisonResultEntry(file='Layer1/implml/00000001_simple_keys.crml', impl_type='crml', id='0x00000001', sub_id='0x00000005', value_id='type', source_value='int', target_value='real'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   195
            FlatComparisonResultEntry(file='Layer1/implml/00000001_simple_keys.crml', impl_type='crml', id='0x00000001', sub_id='0x00000006', value_id='name', source_value='Setting 6', target_value='Setting 6 (name changed)'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   196
            FlatComparisonResultEntry(file='Layer1/implml/00000001_simple_keys.crml', impl_type='crml', id='0x00000001', sub_id='0x00000007', value_id='ref', source_value='SimpleKeys.Setting7', target_value='SimpleKeys.Setting7RefChanged'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   197
            FlatComparisonResultEntry(file='Layer1/implml/00000001_simple_keys.crml', impl_type='crml', id='0x00000001', sub_id='0x00000008', value_id='cap_rd', source_value='ReadDeviceData', target_value='ReadUserData'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   198
            FlatComparisonResultEntry(file='Layer1/implml/00000001_simple_keys.crml', impl_type='crml', id='0x00000001', sub_id='0x00000008', value_id='cap_wr', source_value='WriteDeviceData', target_value='WriteUserData'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   199
            FlatComparisonResultEntry(file='Layer1/implml/00000001_simple_keys.crml', impl_type='crml', id='0x00000001', sub_id='0x00000008', value_id='sid_rd', source_value='0xAABBCCDD', target_value='0x11223344'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   200
            FlatComparisonResultEntry(file='Layer1/implml/00000001_simple_keys.crml', impl_type='crml', id='0x00000001', sub_id='0x00000008', value_id='sid_wr', source_value='0xDDCCBBAA', target_value='0x44332211'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   201
            FlatComparisonResultEntry(file='Layer1/implml/00000001_simple_keys.crml', impl_type='crml', id='0x00000001', sub_id='0x00000009', value_id='cap_rd', source_value='ReadDeviceData', target_value=None),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   202
            FlatComparisonResultEntry(file='Layer1/implml/00000001_simple_keys.crml', impl_type='crml', id='0x00000001', sub_id='0x00000009', value_id='cap_wr', source_value='WriteDeviceData', target_value=None),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   203
            FlatComparisonResultEntry(file='Layer1/implml/00000001_simple_keys.crml', impl_type='crml', id='0x00000001', sub_id='0x00000009', value_id='sid_rd', source_value='0xAABBCCDD', target_value=None),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   204
            FlatComparisonResultEntry(file='Layer1/implml/00000001_simple_keys.crml', impl_type='crml', id='0x00000001', sub_id='0x00000009', value_id='sid_wr', source_value='0xDDCCBBAA', target_value=None),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   205
            FlatComparisonResultEntry(file='Layer1/implml/00000002_bitmask_keys.crml', impl_type='crml', id='0x00000002', sub_id='0x00000001', value_id='cap_rd', source_value='ReadDeviceData', target_value='ReadUserData'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   206
            FlatComparisonResultEntry(file='Layer1/implml/00000002_bitmask_keys.crml', impl_type='crml', id='0x00000002', sub_id='0x00000001', value_id='cap_wr', source_value='WriteDeviceData', target_value='WriteUserData'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   207
            FlatComparisonResultEntry(file='Layer1/implml/00000002_bitmask_keys.crml', impl_type='crml', id='0x00000002', sub_id='0x00000001', value_id='name', source_value='Bitmask 1', target_value='Bitmask 1 (name changed)'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   208
            FlatComparisonResultEntry(file='Layer1/implml/00000002_bitmask_keys.crml', impl_type='crml', id='0x00000002', sub_id='0x00000001', value_id='sid_rd', source_value='0xAABBCCDD', target_value='0x11223344'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   209
            FlatComparisonResultEntry(file='Layer1/implml/00000002_bitmask_keys.crml', impl_type='crml', id='0x00000002', sub_id='0x00000001', value_id='sid_wr', source_value='0xDDCCBBAA', target_value='0x44332211'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   210
            FlatComparisonResultEntry(file='Layer1/implml/00000002_bitmask_keys.crml', impl_type='crml', id='0x00000002', sub_id='0x00000001', value_id='type', source_value='int', target_value='binary'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   211
            FlatComparisonResultEntry(file='Layer1/implml/00000002_bitmask_keys.crml', impl_type='crml', id='0x00000002', sub_id='0x00000001 (bit 2)', value_id='ref', source_value='BitmaskKeys.Bit2', target_value='BitmaskKeys.Bit2RefChanged'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   212
            FlatComparisonResultEntry(file='Layer1/implml/00000002_bitmask_keys.crml', impl_type='crml', id='0x00000002', sub_id='0x00000001 (bit 3)', value_id='invert', source_value=False, target_value=True),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   213
            FlatComparisonResultEntry(file='Layer1/implml/00000002_bitmask_keys.crml', impl_type='crml', id='0x00000002', sub_id='0x00000003', value_id='name', source_value='Modified read-only bitmask', target_value='Modified read-only bitmask (name changed)'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   214
            FlatComparisonResultEntry(file='Layer1/implml/00000002_bitmask_keys.crml', impl_type='crml', id='0x00000002', sub_id='0x00000003', value_id='type', source_value='int', target_value='binary'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   215
            FlatComparisonResultEntry(file='Layer1/implml/00000002_bitmask_keys.crml', impl_type='crml', id='0x00000002', sub_id='0x00000003 (bit 2)', value_id='ref', source_value='BitmaskKeys.Bit2', target_value='BitmaskKeys.Bit2RefChanged'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   216
            FlatComparisonResultEntry(file='Layer1/implml/00000002_bitmask_keys.crml', impl_type='crml', id='0x00000002', sub_id='0x00000003 (bit 3)', value_id='invert', source_value=False, target_value=True),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   217
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00001001-0x00001FFF', value_id='backup', source_value=True, target_value=False),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   218
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00001001-0x00001FFF', value_id='cap_rd', source_value='ReadDeviceData', target_value='ReadUserData'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   219
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00001001-0x00001FFF', value_id='cap_wr', source_value='WriteDeviceData', target_value='WriteUserData'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   220
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00001001-0x00001FFF', value_id='first_index', source_value=1L, target_value=2L),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   221
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00001001-0x00001FFF', value_id='index_bits', source_value='0x00000FF0', target_value='0x00001FE0'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   222
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00001001-0x00001FFF', value_id='name', source_value='Sequence 1', target_value='Sequence 1 (name changed)'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   223
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00001001-0x00001FFF', value_id='ref', source_value='KeyRanges.Seq1', target_value='KeyRanges.Seq1RefChanged'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   224
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00001001-0x00001FFF', value_id='sid_rd', source_value='0x11223344', target_value='0xAABBCCDD'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   225
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00001001-0x00001FFF', value_id='sid_wr', source_value='0x44332211', target_value='0xDDCCBBAA'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   226
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00001001-0x00001FFF (sub-key 0x00000002)', value_id='name', source_value='Sub-setting 2', target_value='Sub-setting 2 (name changed)'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   227
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00001001-0x00001FFF (sub-key 0x00000002)', value_id='ref', source_value='SubSetting2', target_value='SubSetting2RefChanged'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   228
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00001001-0x00001FFF (sub-key 0x00000002)', value_id='type', source_value='int', target_value='real'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   229
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00002000-0x00002FFF', value_id='backup', source_value=True, target_value=False),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   230
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00002000-0x00002FFF', value_id='read_only', source_value=True, target_value=False),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   231
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00003000-0x00003FFF', value_id='read_only', source_value=False, target_value=True),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   232
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00003001-0x00003FFF', value_id='cap_rd', source_value='ReadDeviceData', target_value='ReadUserData'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   233
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00003001-0x00003FFF', value_id='cap_wr', source_value='WriteDeviceData', target_value='WriteUserData'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   234
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00003001-0x00003FFF', value_id='first_index', source_value=1, target_value=2),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   235
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00003001-0x00003FFF', value_id='index_bits', source_value='0x00000FF0', target_value='0x00001FE0'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   236
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00003001-0x00003FFF', value_id='name', source_value='Read-only sequence', target_value='Read-only sequence (name changed)'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   237
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00003001-0x00003FFF', value_id='ref', source_value='KeyRanges.ReadOnlySeq', target_value='KeyRanges.ReadOnlySeqRefChanged'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   238
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00003001-0x00003FFF', value_id='sid_rd', source_value='0x11223344', target_value='0xAABBCCDD'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   239
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00003001-0x00003FFF', value_id='sid_wr', source_value='0x44332211', target_value='0xDDCCBBAA'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   240
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00003001-0x00003FFF (sub-key 0x00000002)', value_id='name', source_value='Sub-setting 2', target_value='Sub-setting 2 (name changed)'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   241
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00003001-0x00003FFF (sub-key 0x00000002)', value_id='ref', source_value='SubSetting2', target_value='SubSetting2RefChanged'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   242
            FlatComparisonResultEntry(file='Layer1/implml/00000003_key_ranges.crml', impl_type='crml', id='0x00000003', sub_id='0x00003001-0x00003FFF (sub-key 0x00000002)', value_id='type', source_value='int', target_value='real'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   243
            FlatComparisonResultEntry(file='Layer1/implml/00000004_key_type_changed.crml', impl_type='crml', id='0x00000004', sub_id='0x00000001', value_id='key_type', source_value='simple_key', target_value='bitmask_key'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   244
            FlatComparisonResultEntry(file='Layer1/implml/00000004_key_type_changed.crml', impl_type='crml', id='0x00000004', sub_id='0x00000002', value_id='key_type', source_value='bitmask_key', target_value='simple_key'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   245
            FlatComparisonResultEntry(file='Layer1/implml/00000004_key_type_changed.crml', impl_type='crml', id='0x00000004', sub_id='0x00000003', value_id='backup', source_value=True, target_value=False),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   246
            FlatComparisonResultEntry(file='Layer1/implml/00000004_key_type_changed.crml', impl_type='crml', id='0x00000004', sub_id='0x00000003', value_id='cap_rd', source_value='ReadDeviceData', target_value='ReadUserData'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   247
            FlatComparisonResultEntry(file='Layer1/implml/00000004_key_type_changed.crml', impl_type='crml', id='0x00000004', sub_id='0x00000003', value_id='cap_wr', source_value='AlwaysFail', target_value='WriteUserData'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   248
            FlatComparisonResultEntry(file='Layer1/implml/00000004_key_type_changed.crml', impl_type='crml', id='0x00000004', sub_id='0x00000003', value_id='name', source_value='Bitmask key to simple key (other attrs changed also)', target_value='Bitmask key to simple key (other attrs changed also [xyz])'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   249
            FlatComparisonResultEntry(file='Layer1/implml/00000004_key_type_changed.crml', impl_type='crml', id='0x00000004', sub_id='0x00000003', value_id='read_only', source_value=True, target_value=False),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   250
            FlatComparisonResultEntry(file='Layer1/implml/00000004_key_type_changed.crml', impl_type='crml', id='0x00000004', sub_id='0x00000003', value_id='sid_rd', source_value='0xAABBCCDD', target_value='0x11223344'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   251
            FlatComparisonResultEntry(file='Layer1/implml/00000004_key_type_changed.crml', impl_type='crml', id='0x00000004', sub_id='0x00000003', value_id='sid_wr', source_value=None, target_value='0x44332211'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   252
            FlatComparisonResultEntry(file='Layer1/implml/00000004_key_type_changed.crml', impl_type='crml', id='0x00000004', sub_id='0x00000003', value_id='type', source_value='int', target_value='binary'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   253
            FlatComparisonResultEntry(file='Layer1/implml/00000005_repo_attrs_changed.crml', impl_type='crml', id='0x00000005', sub_id=None, value_id='backup', source_value=True, target_value=False),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   254
            FlatComparisonResultEntry(file='Layer1/implml/00000005_repo_attrs_changed.crml', impl_type='crml', id='0x00000005', sub_id=None, value_id='cap_rd', source_value='ReadDeviceData', target_value='ReadUserData'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   255
            FlatComparisonResultEntry(file='Layer1/implml/00000005_repo_attrs_changed.crml', impl_type='crml', id='0x00000005', sub_id=None, value_id='cap_wr', source_value='WriteDeviceData', target_value='WriteUserData'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   256
            FlatComparisonResultEntry(file='Layer1/implml/00000005_repo_attrs_changed.crml', impl_type='crml', id='0x00000005', sub_id=None, value_id='rfs', source_value=True, target_value=False),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   257
            FlatComparisonResultEntry(file='Layer1/implml/00000005_repo_attrs_changed.crml', impl_type='crml', id='0x00000005', sub_id=None, value_id='sid_rd', source_value='0x11223344', target_value='0xAABBCCDD'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   258
            FlatComparisonResultEntry(file='Layer1/implml/00000005_repo_attrs_changed.crml', impl_type='crml', id='0x00000005', sub_id=None, value_id='sid_wr', source_value='0x44332211', target_value='0xDDCCBBAA'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   259
            FlatComparisonResultEntry(file='Layer1/implml/00000005_repo_attrs_changed.crml', impl_type='crml', id='0x00000005', sub_id=None, value_id='uid_name', source_value='RepoAttrsChanged', target_value='RepoAttrsChangedXyz'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   260
            FlatComparisonResultEntry(file='Layer1/implml/00000006_renamed_repo_xyz.crml', impl_type='crml', id='0x00000006', sub_id=None, value_id='file', source_value='Layer1/implml/00000006_renamed_repo.crml', target_value='Layer1/implml/00000006_renamed_repo_xyz.crml'),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   261
            ],
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   262
            duplicate = [
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   263
            DuplicateImplementationEntry(impl_type='crml', id='0x30000000', files_in_source=['Layer1/implml/30000000_duplicate_repo1_proj1.crml', 'Layer1/implml/30000000_duplicate_repo2_proj1.crml'], files_in_target=['Layer1/implml/30000000_duplicate_repo2_proj2.crml', 'Layer1/implml/30000000_duplicate_repo1_proj2.crml'])
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   264
            ])
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   265
        self.assertEquals(actual_result, expected_result)