|
TestSuiteDocumentation
Test Suite Documentation
TEST SUITE openjpegConformance testingThese tests are hardcoded in tests/conformance/CMakeLists.txt and they return to the logic described in Standard (Part 4). The data is stored in OPJ_DATA_ROOT/input/conformance. DecodingIt is necessary:
For the daily monitoring of lib, we added tests that compare the output with an uncompressed file baseline and to ensure non-regression of these lib files conformance => CxPx-NR-${filenameInput}-compare2base. Note 1: it is possible for a file the first two tests pass but the latter fails because of an amendment to Part lossy decompression. It would then be possible after analysis of why to update the baseline to take the test. Indeed primortdial test is to stay within the tolerances provided by the standard. In addition to ensure non regression of the primary file, we set up tests to write to a text file the information in the main header. => $ {NR} filenameInput-dump. This text file is then compared with baseline => $ {NR} filenameInput compare_dump2base. Note 2: reading tests of the main header JPEG2000 files have a different output from the version of the trunk and that of the 1.5 so the baselines corresponding start and opj opj_v2 respectively. Conclusion: there is no need to add input files to this part of the tests, only the baselines tests compare2base comparedump2base and in some cases may be updated. TODO: in the case files. JP2 of conformance, there is no comparison tests with the reference or at the baseline (see issue 100) EncodingNo test suite specified by the standard. Regression testsThe main tests of regression are based on the file /tests/nonregression/test_suite.ctest.in them together in a simple form for the user. In fact the user can add a command line on a file to compress or decompress the file and automatically via the associated regression testing will be generated. DecodingFrom a command line type j2k_to_image-i-o file.j2k file.j2k.pgx, the following tests are generated:
Note: If the latter is achieved, it would be necessary to add a baseline every time we add a command line in the file j2k_to_image test_suite.ctest.in EncodingFrom a command line type j2k_to_image-i-o file.j2k file.j2k.pgx, the following tests are generated:
It is necessary to add two baselines every time we add a command line with image_to_j2k in tests/nonregression/test_suite.ctest.in (see point 3 and 5). j2k_dumpEach file in the directory added JPEG2000 OPJ_DATA_ROOT/input/nonregression is listed in the tests/nonregression/CMakeList.txt and automatically generates two tests:
| |