arcolight commented on code in PR #7300: URL: https://github.com/apache/ignite-3/pull/7300#discussion_r2694971944
########## modules/platforms/cpp/tests/package-test/README.md: ########## @@ -0,0 +1,42 @@ +# Ignite Package Test + +This directory contains tests to verify that the installed Ignite package can be found and used correctly via CMake's `find_package()` mechanism. + +## Purpose + +These tests verify: +1. The `ignite-config.cmake` package configuration works correctly +2. Component-based discovery (client, odbc) functions properly +3. The exported CMake targets link correctly +4. Headers and libraries are accessible + +## Building the Tests + +Each test cmake can build two tests: `test_client` and `test_odbc`, there are corresponding cmake options: + * `ENABLE_CLIENT` + * `ENABLE_ODBC` +These options could be used together. Each cmake configuration should build two tests (if `ENABLE_CLIENT=ON` and `ENABLE_ODBC=ON` specified). +Successful compilation of these tests means we have found Ignite components, include directories and libraries to link with. + +### `cmake_package` + +This test implies that there is Ignite source code folder and Ignite was built at least once, but was not installed. +This test uses `ignite-config.cmake` which will be generated in the binary directory. + +Build command: +`cmake -DENABLE_CLIENT=ON -DENABLE_ODBC=ON -S ../tests/package-test/cmake_package/ -B build_package && cmake --build build_package` + +### `cmake_package_install` + +This test will search for the Ignite installation. For test purposes install will be done in the directory inside build directory. Review Comment: Fixed -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
