[Monetdb-developers] [Fabian.Groffen at cwi.nl: Re: [Monetdb-checkins] clients/src/odbc/samples/Tests All, 1.1, NONE odbcsample1.SQL, 1.1, NONE odbcsample1.SQL.bat, 1.1, NONE?odbcsample1.stable.err, 1.1, NONE odbcsample1.stable.out, 1.1, NONE]

Stefan Manegold Stefan.Manegold at cwi.nl
Thu Jan 11 19:12:33 CET 2007


On Thu, Jan 11, 2007 at 04:59:13PM +0100, Fabian Groffen wrote:
> On 11-01-2007 16:55:16 +0100, Stefan Manegold wrote:
> > For the time being, I vote for reviving the odbc and java/jdbc tests in sql
> > (as I did and am doing).
> 
> I think this is a bad idea, and it should not be done.

well, for now I think having 
the MIL tests in MonetDB4,
the MAL tests in MonetDB5
the SQL tests in sql,
the XQuery tests in pathfinder
is a reasonably good idea.

the sample programs that are used by these tests --- no matter whether they
are written in C or java, and no matter whether they use plain MAPI, ODBC or
JDBC stay where they belong, i.e., in clients.


independend of that, how (if at all???) can I run the JDBC tests in case the
respective jar and programs have already been built, i.e., without using
ant;
i.e., how do I have to modify (e.g.)

========
$ cat sql/src/jdbc/tests/Tests/Test_Cautocommit.SQL
--------
#!/bin/sh

URL="jdbc:monetdb://${HOST}:${MAPIPORT}/${TSTDB}?user=monetdb&password=monetdb${JDBC_EXTRA_ARGS}"

Mlog -x "ant -emacs -buildfile ${TSTSRCDIR}/../build.xml
-Dbuilddir=${TSTBLDDIR}/../ -Djdbc_url=\"${URL}\"
-Djardir=${TSTBLDDIR}/../../ ${TST}"
========

to do something usefull, in case I have only the above script and

========
$ l `monetdb-clients-config --pkgdatadir`/lib
--------
total 200
drwxr-s---  2 manegold ins1   4096 Jan 10 23:15 ./
drwxr-s---  7 manegold ins1   4096 Jan 10 23:15 ../
-rwxr-xr-x  1 manegold ins1 110587 Jan 10 23:15 jdbcclient-1.5.jar*
-rwxr-xr-x  1 manegold ins1  76159 Jan 10 23:15 monetdb-1.5-jdbc.jar*
========
$ l `monetdb-clients-config --pkgdatadir`/Tests
--------
total 56
drwxr-s---  2 manegold ins1 4096 Jan 10 23:15 ./
drwxr-s---  7 manegold ins1 4096 Jan 10 23:15 ../
-rwxr-xr-x  1 manegold ins1 2045 Jan 10 23:15 Test_Cautocommit.class*
-rwxr-xr-x  1 manegold ins1 1520 Jan 10 23:15 Test_Cmanycon.class*
-rwxr-xr-x  1 manegold ins1 3184 Jan 10 23:15 Test_Csavepoints.class*
-rwxr-xr-x  1 manegold ins1 2091 Jan 10 23:15 Test_Ctransaction.class*
-rwxr-xr-x  1 manegold ins1 3069 Jan 10 23:15 Test_PStimedate.class*
-rwxr-xr-x  1 manegold ins1 4298 Jan 10 23:15 Test_Rbooleans.class*
-rwxr-xr-x  1 manegold ins1 4232 Jan 10 23:15 Test_Rmetadata.class*
-rwxr-xr-x  1 manegold ins1 2275 Jan 10 23:15 Test_Rpositioning.class*
-rwxr-xr-x  1 manegold ins1 3676 Jan 10 23:15 Test_Rtimedate.class*
-rwxr-xr-x  1 manegold ins1 2442 Jan 10 23:15 Test_Sbatching.class*
========

thanks in advance!

Stefan

-- 
| Dr. Stefan Manegold | mailto:Stefan.Manegold at cwi.nl |
| CWI,  P.O.Box 94079 | http://www.cwi.nl/~manegold/  |
| 1090 GB Amsterdam   | Tel.: +31 (20) 592-4212       |
| The Netherlands     | Fax : +31 (20) 592-4312       |




More information about the developers-list mailing list