Re: [Monetdb-developers] [Fabian.Groffen@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]
On Fri, Jan 12, 2007 at 08:55:39AM +0100, Niels Nes wrote:
On Thu, Jan 11, 2007 at 07:12:33PM +0100, Stefan Manegold wrote:
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 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;
Isn't that something like
java -classpath=jdbc.jar Test_Cautocommit
I tried Mlog -x "java -Djdbc_url=\"${URL}\" -classpath `monetdb-clients-config --pkgdatadir`/lib/monetdb-1.5-jdbc.jar:`monetdb-clients-config --pkgdatadir`/Tests ${TST}" bug get Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at Test_Cautocommit.main(Unknown Source) ??? Stefan
Niels
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@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 |
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
--
Niels Nes, Centre for Mathematics and Computer Science (CWI) Kruislaan 413, 1098 SJ Amsterdam, The Netherlands room C0.02, phone ++31 20 592-4098, fax ++31 20 592-4312 url: http://www.cwi.nl/~niels e-mail: Niels.Nes@cwi.nl
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@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 |
On 12-01-2007 11:19:47 +0100, Stefan Manegold wrote:
I tried
Mlog -x "java -Djdbc_url=\"${URL}\" -classpath `monetdb-clients-config --pkgdatadir`/lib/monetdb-1.5-jdbc.jar:`monetdb-clients-config --pkgdatadir`/Tests ${TST}"
bug get
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at Test_Cautocommit.main(Unknown Source)
jdbcurl = args[1]; obviously results in an java.lang.ArrayIndexOutOfBoundsException, as you didn't give the arguments that are expected. Of course, the ant build file that also runs the tests (which don't work any more now) sets the right calling arguments.
On Fri, Jan 12, 2007 at 11:23:12AM +0100, Fabian Groffen wrote:
On 12-01-2007 11:19:47 +0100, Stefan Manegold wrote:
I tried
Mlog -x "java -Djdbc_url=\"${URL}\" -classpath `monetdb-clients-config --pkgdatadir`/lib/monetdb-1.5-jdbc.jar:`monetdb-clients-config --pkgdatadir`/Tests ${TST}"
bug get
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at Test_Cautocommit.main(Unknown Source)
jdbcurl = args[1];
obviously results in an java.lang.ArrayIndexOutOfBoundsException, as you didn't give the arguments that are expected.
Of course, the ant build file that also runs the tests (which don't work any more now) sets the right calling arguments.
test are fixed (working w/o ant). thanks for all your hints. Stefan -- | Dr. Stefan Manegold | mailto:Stefan.Manegold@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 |
On 12-01-2007 13:46:25 +0100, Stefan Manegold wrote:
test are fixed (working w/o ant).
Great, then maybe now you can consider the effect of what you've just done.
On Fri, Jan 12, 2007 at 01:48:19PM +0100, Fabian Groffen wrote:
On 12-01-2007 13:46:25 +0100, Stefan Manegold wrote:
test are fixed (working w/o ant).
Great, then maybe now you can consider the effect of what you've just done.
effect: test do work, again, and are run every night to assess the state of our system. Stefan
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@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 |
participants (2)
-
Fabian Groffen
-
Stefan Manegold