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

Backport of #60: Fix macOS/windows tests that failed to load library #101

Merged
merged 1 commit into from
Feb 18, 2021

Conversation

azeey
Copy link
Contributor

@azeey azeey commented Feb 18, 2021

This backports #60 except the macOS workflow.

Note to maintainers: Remember to use Rebase and merge

Fix macOS/windows tests that failed to load library (gazebosim#60)

* Add workflow for macos-latest
* Set test env to help find plugins

This fixes tests on macOS and windows that were failing to
find and/or load a sensor component library.

In windows CI and the macOS workflow (which runs `make test`
before `make install`) tests were failing with
the message "Unable to find sensor plugin path".
This is fixed by setting the IGN_PLUGIN_PATH in cmake to
the build folder containing the compiled plugins.

In the macOS jenkins build (which runs `make test` after
`make install`) tests were failing with the message
"SDF sensor type does not match template type". It was
difficult to track down, but it appears to be caused by
a failure to properly dlopen all the shared libraries
linked by the component plugins when a test finds an
installed component library, rather than one from the build
folder. It is fixed by setting DYLD_LIBRARY_PATH to include
the location of the installed libraries.

Fixes gazebosim#4.

* Remove redundant AddPluginPaths calls from tests

They don't work on windows, so just depend on the
environment variables set in cmake instead.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
@azeey azeey requested a review from iche033 as a code owner February 18, 2021 00:37
@github-actions github-actions bot added the 🏰 citadel Ignition Citadel label Feb 18, 2021
@azeey azeey merged commit 75e89ad into gazebosim:ign-sensors3 Feb 18, 2021
@azeey azeey deleted the azeey/backport_60 branch February 18, 2021 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏰 citadel Ignition Citadel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants