Re: [tap] Wakey wakey

Ovid <publiustemp-tapx@yahoo.com> Tue, 02 March 2010 16:43 UTC

Return-Path: <publiustemp-tapx@yahoo.com>
X-Original-To: tap@core3.amsl.com
Delivered-To: tap@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E010C3A8B4B for <tap@core3.amsl.com>; Tue, 2 Mar 2010 08:43:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kFBCzgx3gz1Z for <tap@core3.amsl.com>; Tue, 2 Mar 2010 08:43:42 -0800 (PST)
Received: from n2c.bullet.mail.ac4.yahoo.com (n2c.bullet.mail.ac4.yahoo.com [76.13.13.79]) by core3.amsl.com (Postfix) with SMTP id D3B443A8BD5 for <tap@ietf.org>; Tue, 2 Mar 2010 08:43:41 -0800 (PST)
Received: from [76.13.13.26] by n2.bullet.mail.ac4.yahoo.com with NNFMP; 02 Mar 2010 16:43:40 -0000
Received: from [76.13.10.181] by t3.bullet.mail.ac4.yahoo.com with NNFMP; 02 Mar 2010 16:43:38 -0000
Received: from [127.0.0.1] by omp122.mail.ac4.yahoo.com with NNFMP; 02 Mar 2010 16:43:29 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 632790.68191.bm@omp122.mail.ac4.yahoo.com
Received: (qmail 92304 invoked by uid 60001); 2 Mar 2010 16:43:29 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1267548209; bh=elqPurwfTJ8hHRN5ytuWfMJ+HcqTvfGVtrGJqH1zlBI=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=BVOaxW6zAmG6ZG0IQ/7BZzlxKSfK6kHdXsJA+b1GUAFlU2qNmAVOZwDJyX9+OYra86KCASZXh90wkxZWTFRu1LSVKd9RyNainiqO0QYZnQW+TOUk7MRxvc8YJNmYWptbaAjzr4OHLUS6tTQ6uYIaOJKh37bRDLpB/HaoP37oyRw=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=NjGEuNMm2asSdpziOIvY2J7nrVID1yVgH1fXlfZK9n3fgx14gf78KxtjerNw4YdeLwHJfKJ6ach8r1TXoxzK2/dZ9KwObL+5uoR/8eifY0LUCbKb3xiJ/T6KM1ydbaxWlsdUl0mw2Kc7Ltp12xhWmw6toSFn9puSjbmE9cWXoBA=;
Message-ID: <451277.90610.qm@web65712.mail.ac4.yahoo.com>
X-YMail-OSG: 9H6m.7YVM1msqlx4x_wcoTgPWlg_4Lk7oqsPQveR7TRMeskKMGZAniPGaeOyF6nNyKQqn6_yzpJLKB.Xvbbx4HlS2TXJKwanURFlZeHxYlA9F3t_OKMWgFC9JPbQeRSuJq.wahMCf064pPRvFwxubQ6wRqj9T_5WOoKWAJI2fiNWI4PkKS0N5.nI3lQ66DqDpDtOF3_qAYEMr8iKTEYAdNTT_ik.QPWKXpBJ_8Zk1nE.b9NFd.mTTHlmSjubugEW4qd6NKv0KKnVMsLsuRgjHJ79Pcc_zELefzuOif9CmAKxYAGHHJKFNNo8P.ecqVlkr64zDi3o0MwE1ZuFMSbS21JX.0y0
Received: from [10.161.48.239] by web65712.mail.ac4.yahoo.com via HTTP; Tue, 02 Mar 2010 08:43:29 PST
X-Mailer: YahooMailClassic/9.2.12 YahooMailWebService/0.8.100.260964
Date: Tue, 02 Mar 2010 08:43:29 -0800
From: Ovid <publiustemp-tapx@yahoo.com>
To: Gaurav Vaidya <gaurav@ggvaidya.com>, Salve J Nilsen <sjn@pvv.org>
In-Reply-To: <alpine.DEB.1.00.1003021632570.2167@decibel.pvv.ntnu.no>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Cc: TAP <tap@ietf.org>
Subject: Re: [tap] Wakey wakey
X-BeenThere: tap@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: publiustemp-tapx@yahoo.com
List-Id: Test Anything Protocol WG discussions <tap.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tap>, <mailto:tap-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tap>
List-Post: <mailto:tap@ietf.org>
List-Help: <mailto:tap-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tap>, <mailto:tap-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Mar 2010 16:43:43 -0000

--- On Tue, 2/3/10, Salve J Nilsen <sjn@pvv.org> wrote:

> From: Salve J Nilsen <sjn@pvv.org>

>   http://github.com/gaurav/test-anything-protocol/blob/master/draft-vaidya-test-anything-protocol-00.xml

First off, I think this is great work.  However, there are a few things I would like to point out.

1.  I assume the fact that it doesn't mention nested TAP is considered a feature?  Some of the descriptions are incorrect for nested TAP (e.g., only one plan -- unless it's made clear the plan is left-justified for its scope).

2.  Speaking of left-justified, I admit to not being overly familiar with ABNF and could be wrong, but it doesn't make it clear that the lines must left-justified.  This has significant implications for nested TAP.

3.  Plan TODO:

  Plan-Todo = Plan-Simple "todo" 1*(SP Test-Number) ";"

Wasn't that obsoleted?  No one uses it (that I'm aware of) and it turns out to be very fragile (though, annoyingly, it appears that TAP::Parser still supports this).

4.  There appears to be some inconsistency in skip and todo casing.  Specifically, they're case insensitive.  # TodO is annoying, but acceptable.

5.  Whitespace:

  Test-Result = Status [SP Test-Number] [SP Description]
                  [SP "#" SP Directive [SP Reason]] EOL

According to the ABNF spec (http://tools.ietf.org/html/rfc5234#appendix-B.1), SP is %x20 -- a single space.  Multiple spaces (sometimes no spaces) are allowed in various spots. I would suggest reading TAP::Parser::Grammar code. It indicates this and shows many examples of real-world fixes put in there.

http://cpansearch.perl.org/src/ANDYA/TAP-Parser-0.54/lib/TAP/Parser/Grammar.pm

The following is legal TAP, but doesn't match the spec:

  1..3
  ok 1
  not ok 2 #ToDo asdf
  ok 3 #    skIp

Cheers,
Ovid
--
Buy the book         - http://www.oreilly.com/catalog/perlhks/
Tech blog            - http://use.perl.org/~Ovid/journal/
Twitter              - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6