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
Test failures when building directly in source directory #842
Comments
|
Hi @opoplawski, The test files ending in In a checkout or untarred directory of the clamav source, you would find them under: We do a basic XOR encryption on these test files so that these files won't be detected by clamav scans of the source tarball or of the source in general when emailed or otherwise in transit. At build time, this python script is used to decrypt them and drops the decrypted test files to the build directory with the equivalent path. So in the build directory, you would find them under: So what I'm trying to say is that the encrypted Some of the tests expect that all of these files in the In summary, it looks to me like you are either trying to build directly in the source directory instead of in a new empty directory, or else you have copied the source into the build directory. |
|
Ah, thanks for that. And that explains why it fails on EL8 - the Fedora cmake macros default to in-source builds there, but not in current Fedora releases. You might consider detecting that condition and emitting an error message instead of falling into this cryptic situation. |
Agreed it would be way better if we could detect it and emit a useful message. |
|
There is some discussion of options here: https://stackoverflow.com/questions/1208681/with-cmake-how-would-you-disable-in-source-builds |
Describe the bug
Trying to build the Fedora clamav 1.0.1 rpm on EL8 + EPEL, I'm getting the following test failures:
The text was updated successfully, but these errors were encountered: