File: printer-driver-cups-pdf

package info (click to toggle)
cups-pdf 3.0.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 328 kB
  • sloc: ansic: 1,031; sh: 148; makefile: 12; python: 7
file content (14 lines) | stat: -rwxr-xr-x 617 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
set -e -u
export LC_ALL=C
#######
echo "1) Perform a basic smoke test on both PPDs."
/usr/share/cups/test-drivers -l 'lsb/usr/cups-pdf/CUPS-PDF_noopt.ppd lsb/usr/cups-pdf/CUPS-PDF_opt.ppd' 2>/dev/null
#######
echo "2) Print a file via ANONYMOUS and check if the directory contains a PDF."
rm -f /var/spool/cups-pdf/ANONYMOUS/* 2>/dev/null
cat /usr/share/bug/printer-driver-cups-pdf/presubj | lp -d PDF -U anonymous
sleep 5
[ "$(ls -A /var/spool/cups-pdf/ANONYMOUS/)" ] && echo "Not Empty:\n$(ls -Ahl /var/spool/cups-pdf/ANONYMOUS/)" || echo "EMPTY"
rm -f /var/spool/cups-pdf/ANONYMOUS/* 2>/dev/null
##EOF##