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

imageproc_tests fails when building offline in clean chroot #61

Open
hazel-bunny opened this issue Jul 4, 2023 · 0 comments
Open

imageproc_tests fails when building offline in clean chroot #61

hazel-bunny opened this issue Jul 4, 2023 · 0 comments

Comments

@hazel-bunny
Copy link

Summary

When the package is built in a clean chroot and tests are run, imageproc_tests fails

Description

I'm trying to package scantailor-advanced as an rpm for Fedora in my copr. The spec file for the rpm is here. For comparison, this is the spec file for good ol' scantailor. I can successfully build the rpm in a distrobox container and all the tests pass. On the other hand, when I build the rpm in either a mock chroot or in copr, scantailor-advanced builds but imageproc_tests fails.

Steps to reproduce

Build the package in copr or mock

Observed result

https://download.copr.fedorainfracloud.org/results/hazel-bunny/ports/fedora-38-x86_64/06121112-scantailor-advanced/builder-live.log.gz

Expected result

RPM should build successfully and all tests should pass

Additional information

LastTest.log

Start testing: Jul 04 14:53 UTC
----------------------------------------------------------
1/3 Testing: math_tests
1/3 Test: math_tests
Command: "/builddir/build/BUILD/scantailor-advanced-1.0.18/build/math_tests" "--log_level=message"
Directory: /builddir/build/BUILD/scantailor-advanced-1.0.18/build/src/math/tests
"math_tests" start time: Jul 04 14:53 UTC
Output:
----------------------------------------------------------
Running 10 test cases...

*** No errors detected

<end of output>
Test time =   0.55 sec
----------------------------------------------------------
Test Passed.
"math_tests" end time: Jul 04 14:53 UTC
"math_tests" time elapsed: 00:00:00
----------------------------------------------------------

2/3 Testing: imageproc_tests
2/3 Test: imageproc_tests
Command: "/builddir/build/BUILD/scantailor-advanced-1.0.18/build/imageproc_tests" "--log_level=message"
Directory: /builddir/build/BUILD/scantailor-advanced-1.0.18/build/src/imageproc/tests
"imageproc_tests" start time: Jul 04 14:53 UTC
Output:
----------------------------------------------------------
Running 85 test cases...
Test case SeedFillTestSuite/test_gray4_random did not check any assertions
Test case SeedFillTestSuite/test_gray8_random did not check any assertions
Test case SeedFillTestSuite/test_gray_vs_binary did not check any assertions
unknown location(0): fatal error: in "SkewFinderTestSuite/test_positive_detection": signal: SIGABRT (application abort requested)
/builddir/build/BUILD/scantailor-advanced-1.0.18/src/imageproc/tests/TestSkewFinder.cpp(21): last checkpoint: "test_positive_detection" test entry

*** 1 failure is detected in the test module "Master Test Suite"

<end of output>
Test time =   1.27 sec
----------------------------------------------------------
Test Failed.
"imageproc_tests" end time: Jul 04 14:53 UTC
"imageproc_tests" time elapsed: 00:00:01
----------------------------------------------------------

3/3 Testing: core_tests
3/3 Test: core_tests
Command: "/builddir/build/BUILD/scantailor-advanced-1.0.18/build/core_tests" "--log_level=message"
Directory: /builddir/build/BUILD/scantailor-advanced-1.0.18/build/src/core/tests
"core_tests" start time: Jul 04 14:53 UTC
Output:
----------------------------------------------------------
Running 10 test cases...

*** No errors detected

<end of output>
Test time =   0.05 sec
----------------------------------------------------------
Test Passed.
"core_tests" end time: Jul 04 14:53 UTC
"core_tests" time elapsed: 00:00:00
----------------------------------------------------------

End testing: Jul 04 14:53 UTC
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

1 participant