[node-patches] Change in ovirt-node[master]: test: Add testcase to check binary dependencies
fabiand at fedoraproject.org
fabiand at fedoraproject.org
Tue Jul 16 14:37:29 UTC 2013
Fabian Deutsch has uploaded a new change for review.
Change subject: test: Add testcase to check binary dependencies
......................................................................
test: Add testcase to check binary dependencies
The new testcase checks some binaries for missing library dependencies.
Change-Id: I150c759c1e4f63f9f120b3f4d9403f9dcd8560b5
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M tests/igor/sets/extended.set
A tests/igor/tcs/check_bin_lib_dependencies.sh
2 files changed, 39 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/48/16948/1
diff --git a/tests/igor/sets/extended.set b/tests/igor/sets/extended.set
index d346e49..ab46dd6 100644
--- a/tests/igor/sets/extended.set
+++ b/tests/igor/sets/extended.set
@@ -11,3 +11,6 @@
filename: 'verify_network_setup.sh'
---
+filename: 'check_bin_lib_dependencies.sh'
+
+---
diff --git a/tests/igor/tcs/check_bin_lib_dependencies.sh b/tests/igor/tcs/check_bin_lib_dependencies.sh
new file mode 100644
index 0000000..8528193
--- /dev/null
+++ b/tests/igor/tcs/check_bin_lib_dependencies.sh
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+#
+# Check that all library requirements of
+# well known binaries are met
+#
+igor_highlight() { echo "= $@ ="; }
+igor_debug() { echo "[DEBUG] $@"; }
+COMMONLIB=${IGOR_LIBDIR}/common/common.sh
+[[ -e $COMMONLIB ]] && . $COMMONLIB
+
+FAILED=false
+
+BINARIES="/usr/bin/qemu-system-*"
+
+igor_highlight "Checking the following binaries for missing libraries: $BINARIES" "="
+echo ""
+
+for BINARY in $BINARIES;
+do
+ igor_highlight "Checking $BINARY"
+
+ if ldd $BINARY | grep -q "not found";
+ then
+ igor_debug "Missing dependencies found:"
+ ldd $BINARY
+ FAILED=true
+ fi
+done
+
+if $FAILED;
+then
+ exit 1
+fi
+
+exit 0
--
To view, visit http://gerrit.ovirt.org/16948
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I150c759c1e4f63f9f120b3f4d9403f9dcd8560b5
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>
More information about the node-patches
mailing list