From: Marc Herbert <Marc.Herbert@continuent.com>
To: pgsql-odbc@postgresql.org
Subject: Re: call for creating test suite
Date: Fri, 03 Feb 2006 13:14:05 +0100
Message-ID: <khj64nwvdv6.fsf@meije.emic.fr> (raw)
References: <20060112145902.GA8223@soptik.pzkagis.cz>
<khjace08gfo.fsf@meije.emic.fr>
<20060113135004.GA15349@soptik.pzkagis.cz>
<khjy81kcfcd.fsf@meije.emic.fr>
<20060202105458.GA301@soptik.pzkagis.cz>
<1138879586.660453.123050@g14g2000cwa.googlegroups.com>
<20060202120245.GA818@soptik.pzkagis.cz>
<1138884402.462402.176810@f14g2000cwb.googlegroups.com>
"lothar.behrens@lollisoft.de" <lothar.behrens@lollisoft.de> writes:
> I think, reverse engeneering the mylog to a description or script in a
> language is very
> difficult to handle and maintain.
>
> I don't know the format of mylog, but I know how difficult it is to
> scan log files - even only
> to pick out some aspects only.
I don't think either it will be easy to base and manage a test suite
on log outputs.
I agree with Lothar on basically everything else he said in the
previous message (except I would replace "peace" with "piece" for
better clarity :-)
IMHO, a test suite should be made of snippets of real code, and be as
close as possible to real ODBC use, for two main reasons:
- introducing distance between the tests and the real applications may
introduce bugs or slightly different behaviours, and you end up
debugging the tests instead of the actual code.
- The more the extra dependencies besides ODBC (on external parsers,
languages, tools), the more the effort to run the suite, the less
people running it/using it/contributing to it. For instance, as Lothar
put it, by parsing postgreSQL files you prevent, say mysql (and
continuent FWIW) ODBC developers to contribute. And you create a
dependency on the format of logs, which are meant to be human-readable
and not stable.
That does imply that an ODBC test suite should be mostly written in
C/C++. At worst some Perl or alike could be used to parse & format the
results of the runs but ideally some C/C++ testing framework would
provide that. We have used the CppUnit framework to do that in Carob
and are mostly satisfied about it. Main drawbacks are the limited
documentation (compared to the numerous possibilities and flexibility)
and the verbosity of the code of tests. You can browse carob testing
code here: <https://forge.continuent.org/scm/?group_id=10;, in
directory "carob/test/"
Similar alternatives to CppUnit do exist.
Moreover, I think we definitely want to give a try to the unixodbc
test suite before doing anything. If not to opt for it and contribute
to it, at least to learn from it.
Cheers,
Marc.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: Marc.Herbert@continuent.com
Subject: Re: call for creating test suite
In-Reply-To: <khj64nwvdv6.fsf@meije.emic.fr>
References: <20060112145902.GA8223@soptik.pzkagis.cz> <khjace08gfo.fsf@meije.emic.fr> <20060113135004.GA15349@soptik.pzkagis.cz> <khjy81kcfcd.fsf@meije.emic.fr> <20060202105458.GA301@soptik.pzkagis.cz> <1138879586.660453.123050@g14g2000cwa.googlegroups.com> <20060202120245.GA818@soptik.pzkagis.cz> <1138884402.462402.176810@f14g2000cwb.googlegroups.com> <khj64nwvdv6.fsf@meije.emic.fr>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox