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

Compatibility with catch-3 #326

Open
mgorny opened this issue Dec 12, 2022 · 5 comments
Open

Compatibility with catch-3 #326

mgorny opened this issue Dec 12, 2022 · 5 comments

Comments

@mgorny
Copy link
Contributor

mgorny commented Dec 12, 2022

Catch-3 has been released and it is somewhat compatible with Catch2 but it seems to have some changes nevertheless. Notably, catch2/catch.hpp seems to have been removed:

/usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -DHTTP_TESTING -DSTUBGEN_TESTING -DTCPSOCKET_TESTING -DUNIXDOMAINSOCKET_TESTING -I/usr/include/jsoncpp -I/tmp/portage/dev-cpp/libjson-rpc-cpp-1.4.0/work/libjson-rpc-cpp-1.4.0_build/gen -I/tmp/portage/dev-cpp/libjson-rpc-cpp-1.4.0/work/libjson-rpc-cpp-1.4.0_build/gen/jsonrpccpp/common -I/tmp/portage/dev-cpp/libjson-rpc-cpp-1.4.0/work/libjson-rpc-cpp-1.4.0/src/test/.. -I/tmp/portage/dev-cpp/libjson-rpc-cpp-1.4.0/work/libjson-rpc-cpp-1.4.0_build  -march=znver2 --param=l1-cache-size=32 --param=l1-cache-line-size=64 -O2 -pipe -frecord-gcc-switches -std=c++11 -MD -MT src/test/CMakeFiles/unit_testsuite.dir/main.cpp.o -MF src/test/CMakeFiles/unit_testsuite.dir/main.cpp.o.d -o src/test/CMakeFiles/unit_testsuite.dir/main.cpp.o -c /tmp/portage/dev-cpp/libjson-rpc-cpp-1.4.0/work/libjson-rpc-cpp-1.4.0/src/test/main.cpp
/tmp/portage/dev-cpp/libjson-rpc-cpp-1.4.0/work/libjson-rpc-cpp-1.4.0/src/test/main.cpp:11:10: fatal error: catch2/catch.hpp: No such file or directory
   11 | #include <catch2/catch.hpp>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
@cinemast
Copy link
Owner

Hi Michal!

Thank you for raising the issue. Uff, I don't think I will upgrade to Catch 3. I wanted to switch to doctest some time ago anyway. I will see. If nothing I else, as a quick fix I can just vendor the old Catch2 version.

@mgorny
Copy link
Contributor Author

mgorny commented Dec 13, 2022

No need to vendor, it's against Gentoo policy to use vendored libs, so we'd have to block on external Catch-2 anyway.

@cinemast
Copy link
Owner

I don't quite understand, this is only for testing purposes, not for the functionality itself. Could you elaborate a little bit on what is currently the issue with catch2 and Gentoo?

@mgorny
Copy link
Contributor Author

mgorny commented Dec 22, 2022

Catch3 is technically a continuation of Catch2, and it can't be installed alongside it, so we can have only one version.

@mgorny
Copy link
Contributor Author

mgorny commented Dec 22, 2022

(i.e. it's installed as /usr/include/catch2, etc.)

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

2 participants