Draft
Conversation
- Modernise CMakeLists.txt to CMake 3.10+, C++11, GNUInstallDirs, modern Boost targets, BUILD_TESTING option, and ptest-compatible install layout (lib/Area51/ptest/) - Fix duplicate BOOST_TEST_MODULE names in test2.cpp (→ test_module2) and test3.cpp (→ test_module3) - Add run-ptest shell script for Yocto ptest-runner integration - Update README.md with build/test/install/Yocto usage instructions - Add meta-area51/recipes-test/area51/area51_git.bb BitBake recipe Agent-Logs-Url: https://github.com/onkelpit/Area51/sessions/08b13553-00dd-4fce-bce3-b01971b7ff19 Co-authored-by: onkelpit <7003446+onkelpit@users.noreply.github.com>
…older Agent-Logs-Url: https://github.com/onkelpit/Area51/sessions/08b13553-00dd-4fce-bce3-b01971b7ff19 Co-authored-by: onkelpit <7003446+onkelpit@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
onkelpit
April 8, 2026 13:04
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reviews and bundles the Area51 C++ project into a well-structured test package that can be used in Yocto Project builds via the
ptestbbclass.Changes
CMakeLists.txtC++11standard requirement${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}) with the modern imported targetBoost::unit_test_frameworkGNUInstallDirsfor standard, relocatable install pathsBUILD_TESTINGoption (defaultsON)run-ptestland in${CMAKE_INSTALL_LIBDIR}/Area51/ptest/(Yocto${PTEST_PATH})install(FILES … TYPE BIN)syntax (was mixingFILESkeyword withTYPE BIN)CatchTests,BoostTest_Factorial, …)test2.cpp/test3.cppBOOST_TEST_MODULEmacro (test_module1in all three Boost files). Nowtest_module1,test_module2,test_module3respectively — required for correct Boost.Test linking.run-ptest(new)ptest-runner. Runs each test binary in sequence and emitsPASS:/FAIL:lines in the format expected by the runner.README.mdmeta-area51/recipes-test/area51/area51_git.bb(new)BitBake recipe — see below.
Validation
All 4 CTest tests pass locally:
BitBake recipe
How to use in a Yocto build
meta-area51/into yourbblayers.conflayer list (or add it as a separate layer).ptestis inDISTRO_FEATURES(orEXTRA_IMAGE_FEATURES += "ptest-pkgs").area51-ptestto your image recipe.