]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Add Validate-Job test file.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 22 Mar 2013 17:52:09 +0000 (17:52 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 22 Mar 2013 17:52:09 +0000 (17:52 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10924 7a7537e8-13f0-0310-91df-b6672ffda945

test/Makefile
test/validate-job.test [new file with mode: 0644]

index b9375d76ae1fa86c4fbd8104fa27603f61938398..56ed7a4af841140c7b346b6eb95c792b3821c653 100644 (file)
@@ -49,7 +49,8 @@ TESTFILES     =       \
                        ipp-everywhere.test \
                        print-job.test \
                        print-job-deflate.test \
-                       print-job-gzip.test
+                       print-job-gzip.test \
+                       validate-job.test
 OBJS           =       \
                        ippserver.o \
                        ipptool.o \
diff --git a/test/validate-job.test b/test/validate-job.test
new file mode 100644 (file)
index 0000000..c4140ea
--- /dev/null
@@ -0,0 +1,23 @@
+# Validate a test page using Validate-Job
+{
+       # The name of the test...
+       NAME "Validate file/ticket using Validate-Job"
+
+       # The operation to use
+       OPERATION Validate-Job
+
+       # Attributes, starting in the operation group...
+       GROUP operation-attributes-tag
+       ATTR charset attributes-charset utf-8
+       ATTR language attributes-natural-language en
+       ATTR uri printer-uri $uri
+       ATTR name requesting-user-name $user
+       ATTR mimeMediaType document-format $filetype
+
+       GROUP job-attributes-tag
+       ATTR integer copies 1
+
+       # What statuses are OK?
+       STATUS successful-ok
+       STATUS successful-ok-ignored-or-substituted-attributes
+}