* [IE TESTS] Separate conformance tests to 3 targets: op_conformance, api_conformace and conformance_infra * Small fixes * small fix * try fix ci
Conformance test runner
Description
Conformance suit is a set of tests with parameters independent from plug-in specific and limitations. It contains:
ReadIR. Allow to read IRs from folders recursive, infer it and compare results with reference.
How to build
Run the following command in build directory:
- Generate CMake project:
cmake -DENABLE_FUNCTIONAL_TESTS=ON .. - Build the target:
make conformanceTests
How to run
The target is able to take the following command-line arguments:
-hprints target command-line options with description.--devicespecifies target device.--input_foldersspecifies folders with IRs to run. The separator is,.--plugin_lib_nameis name of plugin library. The example is MKLDNNPlugin. Use only with unregistered in IE Core devices.--disable_test_configallows to ignore all skipped tests with the exception ofDISABLED_prefix using.--skip_config_pathallows to specify paths to files contain regular expressions list to skip tests.--extend_reportallows not to re-write device results to the report (add results of this run to the existing). Mutually exclusive with --report_unique_name.--report_unique_nameallows to save report with unique name (report_pid_timestamp.xml). Mutually exclusive with --extend_report.--save_report_timeoutallows to try to save report in cycle using timeout (in seconds).--output_folderPaths to the output folder to save report.- All
gtestcommand-line parameters
The result of execution is report.xml file. It demonstrates tests statistic like pass rate, passed, crashed, skipped and failed tests per operation for
devices.
Note
:
Using of GTest parallel tool to run
conformanceTestshelps to report crashed tests and collect correct statistic after unexpected crashes.The example of usage is:
python3 gtest_parallel.py /path/to/openvino/bin/intel64/Debug/conformanceTests -d . --gtest_filter=*Add*:*BinaryConv* -- --input_folders=/path/to/ir_1,/path/to/ir_2 --device=CPU --report_unique_name --output_folder=/path/to/temp_output_report_folderAll arguments after
--symbol is forwarding toconformanceTeststarget.After using
--report_unique_nameargument please run the merge xml script to aggregate the results to one report. The example of usage is:python3 merge_xmls.py --input_folders=/path/to/temp_output_report_folder --output_folder=/path/to/output_report_folder --output_filename=report_aggregated
How to build operation coverage report
Run the script to generate html report.
The example of using the script is:
python3 summarize.py --xml /opt/repo/infrastructure-master/thirdparty/gtest-parallel/report.xml --out /opt/repo/infrastructure-master/thirdparty/gtest-parallel/