#!/bin/sh
#
-# "$Id: run-stp-tests.sh 5493 2006-05-05 16:33:57Z mike $"
+# "$Id: run-stp-tests.sh 6649 2007-07-11 21:46:42Z mike $"
#
# Perform the complete set of IPP compliance tests specified in the
# CUPS Software Test Plan.
#
-# Copyright 1997-2006 by Easy Software Products, all rights reserved.
+# Copyright 2007 by Apple Inc.
+# Copyright 1997-2007 by Easy Software Products, all rights reserved.
#
# These coded instructions, statements, and computer programs are the
-# property of Easy Software Products and are protected by Federal
-# copyright law. Distribution and use rights are outlined in the file
-# "LICENSE.txt" which should have been included with this file. If this
-# file is missing or damaged please contact Easy Software Products
-# at:
-#
-# Attn: CUPS Licensing Information
-# Easy Software Products
-# 44141 Airport View Drive, Suite 204
-# Hollywood, Maryland 20636 USA
-#
-# Voice: (301) 373-9600
-# EMail: cups-info@cups.org
-# WWW: http://www.cups.org
+# property of Apple Inc. and are protected by Federal copyright
+# law. Distribution and use rights are outlined in the file "LICENSE.txt"
+# which should have been included with this file. If this file is
+# file is missing or damaged, see the license at "http://www.cups.org/".
#
argcount=$#
echo "tools:"
echo ""
echo "0 - Do not do SSL/TLS encryption tests"
-echo "1 - Create a SSL/TLS certificate and key, but do not require encryption"
-echo "2 - Create a SSL/TLS certificate and key and require encryption"
+echo "1 - Test but do not require encryption"
+echo "2 - Test and require encryption"
echo ""
echo $ac_n "Enter the number of the SSL/TLS tests to perform: [0] $ac_c"
echo ""
case "$ssltype" in
- 1 | 2)
- if test -f server.key; then
- echo "Using existing SSL/TLS certificate and key..."
- else
- echo "Generating SSL/TLS certificate and key..."
- openssl req -new -x509 -keyout server.key -out server.crt -days 3650 -nodes >/dev/null <<EOF
-ZZ
-Testland
-Testville
-Test Company
-
-`hostname`
-test@domain.com
-EOF
- fi
+ 1)
+ echo "Will test but not require encryption (1)"
+ ;;
+ 2)
+ echo "Will test and require encryption (2)"
;;
-
*)
- echo "Not using SSL/TLS..."
+ echo "Not using SSL/TLS (0)"
ssltype=0
;;
esac
cp server.* $root/ssl
fi
+#
+# Mac OS X filters and configuration files...
+#
+
+if test `uname` = Darwin; then
+ ln -s /usr/libexec/cups/filter/cgpdfto* /tmp/cups-$user/bin/filter
+ ln -s /usr/libexec/cups/filter/nsimagetopdf /tmp/cups-$user/bin/filter
+ ln -s /usr/libexec/cups/filter/nstexttopdf /tmp/cups-$user/bin/filter
+ ln -s /usr/libexec/cups/filter/pictwpstops /tmp/cups-$user/bin/filter
+ ln -s /usr/libexec/cups/filter/pstoappleps /tmp/cups-$user/bin/filter
+ ln -s /usr/libexec/cups/filter/pstocupsraster /tmp/cups-$user/bin/filter
+ ln -s /usr/libexec/cups/filter/pstopdffilter /tmp/cups-$user/bin/filter
+
+ ln -s /private/etc/cups/apple.* /tmp/cups-$user
+fi
+
+
#
# Then create the necessary config files...
#
AccessLog /tmp/cups-$user/log/access_log
ErrorLog /tmp/cups-$user/log/error_log
PageLog /tmp/cups-$user/log/page_log
-LogLevel debug2
+LogLevel debug
PreserveJobHistory Yes
<Policy default>
<Limit All>
HOME=/tmp/cups-$user
export HOME
+#
+# Force POSIX locale for tests...
+#
+
+LANG=C
+export LANG
+
#
# Start the server; run as foreground daemon in the background...
#
# Create the test report source file...
#
-strfile=cups-str-1.2-`date +%Y-%m-%d`-$user.html
+strfile=cups-str-1.3-`date +%Y-%m-%d`-$user.html
rm -f $strfile
cat str-header.html >$strfile
echo ""
#
-# End of "$Id: run-stp-tests.sh 5493 2006-05-05 16:33:57Z mike $"
+# End of "$Id: run-stp-tests.sh 6649 2007-07-11 21:46:42Z mike $"
#