Skip Menu |
 

This queue is for tickets about the AnyEvent CPAN distribution.

Report information
The Basics
Id: 22931
Status: resolved
Priority: 0/
Queue: AnyEvent

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.0
Fixed in: (no value)



Subject: A compile test
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1163175415-25552-6"
Content-Length: 0
Content-Type: text/plain; charset="utf8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 92
I noticed AnyEvent has no tests. Attached is a simple compile test you can drop right in.
Subject: 00compile.t
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----------=_1163175415-25552-5"
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Length: 0
Content-Type: text/plain; charset="utf8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 0
Content-Type: application/octet-stream; name="00compile.t"
Content-Disposition: inline; filename="00compile.t"
Content-Transfer-Encoding: base64
Content-Length: 321
Download 00compile.t
text/x-perl 321b
#!/usr/bin/perl -w use Test::More; use File::Find; my @modules; find sub { return unless /\.pm$/; push @modules, $File::Find::name; }, "lib"; @modules = map { s[^lib/][]; $_ =~ s[.pm$][]; $_ =~ s[/][::]g; $_ } @modules; plan tests => scalar @modules; for my $module (@modules) { require_ok $module; }
CC: undisclosed-recipients: ;
MIME-Version: 1.0
X-Spam-Status: No, hits=-0.0 required=8.0 tests=DK_POLICY_SIGNSOME,SPF_HELO_PASS,SPF_PASS
In-Reply-To: <rt-3.6.HEAD-25552-1163175418-1279.22931-4-0 [...] rt.cpan.org>
Content-Disposition: inline
Received-SPF: pass (x1.develooper.com: domain of root [...] schmorp.de designates 193.108.181.162 as permitted sender)
References: <RT-Ticket-22931 [...] rt.cpan.org> <rt-3.6.HEAD-25552-1163175418-1279.22931-4-0 [...] rt.cpan.org>
X-PGP: "1024D/DA743396 1999-01-26 Marc Alexander Lehmann <schmorp [...] schmorp.de> Key fingerprint = 475A FE9B D1D4 039E 01AC C217 A1E8 0270 DA74 3396"
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: us-ascii
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 2D5674D807D for <bug-AnyEvent [...] rt.cpan.org>; Sun, 12 Nov 2006 07:34:27 -0500 (EST)
Received: (qmail 15483 invoked by alias); 12 Nov 2006 12:34:27 -0000
Received: from rain.plan9.de (HELO rain.plan9.de) (193.108.181.162) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Sun, 12 Nov 2006 04:34:23 -0800
Received: from [10.0.0.17] (helo=ruth.plan9.de ident=mail) by rain.plan9.de with esmtp (Exim 4.50) id 1GjEX8-0006iP-PK for bug-AnyEvent [...] rt.cpan.org; Sun, 12 Nov 2006 13:33:58 +0100
Received: from [10.0.0.5] (helo=mailout.schmorp.de ident=schmorp) by ruth.plan9.de with esmtp (Exim 4.63) (envelope-from <root [...] schmorp.de>) id 1GjEXC-0003JL-Oh for bug-AnyEvent [...] rt.cpan.org; Sun, 12 Nov 2006 13:34:02 +0100
Received: from [10.0.0.1] (helo=cerebro.laendle) by mailout.schmorp.de with esmtp (Exim 4.60) (envelope-from <root [...] schmorp.de>) id 1GjEX7-0004Fm-1S for bug-AnyEvent [...] rt.cpan.org; Sun, 12 Nov 2006 13:33:57 +0100
Received: from root by cerebro.laendle with local (Exim 4.63) (envelope-from <root [...] schmorp.de>) id 1GjEX7-0005iW-0M for bug-AnyEvent [...] rt.cpan.org; Sun, 12 Nov 2006 13:33:57 +0100
Delivered-To: cpan-bug+anyevent [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #22931] A compile test
Return-Path: <root [...] schmorp.de>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: bug-AnyEvent [...] rt.cpan.org
Date: Sun, 12 Nov 2006 13:33:56 +0100
Message-Id: <20061112123356.GB21713 [...] schmorp.de>
To: Michael_G_Schwern via RT <bug-AnyEvent [...] rt.cpan.org>
From: Marc Lehmann <schmorp [...] schmorp.de>
X-RT-Original-Encoding: utf-8
RT-Message-ID: <rt-3.6.HEAD-25603-1163334883-223.22931-0-0 [...] rt.cpan.org>
Content-Length: 1168
Download (untitled) / with headers
text/plain 1.1k
On Fri, Nov 10, 2006 at 11:16:58AM -0500, Michael_G_Schwern via RT <bug-AnyEvent@rt.cpan.org> wrote: Show quoted text
> > Fri Nov 10 11:16:57 2006: Request 22931 was acted upon. > Transaction: Ticket created by MSCHWERN > Queue: AnyEvent > Subject: A compile test > Broken in: 2.0 > Severity: Normal > Owner: Nobody > Requestors: MSCHWERN@cpan.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=22931 > > > > I noticed AnyEvent has no tests. Attached is a simple compile test you > can drop right in.
Thanks a lot! However, in _this_ case, the cvs version already has a simple test - just loading all the modules will fail for no good reason on most systems, as the required modules will not be found (and are not required for AnyEvent to function). (That shouldn't keep you from enhancing any other modules by me or others who do lack a testsuite :) -- The choice of a -----==- _GNU_ ----==-- _ generation Marc Lehmann ---==---(_)__ __ ____ __ pcg@goof.com --==---/ / _ \/ // /\ \/ / http://schmorp.de/ -=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE
MIME-Version: 1.0
In-Reply-To: <rt-3.6.HEAD-25603-1163334883-223.22931-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Message-Id: <rt-3.6.HEAD-30040-1176618209-1500.22931-0-0 [...] rt.cpan.org>
References: <RT-Ticket-22931 [...] rt.cpan.org> <rt-3.6.HEAD-25552-1163175418-1279.22931-4-0 [...] rt.cpan.org> <20061112123356.GB21713 [...] schmorp.de> <rt-3.6.HEAD-25603-1163334883-223.22931-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 43
(closing because it seems to be resolved)


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.