Skip to content

Commit

Permalink
Add test for number of shared object dependencies
Browse files Browse the repository at this point in the history
This has caused problems a few times and is a cheap test to add.
  • Loading branch information
olorin committed Dec 28, 2016
1 parent 34746ad commit df3e1ac
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions zodiac-cli/test/cli/linking/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh -eu

. $(dirname $0)/../core/setup.sh

banner TSRP shared object dependencies
#-------------------------------------

# What we're expecting here:
#
# - libc
# - libdl
# - libgmp
# - libm
# - libpthread
# - librt
# - libutil
#
# If this breaks, work out whether we're linking against something we
# shouldn't be (e.g., something that's on CI but might not be on other
# boxes); if not, the test can be updated.
nso="$(objdump -p $TSRP | grep -E '^\s+NEEDED' | wc -l)"
[ "$nso" = "7" ] || exit 10

0 comments on commit df3e1ac

Please sign in to comment.