Do a dependency check on each binary produced

This commit is contained in:
Dan Hawkins 2019-02-28 07:55:15 +00:00
commit 49f1b99e47

View file

@ -37,8 +37,9 @@ def doCheck(checkpathlist, build_variant = "") {
if (build_variant) {
def srcFile = "${WORKSPACE}/${checkpath}"
def srcFileExpanded = srcFile.replace("-BUILDVARIANT-", "${build_variant}")
// Print out dependencies of the built file
echo "Showing dependencies of ${srcFileExpanded}"
result = sh( script: """
// Print out dependencies of the built file
readelf -d "${srcFileExpanded}" | grep NEEDED
if [ \$? -ne 0 ]; then exit 1; fi
""",