From 5b76c6469e334b682e1fdf8233d09747cbf4eca5 Mon Sep 17 00:00:00 2001 From: Sharif Olorin Date: Tue, 27 Dec 2016 23:40:29 +0000 Subject: [PATCH] Add test for number of shared object dependencies This has caused problems a few times and is a cheap test to add. --- zodiac-cli/test/cli/linking/run | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 zodiac-cli/test/cli/linking/run diff --git a/zodiac-cli/test/cli/linking/run b/zodiac-cli/test/cli/linking/run new file mode 100755 index 0000000..492465f --- /dev/null +++ b/zodiac-cli/test/cli/linking/run @@ -0,0 +1,9 @@ +#!/bin/sh -eu + +. $(dirname $0)/../core/setup.sh + +banner TSRP shared object dependencies +#------------------------------------- + +nso="$(objdump -p $TSRP | grep -E '^\s+NEEDED' | wc -l)" +[ "$nso" = "8" ] || exit 10