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 for number of shared object dependencies #93

Closed
wants to merge 3 commits into from
Closed

Conversation

olorin
Copy link
Contributor

@olorin olorin commented Dec 27, 2016

This has caused problems a few times and is a cheap test to add.

Fixes #88.

! @thumphries

#-------------------------------------

nso="$(objdump -p $TSRP | grep -E '^\s+NEEDED' | wc -l)"
[ "$nso" = "8" ] || exit 10
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this be 8 forever?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe. It could increase in the future, but I figure incrementing an integer in a test when we add a new solib dependency is a small price to pay for not occasionally breaking in prod after working in CI. More detailed reasoning here, I did a similar thing for ambiata-cli (test is slightly pickier as we're actually distributing that executable).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it could change, it's worth adding a comment explaining the test and possibly enumerating the expected dependencies.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough, done.

@thumphries
Copy link
Contributor

Good idea 👍

This has caused problems a few times and is a cheap test to add.
@olorin
Copy link
Contributor Author

olorin commented Jan 9, 2017

This looks to be more trouble than it's worth.

@olorin olorin closed this Jan 9, 2017
@olorin olorin deleted the topic/foo branch January 9, 2017 03:17
@olorin olorin restored the topic/foo branch October 3, 2017 23:42
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.

2 participants