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

Reorganize and Add to CMake Tests #4374

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

iguessthislldo
Copy link
Member

@iguessthislldo iguessthislldo commented Nov 30, 2023

Reorganized test CMakeLists.txt files to make it easier to add tests in the future. It also unifies the lists of MPC-build OpenDDS CMake tests and the CMake-build tests.

Also:

  • Added tests/unit-tests, tests/DCPS/Compiler/xcdr, and tests/DCPS/Messenger (from Messenger_2 CMake test) to CMake.
  • Some cleanup in the various test CMakeLists files.
  • Removed unused file from unit tests

This will make it easier to add tests in the future. It also unifies the
lists of MPC-build OpenDDS CMake tests and the CMake-build tests.

Also:
- Promoted Messenger_2 CMake test to `tests/DCPS/Messenger`.
- Various cleanup to the various test CMakeLists files.
@iguessthislldo iguessthislldo requested review from jrw972 and removed request for jrw972 November 30, 2023 04:53
- Only install RapidJSON if it's from FetchContent or submodule
- Mention when OPENDDS_MPC isn't defined
- Set C++ std based on ACE Version
- Define GTEST_LINKED_AS_SHARED_LIBRARY when needed
- Update install test
iguessthislldo added a commit to iguessthislldo/OpenDDS that referenced this pull request Feb 23, 2024
This continues the work started in
OpenDDS#4481 and tries to correctly
handle C++ standards in all CMake support. Previously the CMake support
was agnostic towards C++ standards, but this meant that building with
CMake didn't have a way of differentiating C++ standards. Now we can
detect C++ standard support and should be able to build ACE accordingly.

Also:
- Added `OPENDDS_CXX_STD_YEAR` CMake variable for easy checking of C++
  standard support.
- In addition to passing `CMAKE_CXX_STANDARD` to the ACE/TAO MPC build,
  it will also now pass `CMAKE_CXX_COMPILER`.
- Removed need for `cmake/detect_ace.pl`
- Some of the changes originally in OpenDDS#4374
  - MPC location message will now say when it wasn't set.
  - Split adding of tests between different directories.
@iguessthislldo iguessthislldo self-assigned this Feb 28, 2024
iguessthislldo added a commit to iguessthislldo/OpenDDS that referenced this pull request Mar 27, 2024
This continues the work started in
OpenDDS#4481 and tries to correctly
handle C++ standards in all CMake support. Previously the CMake support
was agnostic towards C++ standards, but this meant that building with
CMake didn't have a way of differentiating C++ standards. Now we can
detect C++ standard support and should be able to build ACE/TAO
accordingly.

Also:
- Added `OPENDDS_CXX_STD_YEAR` CMake variable for easy checking of C++
  standard support.
- Passing C++ standard to the ACE/TAO MPC builds and
  `CMAKE_CXX_COMPILER` for gnuace builds.
- Removed need for `cmake/detect_ace.pl`
- Some of the changes originally in OpenDDS#4374
  - MPC location message will now say when it wasn't set.
  - Split adding of tests between different directories.
iguessthislldo added a commit to iguessthislldo/OpenDDS that referenced this pull request Mar 27, 2024
This continues the work started in
OpenDDS#4481 and tries to correctly
handle C++ standards in all CMake support. Previously the CMake support
was agnostic towards C++ standards, but this meant that building with
CMake didn't have a way of differentiating C++ standards. Now we can
detect C++ standard support and should be able to build ACE/TAO
accordingly.

Also:
- Added `OPENDDS_CXX_STD_YEAR` CMake variable for easy checking of C++
  standard support.
- Passing C++ standard to the ACE/TAO MPC builds and
  `CMAKE_CXX_COMPILER` for gnuace builds.
- Removed need for `cmake/detect_ace.pl`
- Some of the changes originally in OpenDDS#4374
  - MPC location message will now say when it wasn't set.
  - Split adding of tests between different directories.
@iguessthislldo iguessthislldo removed their assignment Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

None yet

1 participant