From: msweet Date: Tue, 2 Sep 2014 13:40:27 +0000 (+0000) Subject: Update POSIX test script to no longer define variables - we just use the X-Git-Tag: v2.2b1~485 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=da720f3b9a4664098a84d377c2bb9dd67d67715b;p=thirdparty%2Fcups.git Update POSIX test script to no longer define variables - we just use the environment from ippfind... git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12144 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/everywhere/bonjour-tests.sh b/everywhere/bonjour-tests.sh index 29851c593..d0b0377ce 100755 --- a/everywhere/bonjour-tests.sh +++ b/everywhere/bonjour-tests.sh @@ -121,8 +121,8 @@ if test "$2" = _fail2 -o "$2" = _fail4 -o "$2" = _fail5.3 -o "$2" = _fail5.5; th fi if test "$2" = _fail4 -o "$2" = _fail5.5; then - $IPPTOOL -t -d "ADMINURL=$IPPFIND_TXT_ADMINURL" -d "UUID=$IPPFIND_TXT_UUID" $IPPFIND_SERVICE_URI bonjour-value-tests.test - $IPPTOOL -t -d "ADMINURL=$IPPFIND_TXT_ADMINURL" -d "UUID=$IPPFIND_TXT_UUID" $IPPFIND_SERVICE_URI bonjour-value-tests.test | egrep '(GOT|EXPECTED):' | sed -e '1,$s/^[ ]*//' | awk '{print "" $0 "" }' >>"$PLIST" + $IPPTOOL -t $IPPFIND_SERVICE_URI bonjour-value-tests.test + $IPPTOOL -t $IPPFIND_SERVICE_URI bonjour-value-tests.test | egrep '(GOT|EXPECTED):' | sed -e '1,$s/^[ ]*//' | awk '{print "" $0 "" }' >>"$PLIST" fi echo "" >>"$PLIST" @@ -206,7 +206,7 @@ fi # B-4. IPP TXT values test: The IPP TXT record values match the reported IPP attribute values. start_test "B-4. IPP TXT values test" -$IPPFIND "$1._ipp._tcp.local." --txt-adminurl '^(http:|https:)//' --txt-pdl 'image/pwg-raster' --txt-pdl 'image/jpeg' --txt-rp '^ipp/(print|print/[^/]+)$' --txt-UUID '^[0-9a-fA-F]{8,8}-[0-9a-fA-F]{4,4}-[0-9a-fA-F]{4,4}-[0-9a-fA-F]{4,4}-[0-9a-fA-F]{12,12}$' -x $IPPTOOL -q -d 'ADMINURL={txt_adminurl}' -d 'UUID={txt_uuid}' '{}' bonjour-value-tests.test \; +$IPPFIND "$1._ipp._tcp.local." --txt-adminurl '^(http:|https:)//' --txt-pdl 'image/pwg-raster' --txt-pdl 'image/jpeg' --txt-rp '^ipp/(print|print/[^/]+)$' --txt-UUID '^[0-9a-fA-F]{8,8}-[0-9a-fA-F]{4,4}-[0-9a-fA-F]{4,4}-[0-9a-fA-F]{4,4}-[0-9a-fA-F]{12,12}$' -x $IPPTOOL -q '{}' bonjour-value-tests.test \; if test $? = 0; then pass=`expr $pass + 1` end_test PASS @@ -301,7 +301,7 @@ fi # B-5.5 IPPS TXT values test: The TXT record values for IPPS match the reported IPPS attribute values. start_test "B-5.5 IPPS TXT values test" if test $HAVE_TLS = 1; then - $IPPFIND "$1._ipps._tcp.local." --txt-adminurl '^(http:|https:)//' --txt-pdl 'image/pwg-raster' --txt-pdl 'image/jpeg' --txt-rp '^ipp/(print|print/[^/]+)$' --txt-UUID '^[0-9a-fA-F]{8,8}-[0-9a-fA-F]{4,4}-[0-9a-fA-F]{4,4}-[0-9a-fA-F]{4,4}-[0-9a-fA-F]{12,12}$' -x $IPPTOOL -q -d 'ADMINURL={txt_adminurl}' -d 'UUID={txt_uuid}' '{}' bonjour-value-tests.test \; + $IPPFIND "$1._ipps._tcp.local." --txt-adminurl '^(http:|https:)//' --txt-pdl 'image/pwg-raster' --txt-pdl 'image/jpeg' --txt-rp '^ipp/(print|print/[^/]+)$' --txt-UUID '^[0-9a-fA-F]{8,8}-[0-9a-fA-F]{4,4}-[0-9a-fA-F]{4,4}-[0-9a-fA-F]{4,4}-[0-9a-fA-F]{12,12}$' -x $IPPTOOL -q '{}' bonjour-value-tests.test \; if test $? = 0; then pass=`expr $pass + 1` end_test PASS