1. cancel -a semantics changed, add a purge test.
2. cancel -a -x did not work; fixed.
3. IPP/1.1 tests referenced color.jpeg but the file is color.jpg.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10857
7a7537e8-13f0-0310-91df-
b6672ffda945
for (i = 1; i < argc; i ++)
if (argv[i][0] == '-' && argv[i][1])
+ {
switch (argv[i][1])
{
case 'E' : /* Encrypt */
break;
case 'a' : /* Cancel all jobs */
- op = IPP_CANCEL_JOBS;
+ op = purge ? IPP_PURGE_JOBS : IPP_CANCEL_JOBS;
break;
case 'h' : /* Connect to host */
case 'x' : /* Purge job(s) */
purge = 1;
+
+ if (op == IPP_CANCEL_JOBS)
+ op = IPP_PURGE_JOBS;
break;
default :
argv[0], argv[i][1]);
return (1);
}
+ }
else
{
/*
#
# Test the cancel command.
#
-# Copyright 2007-2011 by Apple Inc.
+# Copyright 2007-2013 by Apple Inc.
# Copyright 1997-2006 by Easy Software Products, all rights reserved.
#
# These coded instructions, statements, and computer programs are the
fi
echo ""
+echo "Purge All Test"
+echo ""
+echo " cancel -a -x"
+$VALGRIND ../systemv/cancel -a -x 2>&1
+if test $? != 0; then
+ echo " FAILED"
+ exit 1
+else
+ echo " PASSED"
+fi
+echo ""
+
#
# End of "$Id$".
#
GROUP job-attributes-tag
ATTR keyword media $OPTIONAL_4X6_MEDIA
ATTR enum print-quality 3
- FILE color.jpeg
+ FILE color.jpg
STATUS successful-ok
STATUS server-error-job-canceled
GROUP job-attributes-tag
ATTR keyword media $OPTIONAL_4X6_MEDIA
ATTR enum print-quality 4
- FILE color.jpeg
+ FILE color.jpg
STATUS successful-ok
STATUS server-error-job-canceled
GROUP job-attributes-tag
ATTR keyword media $OPTIONAL_4X6_MEDIA
ATTR enum print-quality 5
- FILE color.jpeg
+ FILE color.jpg
STATUS successful-ok
STATUS server-error-job-canceled
# Perform the complete set of IPP compliance tests specified in the
# CUPS Software Test Plan.
#
-# Copyright 2007-2012 by Apple Inc.
+# Copyright 2007-2013 by Apple Inc.
# Copyright 1997-2007 by Easy Software Products, all rights reserved.
#
# These coded instructions, statements, and computer programs are the
LogLevel debug2
LogTimeFormat usecs
PreserveJobHistory Yes
+PreserveJobFiles No
<Policy default>
<Limit All>
Order Allow,Deny