Umm, maybe I'm misunderstanding you but I looked at 11-dbi-dbh.t
http://search.cpan.org/src/HMBRAND/DBD-Unify-0.26/t/11-dbi-dbh.t
and it seems full of unify specifics.

What's needed is for someone (us) to *design* a scheme for the
infrastructure of a DBD test harness. The key part being how an
individual driver can communicate to the test harness what SQL
it can use and, in some cases, what to expect back.

I think a good approach to that would be to use a DBI subclass,
say DBI::Test, and the AnyDBD mechanism (that's now part of the DBI
but undocumented) so we could have DBI::Test::<dbtype> subclasses
of DBI::Test.

That way the $dbh and $sth's are not only DBI handles but also have
extra methods that the tests can use to guide their progress.

Once those basics are in place it should be straight-forward for
people to add tests.

Any volunteers to work on this?

Tim.

On Tue, Jan 13, 2004 at 04:04:14PM +0100, H.Merijn Brand wrote:
> On Tue 13 Jan 2004 15:59, "H.Merijn Brand" <[EMAIL PROTECTED]> wrote:
> > On Tue 13 Jan 2004 15:45, Tim Bunce <[EMAIL PROTECTED]> wrote:
> > > On Mon, Jan 12, 2004 at 08:42:12AM -0800, Dean Arnold wrote:
> > > > Maybe a conformance test script for driver writers ?
> > > > (or at least a template version...)
> > > 
> > > That's a wonderful goal - but it's not specifically on my list.
> > > I just don't have the time.
> > > 
> > > I'd fully support anyone who wants to work on such a thing.
> > > It is urgently needed.
> > 
> > FWIW I started with that for DBD::Unify when I was still at DBI-1.14
> > 
> > l1:/pro/3gl/CPAN/DBD-Unify-0.27 102 > ll t
> > total 42
> >   71024 drwxr-xr-x    2 merijn   softwr       2048 Aug 28 14:46 .
> >   57486 drwxr-xr-x    4 merijn   softwr       2048 Dec  9 16:40 ..
> >   71029 -rwxr-xr-x    1 merijn   softwr        841 Oct 23  2000 01-base.t
> >   74019 -rwxr-xr-x    1 merijn   softwr        843 Apr 12  2001 02-connect.t
> >   71027 -rwxr-xr-x    1 merijn   softwr       1495 Jul 20  2001 03-general.t
> >   71028 -rwxr-xr-x    1 merijn   softwr        122 Oct 23  2000 04-long.t
> >   71025 -rwxr-xr-x    1 merijn   softwr       1259 Oct 23  2000 05-reauth.t
> >   76794 -rwxr-xr-x    1 merijn   softwr       2550 Mar 14  2003 10-dbi-drv.t
> >   71041 -rwxr-xr-x    1 merijn   softwr       2404 Aug 28 14:15 11-dbi-dbh.t
> >    6381 -rwxr-xr-x    1 merijn   softwr       1473 Apr 12  2001 12-dbi-sth.t
> >   69009 -rwxr-xr-x    1 merijn   softwr       7851 Aug 28 14:15 20-uni-basic.t
> >   70413 -rwxr-xr-x    1 merijn   softwr       2240 Aug 28 14:16 21-uni-regex.t
> >   94019 -rwxr-xr-x    1 merijn   softwr       1868 Jul 25  2001 27-uni-max.t
> >  145940 -rwxr-xr-x    1 merijn   softwr       1269 Feb 21  2003 30-reconnect.t
> >   81344 -rwxr-xr-x    1 merijn   softwr        142 Jul 25  2001 99-done.t
> > l1:/pro/3gl/CPAN/DBD-Unify-0.27 103 >
> > 
> > 01 .. 12 are (or at least should be) completely database independant tests.
> > Just change the login and you're done
> 
> And all not-yet-implemented DBI features/attributes should be marked # TODO :)
> 
> -- 
> H.Merijn Brand        Amsterdam Perl Mongers (http://amsterdam.pm.org/)
> using perl-5.6.1, 5.8.0 & 633 on HP-UX 10.20 & 11.00, AIX 4.2, AIX 4.3,
>      WinNT 4, Win2K pro & WinCE 2.11 often with Tk800.024 &/| DBD-Unify
> ftp://ftp.funet.fi/pub/languages/perl/CPAN/authors/id/H/HM/HMBRAND/
> 

Reply via email to