• Home
  • Raw
  • Download

Lines Matching +full:build +full:- +full:and +full:- +full:test

4 check source code changes to the compressor. It must be noted that this test
5 suite is relatively limited in scope and does not cover every feature or
10 Running the tests requires Python 3.7 to be installed on the host machine, and
11 an `astcenc-avx2` release build to have been previously compiled and installed
13 can be achieved by configuring the CMake build using the install prefix
14 `-DCMAKE_INSTALL_PREFIX=../` and then running a build with the `install` build
20 using the `googletest` framework and integrated in the CMake "CTest" test
23 To build unit tests pull the `googletest` git submodule and add
24 `-DASTCENC_UNITTEST=ON` to the CMake command line when configuring.
26 To run unit tests use the CMake `ctest` utility from your build directory after
30 cd build
31 ctest --verbose
37 options and core codec stability without testing the compression quality
40 python3 -m unittest discover -s Test -p astc_test*.py -v
44 To run the image test suite run the following command from the root directory
47 python3 ./Test/astc_test_image.py
50 PSNR against a set of reference results from the last stable baseline. The test
54 For debug purposes, all decompressed test output images and result CSV files
55 are stored in the `TestOutput` directory, using the same test set structure as
56 the `Test/Images` folder.
58 ## Test selection
63 * `--encoder` selects which encoder to run. By default the `avx2` encoder is
64 selected. Note that some out-of-tree reference encoders (older encoders, and
65 some third-party encoders) are supported for comparison purposes. These will
68 * `--test-set` selects which image set to run. By default the `Small` image
69 test set is selected, which aims to provide basic coverage of many different
70 color formats and color profiles.
71 * `--block-size` selects which block size to run. By default a range of
72 block sizes (2D and 3D) are used.
73 * `--color-profile` selects which color profiles from the standard should be
75 * `--color-format` selects which color formats should be used (L, XY, RGB,
80 To provide less noisy performance results the test suite supports compressing
81 each image multiple times and returning the best measured performance. To
84 * `--repeats <M>` : Run M test compression passes which are timed.
87 Core i5 9600K running at 4.3GHz, running each test 5 times.
91 The reference PSNR and performance scores are stored in CSVs committed to the
93 release on a standard test machine we use for performance testing builds.
96 local machine, in particular for measuring performance improvements. To build
98 GitHub for your host OS and place it in to the `./Binaries/1.7/` directory.
101 python3 ./Test/astc_test_image.py --encoder 1.7 --test-set all --repeats 5
105 **WARNING:** This can take some hours to complete, and it is best done when the
106 test suite gets exclusive use of the machine to avoid other processing slowing
107 down the compression and disturbing the performance data. It is recommended to
113 not introduced any obvious memory errors. Build a release build with symbols
114 information with `-DCMAKE_BUILD_TYPE=RelWithDebInfo` and then run:
116 valgrind --tool=memcheck --track-origins=yes <command>
118 - - -
120 _Copyright © 2019-2022, Arm Limited and contributors. All rights reserved._