• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

testdata/15-Dec-2024-191183

README.mdD15-Dec-20243.1 KiB7652

aggregate_cts_reports.pyD15-Dec-20243.5 KiB10764

compare_cts_reports.pyD15-Dec-202410.6 KiB324231

constant.pyD15-Dec-2024958 3211

generate_spread_sheet.pyD15-Dec-20247.9 KiB255180

parse_cts_report.pyD15-Dec-202411.4 KiB417298

test_aggregate_cts_reports.pyD15-Dec-20244 KiB12293

test_compare_cts_reports.pyD15-Dec-20242.1 KiB6436

test_parse_cts_report.pyD15-Dec-20245.9 KiB173131

README.md

1This tool is used to analyze cts reports. Three scripts are included and can be used separately.
2
3# Terminology
4### Report
5A report can be either a standard CTS result zip file, or a test_result.xml file.
6### Information files
7"Information files" indicates three files: `info.json`, `result.csv`, `summary.csv`
8
9# Scripts
10## parse_cts_report.py
11### usage
12```
13./parse_cts_report.py -r REPORT -d OUTPUT_DIR [--abi [{armeabi-v7a,arm64-v8a,x86,x86_64} ...]]
14```
15
16The `-r` flag must be followed by exactly one report.
17
18The `-d` flag specifies the directory in which the information files will be stored.
19
20The `--abi` flag can be used to select one or more test ABIs to be parsed.
21
22## aggregate_cts_reports.py
23### usage
24```
25./aggregate_cts_reports.py -r REPORT [REPORT ...] -d OUTPUT_DIR [--ignore-abi] [--abi [{armeabi-v7a,arm64-v8a,x86,x86_64} ...]]
26```
27
28The `-r` flag can be followed by one or more reports.
29
30The `-d` flag has the same behavior as `parse_cts_report.py`.
31
32`--ignore-abi` is a boolean flag. If users specify this flag, tests ABI would be ignored while doing the aggregation. It means that two tests would be considered as the same one as long as they have the same module_name#class_name.test_name.
33
34The `--abi` flag can be used to select one or more test ABIs to be aggregated.
35
36## compare_cts_reports.py
37### usage
38```
39./compare_cts_reports.py [-h] [-r CTS_REPORTS [CTS_REPORTS ...]] [-f CTS_REPORTS] --mode {1,2,n} --output-dir OUTPUT_DIR [--csv CSV] [--output-files] [--ignore-abi]
40```
41
42One `-r` flag is followed by a group of report files that you want to aggregate.
43
44One `-f` flag is followed by **one** path to a folder, which contains parsed information files.
45
46The `-m` flag has to be specified: `1` for one-way mode, `2` for two-way mode, and `n` for n-way mode.
47
48The `-d` flag has to be specified. Behavior same as `parse_cts_report.py`.
49
50`--csv` allows users to specify the file name of the comparison result. The default value is `diff.csv`.
51
52`--output-files/-o` is a boolean flag. If users specify this flag, the parsed results of reports after flags `-r` will be outputed into the information files.
53
54`--ignore-abi` is a boolean flag, which has the same behavior as `aggregate_cts_reports.py`.
55
56### modes
57#### One-way Comparison
58The two reports from user input are report A and report B, respectively. Be careful that the order matters.
59
60One-way comparison lists the tests that fail in report A and the corresponding results in both reports.
61
62#### Two-way Comparison
63Two-way comparison lists the tests where report A and report B have different results. If a test only exists in one of the reports, the test result of the other report will be indicated as `null`.
64
65#### N-way Comparison
66N-way comparison mode is used to show a summary of several test reports.
67- The summaries are based on each module_name-abi pair. We call this pair "module" to simplify the explanation.
68- Modules are sorted by the lowest pass rate among all reports. That is, if a module has a pass rate of 0.0 in one of the reports, it will be listed on the very top of `diff.csv`.
69
70## Tests
71```
72./test_parse_cts_report.py
73./test_aggregate_cts_reports.py
74./test_compare_cts_reports.py
75```
76