Return-Path: Delivered-To: apmail-httpd-apreq-dev-archive@www.apache.org Received: (qmail 70108 invoked from network); 19 Jul 2004 23:39:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 19 Jul 2004 23:39:19 -0000 Received: (qmail 96379 invoked by uid 500); 19 Jul 2004 23:39:19 -0000 Delivered-To: apmail-httpd-apreq-dev-archive@httpd.apache.org Received: (qmail 96277 invoked by uid 500); 19 Jul 2004 23:39:18 -0000 Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list apreq-dev@httpd.apache.org Received: (qmail 96262 invoked by uid 99); 19 Jul 2004 23:39:18 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received: from [80.91.224.249] (HELO main.gmane.org) (80.91.224.249) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 19 Jul 2004 16:39:14 -0700 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Bmhiy-0000HH-00 for ; Tue, 20 Jul 2004 01:39:12 +0200 Received: from adsl-34-76-42.mia.bellsouth.net ([67.34.76.42]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Jul 2004 01:39:12 +0200 Received: from joe+gmane by adsl-34-76-42.mia.bellsouth.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Jul 2004 01:39:12 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: apreq-dev@httpd.apache.org To: apreq-dev@httpd.apache.org From: Joe Schaefer Subject: Re: [PROPOSAL] docs, tables, tests (was: Re: separate pod files for Apache:: packages) Date: 19 Jul 2004 19:39:08 -0400 Lines: 67 Message-ID: <87pt6r8t43.fsf@gemini.sunstarsys.com> References: <87wu15cicz.fsf@gemini.sunstarsys.com> <87smbrafn5.fsf@gemini.sunstarsys.com> <87zn5w7xws.fsf_-_@gemini.sunstarsys.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: adsl-34-76-42.mia.bellsouth.net Mail-Copies-To: never User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Randy Kobes writes: [...] > Although you later found not much advantage to separating > out the Apache::*::Table packages, it still seems to make > sense (?) to separate out the Table.pod (as well as > Error.pod), as they're similar. +1. Basically I'm toying with adding something like this to the bottom of glue/perl/Makefile.PL: ================================================== sub copy_docs { my @lines; my $dfs = '$(DIRFILESEP)'; foreach my $file (@_) { my @dirs; $file =~ /(\w+\.pod)$/ or next; if ($1 eq "Error.pod" or $1 eq "Table.pod") { push @dirs, catfile("Apache", $_) for qw/Request Cookie Upload/; } else { push @dirs, catfile "Apache"; } push @lines, map <; } ================================================== It's messy, but that will just copy whatever pods we put in the ./docs subdir into their proper location in ./blib, duplicating Table.pod and Error.pod as necessary. > I could take a look at using Test::Inline to make some basic > API tests (probably this weekend - I'm away for this week). > From what I understand, one inserts the basic code for a > test within the pod, and then use a supplied script to > extract the tests into a .t test file that is run as usual > (developers do the extraction, so users don't have to > install Test::Inline). So with this it'd probably be a good > idea to have two separate test directories - one for these > tests (requiring Test::More), and the present one using > Apache-Test. Right- I guess we could also use the ./docs subdir to hold the .t files Test::Inline generates, and add a "test" target to the MY::postamble sub above to include them in a `make test` run. If this is ok, let's name new directory "api", since it holds our api docs *and* their tests. -- Joe Schaefer