-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
#------------------------------------- | ||
|
||
nso="$(objdump -p $TSRP | grep -E '^\s+NEEDED' | wc -l)" | ||
[ "$nso" = "8" ] || exit 10 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough, done.
Good idea 👍 |
This has caused problems a few times and is a cheap test to add.
This looks to be more trouble than it's worth. |
This has caused problems a few times and is a cheap test to add.
Fixes #88.
! @thumphries