- Fixed output-bin and print-quality handling issues (Issue #18)
- Fixed PPD options getting mapped to odd IPP values like "tray---4" (Issue #23)
- Fixed remote access to the cupsd.conf and log files (Issue #24)
+- Fixed the automated test suite when running in certain build/CI environments
+ (Issue #25)
- Fixed a logging regression caused by a previous change for Apple issue #5604
(Issue #25)
- Fixed fax phone number handling with GNOME (Issue #40)
puts("PASS");
}
-#ifndef __linux
+#if !defined(__linux__) && !defined(__GLIBC__)
fputs("cupsCharsetToUTF8(CUPS_EUC_JP): ", stdout);
strlcpy(legsrc, legdest, sizeof(legsrc));
}
else
puts("PASS");
-#endif /* !__linux */
+#endif /* !__linux && !__GLIBC__ */
/*
* Test UTF-8 to/from legacy charset (Windows 950)...
* Test localization...
*/
+ /* Force US English base locale */
+ putenv("LANG=en");
+ putenv("LC_ALL=en");
+ putenv("LC_CTYPE=en");
+ putenv("LC_MESSAGES=en");
+
fputs("ppdLocalizeIPPReason(text): ", stdout);
if (ppdLocalizeIPPReason(ppd, "foo", NULL, buffer, sizeof(buffer)) &&
!strcmp(buffer, "Foo Reason"))
printf("FAIL (\"%s\" instead of \"/help/foo/bar.html\")\n", buffer);
}
+ /* Force French */
putenv("LANG=fr");
putenv("LC_ALL=fr");
putenv("LC_CTYPE=fr");
printf("FAIL (\"%s\" instead of \"La Long Foo Reason\")\n", buffer);
}
+ /* Force Simplified Chinese */
putenv("LANG=zh_TW");
putenv("LC_ALL=zh_TW");
putenv("LC_CTYPE=zh_TW");
* cupsMarkerName localization...
*/
+ /* Force US English base locale */
putenv("LANG=en");
putenv("LC_ALL=en");
putenv("LC_CTYPE=en");
text ? text : "(null)");
}
+ /* Force French locale */
putenv("LANG=fr");
putenv("LC_ALL=fr");
putenv("LC_CTYPE=fr");
text ? text : "(null)");
}
+ /* Force Simplified Chinese locale */
putenv("LANG=zh_TW");
putenv("LC_ALL=zh_TW");
putenv("LC_CTYPE=zh_TW");
ppdClose(ppd);
+ /* Force US English base locale */
+ putenv("LANG=en");
+ putenv("LC_ALL=en");
+ putenv("LC_CTYPE=en");
+ putenv("LC_MESSAGES=en");
+
/*
* Test new constraints...
*/
echo "Enabling debug printfs (level $usedebugprintfs); log files can be found in $BASE/log..."
CUPS_DEBUG_LOG="$BASE/log/debug_printfs.%d"; export CUPS_DEBUG_LOG
CUPS_DEBUG_LEVEL="$usedebugprintfs"; export CUPS_DEBUG_LEVEL
- CUPS_DEBUG_FILTER='^(http|_http|ipp|_ipp|cups.*Request|cupsGetResponse|cupsSend|mime).*$'; export CUPS_DEBUG_FILTER
+ CUPS_DEBUG_FILTER='^(http|_http|ipp|_ipp|cups.*Request|cupsGetResponse|cupsSend).*$'; export CUPS_DEBUG_FILTER
;;
*)
}
ln -s $root/test/test.convs $BASE/share/mime
-ln -s $root/test/test.types $BASE/share/mime
if test `uname` = Darwin; then
instfilter cgimagetopdf imagetopdf pdf
instfilter cgpdftopdf pdftopdf passthru
instfilter cgpdftops pdftops ps
instfilter cgpdftoraster pdftoraster raster
- instfilter cgpdftoraster pdftourf raster
instfilter cgtexttopdf texttopdf pdf
instfilter pstocupsraster pstoraster raster
else
instfilter pdftopdf pdftopdf passthru
instfilter pdftops pdftops ps
instfilter pdftoraster pdftoraster raster
- instfilter pdftoraster pdftourf raster
instfilter pstoraster pstoraster raster
instfilter texttopdf texttopdf pdf
echo " <pre>" >>$strfile
for file in 5*.sh; do
+ # Wait for jobs from the previous test to complete before running the
+ # next test...
+ if test $file != 5.1-lpadmin.sh; then
+ ./waitjobs.sh 1800
+ fi
+
+ # Run the test...
echo $ac_n "Performing $file: $ac_c"
echo "" >>$strfile
echo "`date '+[%d/%b/%Y:%H:%M:%S %z]'` \"$file\":" >>$strfile
fi
# Warning log messages
-count=`$GREP '^W ' $BASE/log/error_log | $GREP -v CreateProfile | wc -l | awk '{print $1}'`
+count=`$GREP '^W ' $BASE/log/error_log | $GREP -v CreateProfile | $GREP -v 'libusb error' | $GREP -v ColorManager | $GREP -v 'Avahi client failed' | wc -l | awk '{print $1}'`
if test $count != 8; then
echo "FAIL: $count warning messages, expected 8."
$GREP '^W ' $BASE/log/error_log
application/pdf application/vnd.cups-pdf 100 pdftopdf
application/pdf application/postscript 100 pdftops
application/pdf application/vnd.cups-raster 100 pdftoraster
-application/pdf image/urf 100 pdftourf
application/postscript application/vnd.cups-raster 100 pstoraster
image/jpeg application/pdf 100 imagetopdf
text/plain application/pdf 100 texttopdf