]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - test/run-stp-tests.sh
Load cups into easysw/current.
[thirdparty/cups.git] / test / run-stp-tests.sh
index fe169ecda2376ce220370fb66ebdf019ce15e9ab..f0190663181c2f8ce24407228f9b01c4eaced309 100755 (executable)
@@ -1,27 +1,18 @@
 #!/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=$#
@@ -120,8 +111,8 @@ echo "certificate for testing; these tests currently require the OpenSSL"
 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"
 
@@ -134,25 +125,14 @@ fi
 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
@@ -278,6 +258,23 @@ if test $ssltype != 0; then
        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...
 #
@@ -309,7 +306,7 @@ MaxLogSize 0
 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>
@@ -415,6 +412,13 @@ CUPS_DATADIR=/tmp/cups-$user/share; export CUPS_DATADIR
 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...
 #
@@ -465,7 +469,7 @@ done
 # 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
@@ -595,5 +599,5 @@ echo "A HTML report was created in test/$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 $"
 #