Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JasPer 'make test' output is not helpful #312

Closed
bobfriesenhahn opened this issue Dec 22, 2021 · 5 comments
Closed

JasPer 'make test' output is not helpful #312

bobfriesenhahn opened this issue Dec 22, 2021 · 5 comments

Comments

@bobfriesenhahn
Copy link

The output from 'make test' is entirely unhelpful. When the JasPer codecs have been intentionally trimmed, the tests show many failures since the test suite assumes that all possible codecs are available.

It is useful if the tests only test the codecs which were configured or else support a way to report expected failures.
It is useful if the test output either specify the tests which failed, or say where to look for the results.

% make test
Running tests...
Test project /home/bfriesen/src/jasper-build
    Start 1: run_test_imginfo
1/7 Test #1: run_test_imginfo .................***Failed    0.70 sec
    Start 2: run_test_imgcmp
2/7 Test #2: run_test_imgcmp ..................***Failed    0.19 sec
    Start 3: run_test_1
3/7 Test #3: run_test_1 .......................   Passed    0.71 sec
    Start 4: run_test_2
4/7 Test #4: run_test_2 .......................***Failed    0.02 sec
    Start 5: run_test_3
5/7 Test #5: run_test_3 .......................***Failed    0.96 sec
    Start 6: run_test_4
6/7 Test #6: run_test_4 .......................   Passed    0.04 sec
    Start 7: run_test_5
7/7 Test #7: run_test_5 .......................***Failed    0.03 sec

29% tests passed, 5 tests failed out of 7

Total Test time (real) =   2.65 sec

The following tests FAILED:
          1 - run_test_imginfo (Failed)
          2 - run_test_imgcmp (Failed)
          4 - run_test_2 (Failed)
          5 - run_test_3 (Failed)
          7 - run_test_5 (Failed)
Errors while running CTest
make: *** [Makefile:107: test] Error 8
@mdadams
Copy link
Collaborator

mdadams commented Dec 23, 2021

The test suite does not require all codecs. It does require all of the native codecs, however. This is unlikely to change, since most of the tests perform transcoding (i.e., encoding in one format and decoding in another format), and this cannot be done when native codecs are missing. Furthermore, since there are no external dependencies for the native codecs, there is really no reason not to include them in the first place. Which codecs have you included in the library?

@bobfriesenhahn
Copy link
Author

bobfriesenhahn commented Dec 23, 2021 via email

@uvic-frodo
Copy link

I have added a warning message and disabled the test suite in the case that the test suite cannot function properly (due to excluded codec support). There is almost never a good reason to exclude native codec support since its inclusion does not result in additional external software dependencies. The only reason that I have added this ability is for users on embedded systems that are very memory constrained, where an extra 1 KiB of memory would break the system.

@uvic-frodo
Copy link

Incidentally, I also added comments to the CMake options for various codecs indicating if they are native.

@bobfriesenhahn
Copy link
Author

bobfriesenhahn commented Dec 23, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants