]> git.ipfire.org Git - thirdparty/cups.git/blame - everywhere/document-tests.sh
Add a (non-shipping) man page for ippserver.
[thirdparty/cups.git] / everywhere / document-tests.sh
CommitLineData
404dde30
MS
1#!/bin/sh
2#
3# "$Id$"
4#
5# IPP Everywhere Printer Self-Certification Manual 1.0: Section 7: Document Data Tests.
6#
7# Copyright 2014 by The Printer Working Group.
8#
9# This program may be copied and furnished to others, and derivative works
10# that comment on, or otherwise explain it or assist in its implementation may
11# be prepared, copied, published and distributed, in whole or in part, without
12# restriction of any kind, provided that the above copyright notice and this
13# paragraph are included on all such copies and derivative works.
14#
15# The IEEE-ISTO and the Printer Working Group DISCLAIM ANY AND ALL WARRANTIES,
16# WHETHER EXPRESS OR IMPLIED INCLUDING (WITHOUT LIMITATION) ANY IMPLIED
17# WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
18#
19# Usage:
20#
83ce8172 21# ./document-tests.sh "Printer Name"
404dde30
MS
22#
23
8288bfd0
MS
24if test -x ../test/ippfind-static; then
25 IPPFIND="../test/ippfind-static"
26elif test -x ./ippfind; then
27 IPPFIND="./ippfind"
28else
29 IPPFIND="ippfind"
30fi
31
32if test -x ../test/ipptool-static; then
33 IPPTOOL="../test/ipptool-static"
34elif test -x ./ipptool; then
35 IPPTOOL="./ipptool"
36else
37 IPPTOOL="ipptool"
38fi
39
83ce8172
MS
40for file in color.jpg document-a4.pdf document-letter.pdf; do
41 if test ! -f $file -a -f ../test/$file; then
42 ln -s ../test/$file .
43 fi
44done
45
46if test "`ls -d pwg-raster-samples-*dpi-20111130 2>/dev/null`" = ""; then
47 echo "You must first download and extract the PWG Raster Format sample files from:"
48 echo ""
49 echo " http://ftp.pwg.org/pub/pwg/ipp/examples/"
50 echo ""
51 echo "Before you can run this script."
52 exit 1
53fi
54
55$IPPFIND "$1._ipp._tcp.local." -x $IPPTOOL -P "$1 Document Results.plist" -I '{}' document-tests.test \;
404dde30
MS
56
57#
58# End of "$Id$".
59#