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