From 363c4028f82141bf25f774d4e09b5bc9e52e56e1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 30 Jan 2017 00:42:35 +0300 Subject: Add check custom linked libs script for ci. --- tools/ci/scripts/checkldd.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 tools/ci/scripts/checkldd.sh diff --git a/tools/ci/scripts/checkldd.sh b/tools/ci/scripts/checkldd.sh new file mode 100755 index 000000000..e728fd85d --- /dev/null +++ b/tools/ci/scripts/checkldd.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +echo "Custom libs linked" +grep "spm" "$(ldd $1)" + +search="$2" +if [[ "${search}" == "" ]]; then + search="${LIBNAME}_${LIBVERSION}" +fi +res=$(ldd $1|grep "spm"|grep "$search") + +if [[ "${res}" == "" ]]; then + echo "Cant find requested lib: $search" + exit 1 +fi +exit 0 -- cgit v1.2.3-70-g09d2