[Lsb-messages] /var/www/bzr/lsb/devel/printing-test r94: wildcard doesn't work with multi-arch check, massage uname -m to debian conventions and check
Stew Benedict
stewb at linux-foundation.org
Wed Aug 8 13:38:39 UTC 2012
------------------------------------------------------------
revno: 94
committer: Stew Benedict <stewb at linux-foundation.org>
branch nick: printing-test
timestamp: Wed 2012-08-08 09:38:39 -0400
message:
wildcard doesn't work with multi-arch check, massage uname -m to debian conventions and check
modified:
sources/printing-test/run_tests
-------------- next part --------------
=== modified file 'sources/printing-test/run_tests'
--- a/sources/printing-test/run_tests 2012-08-08 13:20:30 +0000
+++ b/sources/printing-test/run_tests 2012-08-08 13:38:39 +0000
@@ -8,10 +8,11 @@
export LC_MESSAGES=C
export PATH=$PATH:/opt/lsb-tet3-lite/bin:/opt/lsb/test/printing/BIN
CUPSD_CONFIG=$TET_ROOT/cups/etc/cups/cupsd.conf
+ARCH=`uname -m | sed 's|i[3-8]86|i386|;s|ppc$|powerpc|'`
check_requires() {
for lib in libcups.so.2 libcupsimage.so.2;do
- if [ ! -f "/usr/lib/$lib" -a ! -f "/usr/lib64/$lib" -a ! -f "/usr/lib/*-linux-gnu/$lib" ];then
+ if [ ! -f "/usr/lib/$lib" -a ! -f "/usr/lib64/$lib" -a ! -f "/usr/lib/$ARCH-linux-gnu/$lib" ];then
echo "$lib not found"
echo "you should install the package that provides $lib and then re-run the tests"
sleep $SLEEP_TIME
More information about the lsb-messages
mailing list