Update of /cvsroot/monetdb/sql/src/test/snodgrass/Tests
In directory
sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv14066/sql/src/test/snodgrass/Tests
Modified Files:
Tag: SQL_2-24
cast_select.SQL.bat cast_select.SQL.sh
Log Message:
Clean-up of buildtools-, configure-, and testing-legacy in MonetDB-Java.
(
Considered as "bug-fix" by Sjoerd and me.
Has no impact on binary distributions and/or packaging.
Wrapped in tags "JavaTestingCleanUp1_before" & "JavaTestingCleanUp1_after".
Will fix or undo tomorrow in case unexpected problems occur.
)
- Removed "mjclient" as is was not packaged/distributed, anyway.
- Changed test that used "mjclient" to use "jdbcclient.jar" directly.
(Note: "jdbcclient.jar" is not packaged and/or distributed, either, but
only used internally for testing and "convenience".)
- Removed "monetdb-java-config[.bat]" as it was not packaged/distributed,
anyway.
- Changed Mtest.py (and tests) that used monetdb-java-config to find out
where the MonetDB/Java .jar's (and Java/JDBC tests) are installed,
to extract this information from CLASSPATH (falling back to
`monetdb-config --pkgdatadir`/lib and `monetdb-config --pkgdatadir`/Tests
in case CLASSPATH is not set accordingly, assuming MonetDB/Java is stalled
in the same prefix as MonetDB/Common).
- Removed all(?) code that became unused after above changes.
These changes should not break or add any inter-package/-module
dependencies.
TODO (Any help by any Java expert is more than welcome!):
====
For convenience of testing Java/JDBC functionality of binary distributions,
the tests in source/java/tests/ (installed in
<prefix>/share/MonetDB/Tests/*.class) should be collected in a single
"jdbctests.jar" (or alike) to be installed in <prefix>/share/MonetDB/Tests/
or <prefix>/share/MonetDB/lib/ (like the other *.jar files).
If necessary, the tests in sql/src/jdbc/tests/Tests/ then need to be adapted
to use the "jdbctests.jar" instead of the individual
<prefix>/share/MonetDB/Tests/*.class .
Just like "jdbcclient.jar", "jdbctests.jar" is meant for (internal) testing
convenience, only, and not to be distributed.
U cast_select.SQL.bat
Index: cast_select.SQL.bat
===================================================================
RCS file: /cvsroot/monetdb/sql/src/test/snodgrass/Tests/cast_select.SQL.bat,v
retrieving revision 1.4
retrieving revision 1.4.4.1
diff -u -d -r1.4 -r1.4.4.1
--- cast_select.SQL.bat 28 Nov 2007 16:24:03 -0000 1.4
+++ cast_select.SQL.bat 1 Jul 2008 15:06:43 -0000 1.4.4.1
@@ -1,7 +1,5 @@
@echo off
-set JAR="%MONETDB_JAVA_PREFIX%\share\MonetDB\lib\jdbcclient.jar"
-
echo user=monetdb> .monetdb
echo password=monetdb>> .monetdb
@@ -10,6 +8,6 @@
prompt # $t $g
echo on
-java -jar "%JAR%" -h %HOST% -p %MAPIPORT% -d %TSTDB% -e -f
"%RELSRCDIR%\..\cast_select.sql"
+java nl.cwi.monetdb.client.JdbcClient -h %HOST% -p %MAPIPORT% -d %TSTDB% -e -f
"%RELSRCDIR%\..\cast_select.sql"
@del .monetdb
U cast_select.SQL.sh
Index: cast_select.SQL.sh
===================================================================
RCS file: /cvsroot/monetdb/sql/src/test/snodgrass/Tests/cast_select.SQL.sh,v
retrieving revision 1.3
retrieving revision 1.3.4.1
diff -u -d -r1.3 -r1.3.4.1
--- cast_select.SQL.sh 28 Nov 2007 16:24:03 -0000 1.3
+++ cast_select.SQL.sh 1 Jul 2008 15:06:43 -0000 1.3.4.1
@@ -1,8 +1,5 @@
#!/bin/bash
-pdd="`monetdb-java-config --pkgdatadir`"
-JAR="$pdd/lib/jdbcclient.jar"
-
cat << EOF > .monetdb
user=monetdb
password=monetdb
@@ -11,6 +8,6 @@
LC_ALL="`locale -a | grep -i en_us | grep -i utf | head -n 1`"
export LC_ALL
-Mlog -x "$MTIMEOUT java -jar \"$JAR\" -h $HOST -p $MAPIPORT -d ${TSTDB} -e -f
\"$RELSRCDIR/../cast_select.sql\" 2>&1"
+Mlog -x "$MTIMEOUT java nl.cwi.monetdb.client.JdbcClient -h $HOST -p $MAPIPORT
-d ${TSTDB} -e -f \"$RELSRCDIR/../cast_select.sql\" 2>&1"
rm -f .monetdb
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins