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

add test dependencies to package build dependencies #263

Merged
merged 1 commit into from
Apr 11, 2014

Conversation

dirk-thomas
Copy link
Member

No description provided.

@dirk-thomas dirk-thomas mentioned this pull request Apr 3, 2014
11 tasks
@wjwwood
Copy link
Contributor

wjwwood commented Apr 3, 2014

Should this be released immediately and for all ROS distros?

@tfoote
Copy link
Member

tfoote commented Apr 3, 2014

If were're disabling tests. We should remove the dh_auto_test invocation too. And this will mean that we never can run the tests in the debbuild.

@dirk-thomas
Copy link
Member Author

It is necessary for any package using format 2 in the future (since test dependencies won't be available anymore by default). Since the users requested this to possible in all ROS distros it would need to be applied to all. But it doesn't have to be released immediately.

The list of related changed is long (and not even complete yet). It can be rolled out with the other stuff together.

Due to the usage of DCATKIN_SKIP_TESTING=1 which keeps all testing macros but disables them (making them basically no-ops) I would expect no regressions. But there is always the possibility that some weird CMake files of existing packages might break.

@dirk-thomas
Copy link
Member Author

Since the Debian package only allows to specify build and run dependencies and with format 2 the test dependencies are separate from this the package does not know its test dependencies anymore and can therefore not run its tests.

@dirk-thomas
Copy link
Member Author

The travis error seems to be related to code style violations - all in parts which are not touched by this pull request? Locally the tests pass for me though.

@wjwwood
Copy link
Contributor

wjwwood commented Apr 3, 2014

Fixed in 30f7b61, please rebase.

Apparently, the new version of pep8 from pip is more aggressive, I was able to reproduce by upgrading it.

@dirk-thomas dirk-thomas changed the title disable testing when packaging add test dependencies to package build dependencies Apr 3, 2014
@dirk-thomas
Copy link
Member Author

I reworked this completely. Instead of disabling tests the test dependencies are now rolled into the build dependencies so that tests can be build as well as run.

@tfoote
Copy link
Member

tfoote commented Apr 4, 2014

+1

1 similar comment
@wjwwood
Copy link
Contributor

wjwwood commented Apr 8, 2014

+1

wjwwood added a commit that referenced this pull request Apr 11, 2014
…packaging

add test dependencies to package build dependencies
@wjwwood wjwwood merged commit 477e1c0 into master Apr 11, 2014
@wjwwood wjwwood deleted the disable_testing_when_packaging branch April 11, 2014 22:50
@k-okada
Copy link
Contributor

k-okada commented Apr 26, 2018

I'm not sure if this is our special case, or general problem, but sometimes on x86 and always on arm, the buildfirm can not find package only included in test_depends
ros-infrastructure/ros_buildfarm#539

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants