Re: [IPP] [IPP Everywhere Self-Certification] IPP Everywhere v1.1 Printer Self-Certification Tools: Second release candidate posted
Michael Sweet via ipp <ipp@pwg.org> Thu, 28 May 2020 21:33 UTC
Return-Path: <ipp-bounces@pwg.org>
X-Original-To: ietfarch-ipp-archive@ietfa.amsl.com
Delivered-To: ietfarch-ipp-archive@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8EE5F3A0F04 for <ietfarch-ipp-archive@ietfa.amsl.com>; Thu, 28 May 2020 14:33:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.899
X-Spam-Level:
X-Spam-Status: No, score=-2.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id z76U5NPZxFYo for <ietfarch-ipp-archive@ietfa.amsl.com>; Thu, 28 May 2020 14:33:39 -0700 (PDT)
Received: from mail.pwg.org (mail.pwg.org [50.116.7.199]) by ietfa.amsl.com (Postfix) with ESMTP id 65E333A0F03 for <ipp-archive2@ietf.org>; Thu, 28 May 2020 14:33:39 -0700 (PDT)
Received: by mail.pwg.org (Postfix, from userid 1002) id 32424C5FF; Thu, 28 May 2020 21:33:39 +0000 (UTC)
Received: from mail.pwg.org (localhost [IPv6:::1]) by mail.pwg.org (Postfix) with ESMTP id 98C2926DC; Thu, 28 May 2020 21:33:35 +0000 (UTC)
X-Original-To: ipp@pwg.org
Delivered-To: ipp@pwg.org
Received: by mail.pwg.org (Postfix, from userid 1002) id F246726DC; Thu, 28 May 2020 21:33:34 +0000 (UTC)
Received: from mail.msweet.org (mail.msweet.org [173.255.209.91]) by mail.pwg.org (Postfix) with ESMTP id 2313026DC; Thu, 28 May 2020 21:33:34 +0000 (UTC)
Received: from imacpro.lan (host-148-170-144-200.public.eastlink.ca [148.170.144.200]) by mail.msweet.org (Postfix) with ESMTPSA id 820C380B3E; Thu, 28 May 2020 21:33:33 +0000 (UTC)
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\))
In-Reply-To: <7D78F566-3954-4745-93B4-94D55F405226@xerox.com>
Date: Thu, 28 May 2020 17:33:33 -0400
Message-Id: <0F236F8D-3389-49E0-9C5A-A33479C9B059@msweet.org>
References: <A30578CB-F058-4864-ACA5-1FCA1C696A4F@msweet.org> <4CE5A331-EA52-485E-9568-ACF8E8144B0B@msweet.org> <1546D645-F67D-442F-88D7-D15508C26978@xerox.com> <79528EF6-7257-4A94-97B5-710F660C823A@msweet.org> <25707FFC-81E5-4F94-9687-B7C8FB6284AE@xerox.com> <7D78F566-3954-4745-93B4-94D55F405226@xerox.com>
To: "Rizzo, Christopher" <Christopher.Rizzo@xerox.com>
X-Mailer: Apple Mail (2.3608.80.23.2.2)
Cc: PWG IPP Workgroup <ipp@pwg.org>, ISTO-PWG IPP Everywhere Self-Certification discussion forum <ippeveselfcert@pwg.org>
Subject: Re: [IPP] [IPP Everywhere Self-Certification] IPP Everywhere v1.1 Printer Self-Certification Tools: Second release candidate posted
X-BeenThere: ipp@pwg.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: ISTO-PWG Internet Printing Protocol workgroup discussion forum <ipp.pwg.org>
List-Unsubscribe: <https://www.pwg.org/mailman/options/ipp>, <mailto:ipp-request@pwg.org?subject=unsubscribe>
List-Archive: <http://www.pwg.org/pipermail/ipp/>
List-Post: <mailto:ipp@pwg.org>
List-Help: <mailto:ipp-request@pwg.org?subject=help>
List-Subscribe: <https://www.pwg.org/mailman/listinfo/ipp>, <mailto:ipp-request@pwg.org?subject=subscribe>
From: Michael Sweet via ipp <ipp@pwg.org>
Reply-To: Michael Sweet <msweet@msweet.org>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: ipp-bounces@pwg.org
Sender: ipp <ipp-bounces@pwg.org>
Chris, The double $ is necessary because $ is used for variable substitution. $$ inserts a single $... > On May 28, 2020, at 5:06 PM, Rizzo, Christopher <Christopher.Rizzo@xerox.com> wrote: > > Ahhh... Looks like the problem may be the double $ at the end of SUPPLY_REGEX definition in ipptests.test file... > > Chris > > Christopher Rizzo > Xerox Corporation > GDG/Discovery/Advance Technology > 26600 SW Parkway Ave. > Wilsonville, OR 97070-9251 > Phone: (585) 314-6936 > Email: Christopher.Rizzo@xerox.com > > "The realization came over me with full force that a good part of the remainder of my life was going to be spent in finding errors in my own programs." > -Maurice Wilkes, Memoirs of a Computer Pioneer > > From: Christopher Rizzo <Christopher.Rizzo@xerox.com> > Date: Thursday, May 28, 2020 at 1:59 PM > To: Michael Sweet <msweet@msweet.org> > Cc: PWG Self-Certification <ippeveselfcert@pwg.org>, PWG Workgroup <ipp@pwg.org> > Subject: Re: [IPP] [IPP Everywhere Self-Certification] IPP Everywhere v1.1 Printer Self-Certification Tools: Second release candidate posted > > Trying to determine the cause of these failures without much luck. I tried to create my own printer-supply test to isolate each of the regex's, but still getting the failure: > > EXPECTED: printer-alert WITH-ALL-VALUES /^code=[A-Za-z]+(;index=[0-9]+|;severity=[A-Za-z]+|;training=[A-Za-z]+|;group=[A-Za-z]+|;groupindex=[0-9]+|;location=[0-9]+|;time=[0-9]+){0,};?$/ > GOT: printer-alert="code=tonerLow;index=2;severity=warningBinaryChangeEvent;training=trained;group=markerSupplies;groupindex=2;location=956700;time=1590695059" > GOT: printer-alert="code=subunitPowerSaver;index=3;severity=warningBinaryChangeEvent;training=noInterventionRequired;group=generalPrinter;groupindex=-1;location=155100;time=1590698660" > > EXPECTED: printer-supply WITH-ALL-VALUES /^(type=[A-Za-z]+;|maxcapacity=-{0,1}[0-9]+;|level=-{0,1}[0-9]+;|index=[0-9]+;|markerindex=[0-9]+;|class=[A-Za-z]+;|unit=[A-Za-z]+;|colorantindex=[0-9]+;|colorantrole=[A-Za-z]+;|colorantname=[-_.A-Za-z0-9]+;|coloranttonality=[0-9]+;){0,}$/ > GOT: printer-supply="type=toner;maxcapacity=5300;level=4717;class=supplyThatIsConsumed;unit=tenthsOfGrams;colorantindex=4;colorantrole=process;colorantname=black;coloranttonality=256" > GOT: printer-supply="type=toner;maxcapacity=3000;level=480;class=supplyThatIsConsumed;unit=tenthsOfGrams;colorantindex=1;colorantrole=process;colorantname=cyan;coloranttonality=256" > GOT: printer-supply="type=toner;maxcapacity=3000;level=2730;class=supplyThatIsConsumed;unit=tenthsOfGrams;colorantindex=2;colorantrole=process;colorantname=magenta;coloranttonality=256" > GOT: printer-supply="type=toner;maxcapacity=3050;level=671;class=supplyThatIsConsumed;unit=tenthsOfGrams;colorantindex=3;colorantrole=process;colorantname=yellow;coloranttonality=256" > GOT: printer-supply="type=opc;maxcapacity=100;level=74;class=supplyThatIsConsumed;unit=percent;colorantindex=4;colorantrole=process;colorantname=black;coloranttonality=256" > GOT: printer-supply="type=opc;maxcapacity=100;level=79;class=supplyThatIsConsumed;unit=percent;colorantindex=1;colorantrole=process;colorantname=cyan;coloranttonality=256" > GOT: printer-supply="type=opc;maxcapacity=100;level=79;class=supplyThatIsConsumed;unit=percent;colorantindex=2;colorantrole=process;colorantname=magenta;coloranttonality=256" > GOT: printer-supply="type=opc;maxcapacity=100;level=77;class=supplyThatIsConsumed;unit=percent;colorantindex=3;colorantrole=process;colorantname=yellow;coloranttonality=256" > GOT: printer-supply="type=fuser;maxcapacity=100;level=96;class=supplyThatIsConsumed;unit=percent" > GOT: printer-supply="type=wasteToner;maxcapacity=100;level=100;class=receptacleThatIsFilled;unit=percent" > GOT: printer-supply="type=transferUnit;maxcapacity=100;level=85;class=supplyThatIsConsumed;unit=percent" > GOT: printer-supply="type=transferUnit;maxcapacity=100;level=88;class=supplyThatIsConsumed;unit=percent" > > Trying to isolate regex's example: printer-supply.test copied from ipptests.test, removed all tests except I-10. Get-Printer-Attributes Operation (default) and used a "type" only specific regex still failed ('+' means 0 or more, '{0,}' means 0 or more of entries within parenthesis that comes before correct?): > > crizzo@ChrisMacBook15:~/OneDrive - Xerox/pwg/ipp/everywhere/sw-ippeveselfcert11-20200521[42] ./ippfind --literal-name "Xerox AltaLink C8035" -x ./ipptool -P "Xerox AltaLink C8035 IPP Results.plist" -I '{}' printer-supply.test \; > "printer-supply.test": > I-10. Get-Printer-Attributes Operation (default) [FAIL] > RECEIVED: 1785 bytes in response > status-code = successful-ok (successful-ok) > EXPECTED: printer-supply WITH-ALL-VALUES /^(type=[A-Za-z]+){0,}$/ > GOT: printer-supply="type=toner;maxcapacity=5300;level=4717;class=supplyThatIsConsumed;unit=tenthsOfGrams;colorantindex=4;colorantrole=process;colorantname=black;coloranttonality=256" > GOT: printer-supply="type=toner;maxcapacity=3000;level=480;class=supplyThatIsConsumed;unit=tenthsOfGrams;colorantindex=1;colorantrole=process;colorantname=cyan;coloranttonality=256" > GOT: printer-supply="type=toner;maxcapacity=3000;level=2730;class=supplyThatIsConsumed;unit=tenthsOfGrams;colorantindex=2;colorantrole=process;colorantname=magenta;coloranttonality=256" > GOT: printer-supply="type=toner;maxcapacity=3050;level=671;class=supplyThatIsConsumed;unit=tenthsOfGrams;colorantindex=3;colorantrole=process;colorantname=yellow;coloranttonality=256" > GOT: printer-supply="type=opc;maxcapacity=100;level=74;class=supplyThatIsConsumed;unit=percent;colorantindex=4;colorantrole=process;colorantname=black;coloranttonality=256" > GOT: printer-supply="type=opc;maxcapacity=100;level=79;class=supplyThatIsConsumed;unit=percent;colorantindex=1;colorantrole=process;colorantname=cyan;coloranttonality=256" > GOT: printer-supply="type=opc;maxcapacity=100;level=79;class=supplyThatIsConsumed;unit=percent;colorantindex=2;colorantrole=process;colorantname=magenta;coloranttonality=256" > GOT: printer-supply="type=opc;maxcapacity=100;level=77;class=supplyThatIsConsumed;unit=percent;colorantindex=3;colorantrole=process;colorantname=yellow;coloranttonality=256" > GOT: printer-supply="type=fuser;maxcapacity=100;level=96;class=supplyThatIsConsumed;unit=percent" > GOT: printer-supply="type=wasteToner;maxcapacity=100;level=100;class=receptacleThatIsFilled;unit=percent" > GOT: printer-supply="type=transferUnit;maxcapacity=100;level=85;class=supplyThatIsConsumed;unit=percent" > GOT: printer-supply="type=transferUnit;maxcapacity=100;level=88;class=supplyThatIsConsumed;unit=percent" > > > Chris > > Christopher Rizzo > Xerox Corporation > GDG/Discovery/Advance Technology > 26600 SW Parkway Ave. > Wilsonville, OR 97070-9251 > Phone: (585) 314-6936 > Email: Christopher.Rizzo@xerox.com > > "The realization came over me with full force that a good part of the remainder of my life was going to be spent in finding errors in my own programs." > -Maurice Wilkes, Memoirs of a Computer Pioneer > > From: Michael Sweet <msweet@msweet.org> > Date: Tuesday, May 26, 2020 at 7:57 AM > To: Christopher Rizzo <Christopher.Rizzo@xerox.com> > Cc: PWG Self-Certification <ippeveselfcert@pwg.org>, PWG Workgroup <ipp@pwg.org> > Subject: Re: [IPP] [IPP Everywhere Self-Certification] IPP Everywhere v1.1 Printer Self-Certification Tools: Second release candidate posted > > Chris, > > Right now you just run ipptool with the ipp-tests.test file directly, e.g.: > > ipptool -d STRICT=1 -tI PRINTER-URI ipp-tests.test > > for the interactive output and: > > ipptool -d STRICT=1 -P FILENAME.plist -I PRINTER-URI ipp-tests.test > > to also create the plist file. > > I can look into ways of supporting this with a command-line option, but doing it in Windows .BAT files would be a challenge due to their limited capabilities... > > >> On May 26, 2020, at 10:46 AM, Rizzo, Christopher <Christopher.Rizzo@xerox.com> wrote: >> >> Mike, >> >> What is the argument provided to ipp-tests.sh to control whether strict mode or not is being used? I have a feeling it is a bash trick being used, but not being a guru with bash, I cannot tell. Somehow there has to be a way to pass -d STRICT=1 to ipptool inside of ipp-tests.sh, correct? >> >> Thanks, >> Chris >> >> Christopher Rizzo >> Xerox Corporation >> GDG/Discovery/Advance Technology >> 26600 SW Parkway Ave. >> Wilsonville, OR 97070-9251 >> Phone: (585) 314-6936 >> Email: Christopher.Rizzo@xerox.com >> >> "The realization came over me with full force that a good part of the remainder of my life was going to be spent in finding errors in my own programs." >> -Maurice Wilkes, Memoirs of a Computer Pioneer >> >> From: ipp <ipp-bounces@pwg.org> on behalf of PWG Workgroup <ipp@pwg.org> >> Reply-To: Michael Sweet <msweet@msweet.org> >> Date: Monday, May 25, 2020 at 7:12 PM >> To: Michael Sweet <msweet@msweet.org>, PWG Self-Certification <ippeveselfcert@pwg.org> >> Cc: PWG Workgroup <ipp@pwg.org> >> Subject: Re: [IPP] [IPP Everywhere Self-Certification] IPP Everywhere v1.1 Printer Self-Certification Tools: Second release candidate posted >> >> All, >> >> Sorry for the broken links. I also posted another update for the Windows MSI installer package on Friday and now have confirmation that the Windows tools now install and run correctly. Here are the corrected links: >> >> https://ftp.pwg.org/pub/pwg/ipp/wd/sw-ippeveselfcert11-20200521-macos.zip >> https://ftp.pwg.org/pub/pwg/ipp/wd/sw-ippeveselfcert11-20200521-rhel.tar.gz >> https://ftp.pwg.org/pub/pwg/ipp/wd/sw-ippeveselfcert11-20200521-ubuntu.tar.gz >> https://ftp.pwg.org/pub/pwg/ipp/wd/sw-ippeveselfcert11-20200522-windows.msi >> >> >>> On May 21, 2020, at 5:33 PM, Michael Sweet via ippeveselfcert <ippeveselfcert@pwg.org> wrote: >>> >>> All, >>> >>> I have posted a second release candidate of the IPP Everywhere v1.1 Printer Self-Certifications Tools to: >>> >>> https://ftp.pwg.org/pub/pwg/ipp/wd/sw-ippeveselfcert11-macos.zip >>> https://ftp.pwg.org/pub/pwg/ipp/wd/sw-ippeveselfcert11-rhel.tar.gz >>> https://ftp.pwg.org/pub/pwg/ipp/wd/sw-ippeveselfcert11-ubuntu.tar.gz >>> https://ftp.pwg.org/pub/pwg/ipp/wd/sw-ippeveselfcert11-windows.msi >>> >>> These release candidates fix the following issues: >>> >>> - Issue #47: Test for finishings support should define HAVE_FINISHINGS if "finishings-supported" has value other than 3 (none) >>> - Issue #48: HAVE_IDENTIFY_PRINTER isn't defined prior to test I-9 that uses it >>> - Issue #50: Relax Get-Printer-Attributes tests >>> - Issue #51: Add "strict" mode for Get-Printer-Attributes tests >>> >>> Please test these tools prior to the next IPP workgroup meeting on June 4, 2020 at 3pm ET so that we can approve both the tools and the new specifications. >>> >>> Thank you! >>> >>> ________________________ >>> Michael Sweet >>> >>> >>> >>> _______________________________________________ >>> ippeveselfcert mailing list >>> ippeveselfcert@pwg.org >>> https://www.pwg.org/mailman/listinfo/ippeveselfcert >>> >> >> ________________________ >> Michael Sweet >> >> >> >> _______________________________________________ >> ipp mailing list >> ipp@pwg.org >> https://www.pwg.org/mailman/listinfo/ipp > > ________________________ > Michael Sweet ________________________ Michael Sweet _______________________________________________ ipp mailing list ipp@pwg.org https://www.pwg.org/mailman/listinfo/ipp
- [IPP] IPP Everywhere v1.1 Printer Self-Certificat… Michael Sweet via ipp
- Re: [IPP] [IPP Everywhere Self-Certification] IPP… Michael Sweet via ipp
- Re: [IPP] [IPP Everywhere Self-Certification] IPP… Rizzo, Christopher via ipp
- Re: [IPP] [IPP Everywhere Self-Certification] IPP… Michael Sweet via ipp
- Re: [IPP] [IPP Everywhere Self-Certification] IPP… Rizzo, Christopher via ipp
- Re: [IPP] [IPP Everywhere Self-Certification] IPP… Rizzo, Christopher via ipp
- Re: [IPP] [IPP Everywhere Self-Certification] IPP… Michael Sweet via ipp
- Re: [IPP] [IPP Everywhere Self-Certification] IPP… Michael Sweet via ipp
- Re: [IPP] [IPP Everywhere Self-Certification] IPP… Rizzo, Christopher via ipp