Skip to content

test_depend resolution when testing is disabled #769

@Doomerdinger

Description

@Doomerdinger

System Info

  • Operating System: Ubuntu 20.04
  • Python Version: 3.8.10
  • Version of catkin_tools: 0.9.2
  • ROS Distro: noetic

Build / Run Issue

  • Works with catkin_make Unknown
  • Works with catkin_make_isolated --merge
  • Works with catkin build
  • Works with catkin build -p1
  • I did not read this

Expected Behavior

If I build a package which specifies another package as a test_depend in its package.xml but CATKIN_ENABLE_TESTING=0 is specified in the build, the test_depend is disregarded and not built as a pre-requisite.

Actual Behavior

test_depend dependencies are built regardless of if testing is enabled or not.

Steps to Reproduce the Issue

The following is a simple example project. If you change the cmake args to disable testing and then build package B, catkin tools will still build package A first.
test_depend.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions