configurationengine/doc/cli/compare.rst
author m2lahtel
Tue, 10 Aug 2010 14:29:28 +0300
changeset 3 e7e0ae78773e
parent 0 2e8eeb919028
permissions -rw-r--r--
ConE 1.2.11 release
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     1
ConE compare action
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     2
===================
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     3
The compare action is intended to enable comparison of two configurations in different ways. The 
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     4
compare logic is done in a Jinja template, which makes it quite customizable. There are default
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     5
templates for data and API comparison that can be used with the --report-type switch, but a custom
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     6
template can also be used with the --template switch (see the examples).
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     7
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     8
Examples
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     9
--------
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    10
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    11
**Compare two configurations in current storage**::
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    12
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    13
    >cd configproject_root
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    14
    >cone compare -s configuration_root1.confml -t configuration_root2.confml
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    15
3
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
    16
The output is generated under current folder.
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
    17
By default the compare type is data comparison to data_comparison.html (use switch --report=FILENAME
0
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    18
to change the output file).
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    19
3
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
    20
* Example output `Data comparison report <../_static/data_comparison.html>`_
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
    21
0
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    22
**Compare configurations between the current storage and some remote storage**:
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    23
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    24
The target configuration can also include remote storage path, which must be separated from the 
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    25
configuration root by semicolon::
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    26
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    27
    >cd configproject_root
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    28
    >cone compare -s configuration_root1.confml -t \config_project2;configuration_root2.confml
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    29
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    30
**Compare configuration API between two configurations**
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    31
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    32
Use the --report-type switch make an API comparison.::
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    33
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    34
    >cd configproject_root
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    35
    >cone compare -s configuration_root1.confml -t \config_project2;configuration_root2.confml --report-type api
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    36
3
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
    37
* Example output `API comparison report <../_static/api_comparison.html>`_
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
    38
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
    39
**Compare Customisation interface to a product configuration interface**
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
    40
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
    41
The **ci** comparison is created for specific comparison of Customisation interface to a product configuration interface. Its purpose is to find out differences between the CI and actual developer confmls (for example in assets/s60 layer). It compares the source configuration to target and reports differences and source features that are missing from target configuration. 
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
    42
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
    43
Use the --report-type switch make an ci (CustomisationInterface) comparison.::
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
    44
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
    45
    >cd configproject_root
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
    46
    >cone compare -s customisation\CustomisationInterface\ci_root.confml -t vasco_langpack_01_root.confml --report-type=ci
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
    47
    Writing report to ci_comparison.html
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
    48
    Generated report to 'ci_comparison.html'
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
    49
    Done.
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
    50
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
    51
* Example output `CI comparison report <../_static/ci_comparison.html>`_
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
    52
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
    53
0
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    54
**Compare configurations using a custom template**
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    55
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    56
Use the --template switch to specify a custom template file.::
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    57
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    58
    >cd configproject_root
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    59
    >cone compare -s configuration_root1.confml -t \config_project2;configuration_root2.confml --template my_template.html
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    60
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    61
Options list
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    62
------------
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    63
  --version             show program's version number and exit
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    64
  -h, --help            show this help message and exit
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    65
  --print-settings      Print all the default settings from the current
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    66
                        setting container.
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    67
  --print-supported-impls
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    68
                        Print all supported ImplML XML namespaces and file
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    69
                        extension.
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    70
  -v LEVEL, --verbose=LEVEL
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    71
                        Print error, warning and information on system out.
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    72
                        Possible choices: Default is 3.
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    73
                        NONE (all)    0
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    74
                        CRITICAL      1
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    75
                        ERROR         2
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    76
                        WARNING       3
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    77
                        INFO          4
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    78
                        DEBUG         5
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    79
  --log-file=FILE       Location of the used log file. Default is 'cone.log'
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    80
  -p STORAGE, --project=STORAGE
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    81
                        defines the location of current project. Default is
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    82
                        the current working directory.
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    83
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    84
  Compare options:
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    85
    The generate function will create target files from a specific
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    86
    configuration.The generate will always work with read-only mode of the
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    87
    project, so no changes are saved to project
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    88
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    89
    -s CONFIG, --sourceconfiguration=CONFIG
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    90
                        defines the name of the sourceconfiguration for the
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    91
                        compare action. The configuration is expected to be
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    92
                        located current storage.
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    93
    -t CONFIG, --targetconfiguration=CONFIG
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    94
                        defines the name of the target configuration for the
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    95
                        compare action. The configuration can be located in
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    96
                        the current storage or it the configurationdefinition
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    97
                        can contain a path to a storage. The storage
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    98
                        definition is given as a pathbefore semicolon. e.g.
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    99
                        x:\data\configproject;productx.confml,
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   100
                        test.cpf;root.confml
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   101
    --report=FILE       The file where the comparison report is written.By
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   102
                        default this value is determined by the used report
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   103
                        type. Example: -r report.html.
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   104
    --template=FILE     Template used in a report generation. By default this
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   105
                        value is determined by the used report type. Example:
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   106
                        -t report_template.html.
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   107
    --report-type=TYPE  The type of the report to generate. This is a
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   108
                        convenience switch for setting the used template.
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   109
                        Possible values:
3
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
   110
                        api - Report changes in feature definitions
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
   111
                        ci - Report changes in CustomisationInterface definitions
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
   112
                        crml_dc - Report CRML data compatibility issues
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
   113
                        crml_dc_csv - Report CRML data compatibility issues
e7e0ae78773e ConE 1.2.11 release
m2lahtel
parents: 0
diff changeset
   114
                        (CSV format)
0
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   115
                        data - Report changes in data values
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   116
    --impl-filter=PATTERN
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   117
                        The pattern used for filtering implementations for the
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   118
                        comparison. See the switch --impl in action generate
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
   119
                        for more info.