Git Product home page Git Product logo

Comments (4)

dirk-thomas avatar dirk-thomas commented on August 20, 2024

Removing -D ExperimentalTest from colcon_cmake would get rid of the warnings

This option is mandatory in order for ctest to generate a XML result file. So removing it without any kind of replacement is not an option. I am not aware of an alternative approach to generate these result files.

from ament_cmake.

jpsamper2009 avatar jpsamper2009 commented on August 20, 2024

@dirk-thomas This stackoverflow post recommends using -T test. From man ctests:

       -T <action>, --test-action <action>
              Sets the dashboard action to perform

              This  option  tells ctest to act as a CDash client and perform some action such as start, build, test etc.
              Combining -M and -T is similar to -D

The -M option:

        -M <model>, --test-model <model>
              Sets the model for a dashboard

              This option tells ctest to act as a CDash client where the TestModel can  be  Experimental,  Nightly,  and
              Continuous.  Combining -M and -T is similar to -D

From what I gather, -T test gives ctest the "Test" part of "ExperimentalTest" while -M Experimental gives ctest the "Experimental" part.

Does that make sense?

I'm not sure if CTest will still generate all the extra target, though

from ament_cmake.

dirk-thomas avatar dirk-thomas commented on August 20, 2024

The CTestCustom.ctest warning is coming from line 27 of ament_cmake_test-extras.cmake
Simply deleting the lines gets rid of the warning without causing any new warnings/error

Just removing the lines not a reasonable solution since these options are being set for a reason to avoid truncating the logs. In the proposed patch the more modern file CTestCustom.cmake is being generated instead.

I'm not sure if CTest will still generate all the extra target

The targets in the Makefile are being generated during the cmake invocation. As long as the CTest module is not being included anywhere in CMake those targets won't appear. Later ctest invocation don't change the already generated makefiles.

Please try the patch from PR #153 and comment if it works for your use case.

from ament_cmake.

jpsamper2009 avatar jpsamper2009 commented on August 20, 2024

@dirk-thomas The patch works great: it prevents those extra targets from being generated, and I'm not seeing any warnings from CMake, CTest or colcon. Thanks!

from ament_cmake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.