~ubuntu-branches/ubuntu/utopic/cups/utopic

« back to all changes in this revision

Viewing changes to .pc/pidfile.patch/test/run-stp-tests.sh

  • Committer: Package Import Robot
  • Author(s): Didier Raboud, Till Kamppeter, Steve Langasek, Didier Raboud
  • Date: 2014-01-03 18:42:39 UTC
  • mfrom: (1.3.2)
  • mto: This revision was merged to the branch mainline in revision 142.
  • Revision ID: package-import@ubuntu.com-20140103184239-juzq32ckr7ra49b3
* New 1.7.0 upstream release

[ Till Kamppeter ]
* Refresh most patches with quilt
* Removed usb-backend-do-not-crash-if-usb-disabled-in-bios and
  cupsd-no-crash-on-avahi-threaded-poll-shutdown patches as they got
  applied upstream
* Removed drop-arch-specifics-from-doc patch as it is not needed
  anymore
* Updated drop_unnecessary_dependencies, manpage-hyphen-minus,
  manpage-translations and ppd-poll-with-client-conf patches manually
  to apply to the new CUPS version
* Added error counting exception from
  usb-backend-do-not-crash-if-usb-disabled-in-bios to
  tests-ignore-warnings
* Install the newly added ippfind utility and its manpage in
  cups-client
* Added pwg.h to libcups2-dev package
* Call dh_auto_clean only if the file Makedefs is present, to avoid a
  FTBFS
* Added color management extensions from Joe Simon's GSoC 2013
  project.
* Patch cups-files.conf to activate CUPS daemon syncing of files when
  closing, so that config files (like printers.conf) do not
  mysteriously disappear (LP: #1157972)
* In the AppArmor profile, allow execution of programs in
  /etc/cups/interfaces/, needed to make CUPS working with queues based
  on System V interface scripts, especially PPD-less queues
  auto-generated by cups-browsed from cups-filters 1.0.41 on.
* Silenced AppArmor noise from udev.conf in syslog (LP: #1229766)

[ Steve Langasek ]
* Add cups-filters (>= 1.0.42) as alternative to foomatic-filters
  (which is deprecated) in package relationships

[ Didier Raboud ]
* Remove Roger Leigh from uploaders on his request with thanks for his
  past work!
* Switch avahi LSB Should-Start dependency to be avahi-daemon; also
  bump package relationship to >= 0.6.31-3~ (Closes: #731608)
* Refresh the manpage translation files
* Move the USB backend quirk rules file to cups-server-common
* Add 38 new 1.7.0 libcups2 symbols
* Mark one C++ libcupsppdc1 symbol as optional as it isn't exported in
  1.7.0 anymore
* Import Fedora patches:
  - to avoid sign-extending CRCs in gz decompression
  - to build with full read-only relocations
  - to fix job history logging (upstream patch)
  - to set the internal default for SyncOnClose to Yes, instead of
    only configuring it to Yes
  - to fix a stringpool corruption issue
  - to prevent USB timeouts causing incorrect print output
* Import Fedora patch updates:
  - to dont-use-dbus-from-two-threads patch so it removes a call to
    avahi_threaded_poll_stop()
  - to avoid_stale_lockfile_in_dbus_notifier patch to call _exit when
    handling SIGTERM
* Move manpage-translations patch at the very end of the patch series
  to have it include all our patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#   Perform the complete set of IPP compliance tests specified in the
6
6
#   CUPS Software Test Plan.
7
7
#
8
 
#   Copyright 2007-2012 by Apple Inc.
 
8
#   Copyright 2007-2013 by Apple Inc.
9
9
#   Copyright 1997-2007 by Easy Software Products, all rights reserved.
10
10
#
11
11
#   These coded instructions, statements, and computer programs are the
100
100
                nprinters2=0
101
101
                pjobs=0
102
102
                pprinters=0
 
103
                loglevel="debug2"
103
104
                ;;
104
105
        2)
105
106
                echo "Running the medium tests (2)"
107
108
                nprinters2=20
108
109
                pjobs=20
109
110
                pprinters=10
 
111
                loglevel="debug"
110
112
                ;;
111
113
        3)
112
114
                echo "Running the extreme tests (3)"
114
116
                nprinters2=1000
115
117
                pjobs=100
116
118
                pprinters=50
 
119
                loglevel="debug"
117
120
                ;;
118
121
        4)
119
122
                echo "Running the torture tests (4)"
121
124
                nprinters2=20000
122
125
                pjobs=200
123
126
                pprinters=100
 
127
                loglevel="debug"
124
128
                ;;
125
129
        *)
126
130
                echo "Running the timid tests (1)"
128
132
                nprinters2=0
129
133
                pjobs=10
130
134
                pprinters=0
 
135
                loglevel="debug2"
131
136
                ;;
132
137
esac
133
138
 
252
257
 
253
258
case "$usedebugprintfs" in
254
259
        Y* | y*)
255
 
                echo "Enabling debug printfs; log files can be found in /tmp/cups-$user/log..."
 
260
                echo "Enabling debug printfs (level 5); log files can be found in /tmp/cups-$user/log..."
256
261
                CUPS_DEBUG_LOG="/tmp/cups-$user/log/debug_printfs.%d"; export CUPS_DEBUG_LOG
257
262
                CUPS_DEBUG_LEVEL=5; export CUPS_DEBUG_LEVEL
258
263
                CUPS_DEBUG_FILTER='^(http|_http|ipp|_ipp|cups.*Request|cupsGetResponse|cupsSend).*$'; export CUPS_DEBUG_FILTER
259
264
                ;;
260
265
 
261
266
        0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9)
262
 
                echo "Enabling debug printfs; log files can be found in /tmp/cups-$user/log..."
 
267
                echo "Enabling debug printfs (level $usedebugprintfs); log files can be found in /tmp/cups-$user/log..."
263
268
                CUPS_DEBUG_LOG="/tmp/cups-$user/log/debug_printfs.%d"; export CUPS_DEBUG_LOG
264
 
                CUPS_DEBUG_LEVEL=$usedebugprintf; export CUPS_DEBUG_LEVEL
 
269
                CUPS_DEBUG_LEVEL="$usedebugprintfs"; export CUPS_DEBUG_LEVEL
265
270
                CUPS_DEBUG_FILTER='^(http|_http|ipp|_ipp|cups.*Request|cupsGetResponse|cupsSend).*$'; export CUPS_DEBUG_FILTER
266
271
                ;;
267
272
 
391
396
StrictConformance Yes
392
397
Browsing Off
393
398
Listen localhost:$port
 
399
Listen /tmp/cups-$user/sock
394
400
PassEnv LOCALEDIR
395
401
PassEnv DYLD_INSERT_LIBRARIES
396
402
MaxSubscriptions 3
397
403
MaxLogSize 0
398
404
AccessLogLevel actions
399
 
LogLevel debug2
 
405
LogLevel $loglevel
400
406
LogTimeFormat usecs
401
407
PreserveJobHistory Yes
 
408
PreserveJobFiles No
402
409
<Policy default>
403
410
<Limit All>
404
411
Order Allow,Deny
425
432
PageLog /tmp/cups-$user/log/page_log
426
433
EOF
427
434
 
 
435
if test $ssltype != 0 -a `uname` = Darwin; then
 
436
        echo "ServerCertificate $HOME/Library/Keychains/login.keychain" >> /tmp/cups-$user/cups-files.conf
 
437
fi
 
438
 
428
439
#
429
440
# Setup lots of test queues - half with PPD files, half without...
430
441
#
570
581
        echo "LD_PRELOAD=\"$LD_PRELOAD\"; export LD_PRELOAD" >>$runcups
571
582
        echo "LOCALEDIR=\"$LOCALEDIR\"; export LOCALEDIR" >>$runcups
572
583
        echo "SHLIB_PATH=\"$SHLIB_PATH\"; export SHLIB_PATH" >>$runcups
 
584
        if test "x$CUPS_DEBUG_LEVEL" != x; then
 
585
                echo "CUPS_DEBUG_FILTER='$CUPS_DEBUG_FILTER'; export CUPS_DEBUG_FILTER" >>$runcups
 
586
                echo "CUPS_DEBUG_LEVEL=$CUPS_DEBUG_LEVEL; export CUPS_DEBUG_LEVEL" >>$runcups
 
587
                echo "CUPS_DEBUG_LOG='$CUPS_DEBUG_LOG'; export CUPS_DEBUG_LOG" >>$runcups
 
588
        fi
573
589
        echo "" >>$runcups
574
590
        echo "# Run command..." >>$runcups
575
591
        echo "exec \"\$@\"" >>$runcups
608
624
#
609
625
 
610
626
date=`date "+%Y-%m-%d"`
611
 
strfile=/tmp/cups-$user/cups-str-1.6-$date-$user.html
 
627
strfile=/tmp/cups-$user/cups-str-1.7-$date-$user.html
612
628
 
613
629
rm -f $strfile
614
630
cat str-header.html >$strfile