Changeset: cb638fc742d8 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=cb638fc742d8
Modified Files:
        sql/test/BugTracker-2011/Tests/All
        sql/test/BugTracker-2011/Tests/mclient-lsql-d.Bug-2861.SQL.bat
        sql/test/BugTracker-2011/Tests/mclient-lsql-d.Bug-2861.SQL.sh
        sql/test/BugTracker-2011/Tests/mclient-lsql-d.Bug-2861.stable.err
        sql/test/BugTracker-2011/Tests/mclient-lsql-d.Bug-2861.stable.out
        sql/test/BugTracker-2011/mclient-lsql-d.Bug-2861.sql
Branch: Aug2011
Log Message:

tests: add script for bug #2861


diffs (258 lines):

diff --git a/sql/test/BugTracker-2011/Tests/All 
b/sql/test/BugTracker-2011/Tests/All
--- a/sql/test/BugTracker-2011/Tests/All
+++ b/sql/test/BugTracker-2011/Tests/All
@@ -1,3 +1,4 @@
+mclient-lsql-d.Bug-2861
 count-count-distinct.Bug-2808
 copy-into-file-error.Bug-2722
 bulk_rotate_xor_hash-error.Bug-2734
diff --git a/sql/test/BugTracker-2009/Tests/mclient-lsql-D.SQL.bat 
b/sql/test/BugTracker-2011/Tests/mclient-lsql-d.Bug-2861.SQL.bat
copy from sql/test/BugTracker-2009/Tests/mclient-lsql-D.SQL.bat
copy to sql/test/BugTracker-2011/Tests/mclient-lsql-d.Bug-2861.SQL.bat
--- a/sql/test/BugTracker-2009/Tests/mclient-lsql-D.SQL.bat
+++ b/sql/test/BugTracker-2011/Tests/mclient-lsql-d.Bug-2861.SQL.bat
@@ -1,4 +1,4 @@
 @echo on
 @prompt # $t $g  
 
-       %SQL_CLIENT% -D < C:nul
+       %SQL_CLIENT% -e -i < %TSTSRCDIR%\..\mclient-lsql-d.Bug-2861.sql
diff --git a/sql/test/BugTracker-2009/Tests/mclient-lsql-D.SQL.sh 
b/sql/test/BugTracker-2011/Tests/mclient-lsql-d.Bug-2861.SQL.sh
copy from sql/test/BugTracker-2009/Tests/mclient-lsql-D.SQL.sh
copy to sql/test/BugTracker-2011/Tests/mclient-lsql-d.Bug-2861.SQL.sh
--- a/sql/test/BugTracker-2009/Tests/mclient-lsql-D.SQL.sh
+++ b/sql/test/BugTracker-2011/Tests/mclient-lsql-d.Bug-2861.SQL.sh
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-Mlog -x "$SQL_CLIENT -D < /dev/null"
+Mlog -x "$SQL_CLIENT -e -i < "$TSTSRCDIR"/../mclient-lsql-d.Bug-2861.sql"
diff --git a/sql/test/BugTracker-2009/Tests/mclient-lsql-D.stable.err 
b/sql/test/BugTracker-2011/Tests/mclient-lsql-d.Bug-2861.stable.err
copy from sql/test/BugTracker-2009/Tests/mclient-lsql-D.stable.err
copy to sql/test/BugTracker-2011/Tests/mclient-lsql-d.Bug-2861.stable.err
--- a/sql/test/BugTracker-2009/Tests/mclient-lsql-D.stable.err
+++ b/sql/test/BugTracker-2011/Tests/mclient-lsql-d.Bug-2861.stable.err
@@ -1,83 +1,42 @@
-stderr of test 'mclient-lsql-D` in directory 'test/BugTracker-2009` itself:
+stderr of test 'mclient-lsql-d.Bug-2861` in directory 'test/BugTracker-2011` 
itself:
 
 
-# 21:51:00 >  
-# 21:51:00 >   mserver5 
"--config=/ufs/niels/scratch/rc/Linux-x86_64/etc/monetdb5.conf" --debug=10 
--set gdk_nr_threads=0 --set 
"monet_mod_path=/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/lib:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/ufs/niels/scratch/rc/Linux-x86_64/var/MonetDB5/dbfarm"    
--set mapi_open=true --set xrpc_open=true --set mapi_port=38418 --set 
xrpc_port=47399 --set monet_prompt= --trace  
"--dbname=mTests_src_test_BugTracker-2009" --set mal_listing=0 "--dbinit= 
include sql;" ; echo ; echo Over..
-# 21:51:00 >  
+# 10:06:13 >  
+# 10:06:13 >   mserver5  --debug=10 --set gdk_nr_threads=0  --set 
"gdk_dbfarm=/net/volund.ins.cwi.nl/export/scratch0/fabian/vtmp/mtest-Aug2011-volund.ins.cwi.nl/sql/dbfarm"
 --set mapi_open=true --set mapi_port=31159 --set monet_prompt= --trace 
--forcemito --set mal_listing=2  "--dbname=mTests_test_BugTracker-2011" --set 
mal_listing=0 ; echo ; echo Over..
+# 10:06:13 >  
 
-# builtin opt  gdk_arch = 64bitx86_64-unknown-linux-gnu
-# builtin opt  gdk_version = 1.30.0
-# builtin opt  prefix = /ufs/niels/scratch/rc/Linux-x86_64
-# builtin opt  exec_prefix = ${prefix}
-# builtin opt  gdk_dbname = tst
-# builtin opt  gdk_dbfarm = ${prefix}/var/MonetDB
-# builtin opt  gdk_debug = 8
-# builtin opt  gdk_alloc_map = yes
+# builtin opt  gdk_dbname = demo
+# builtin opt  gdk_dbfarm = 
/ufs/fabian/scratch/monetdb/Aug2011/program-x86_64/var/lib/monetdb5/dbfarm
+# builtin opt  gdk_debug = 0
+# builtin opt  gdk_alloc_map = no
 # builtin opt  gdk_vmtrim = yes
-# builtin opt  monet_admin = adm
 # builtin opt  monet_prompt = >
-# builtin opt  monet_welcome = yes
-# builtin opt  monet_mod_path = ${exec_prefix}/lib/MonetDB
-# builtin opt  monet_daemon = yes
-# builtin opt  host = localhost
+# builtin opt  monet_daemon = no
 # builtin opt  mapi_port = 50000
-# builtin opt  mapi_noheaders = no
-# builtin opt  mapi_debug = 0
-# builtin opt  mapi_clients = 2
+# builtin opt  mapi_open = false
+# builtin opt  mapi_autosense = false
+# builtin opt  sql_optimizer = default_pipe
 # builtin opt  sql_debug = 0
-# builtin opt  sql_logdir = sql_logs
-# builtin opt  xquery_logdir = xquery_logs
-# builtin opt  standoff_ns = http://monetdb.cwi.nl/standoff
-# builtin opt  standoff_start = start
-# builtin opt  standoff_end = end
-# config opt   prefix = /ufs/niels/scratch/rc/Linux-x86_64
-# config opt   config = ${prefix}/etc/monetdb5.conf
-# config opt   prefix = /ufs/niels/scratch/rc/Linux-x86_64
-# config opt   exec_prefix = ${prefix}
-# config opt   gdk_dbfarm = ${prefix}/var/MonetDB5/dbfarm
-# config opt   gdk_dbname = demo
-# config opt   gdk_alloc_map = no
-# config opt   gdk_embedded = no
-# config opt   gdk_debug = 0
-# config opt   monet_mod_path = 
${exec_prefix}/lib/MonetDB5:${exec_prefix}/lib/MonetDB5/lib:${exec_prefix}/lib/MonetDB5/bin
-# config opt   monet_daemon = no
-# config opt   monet_welcome = yes
-# config opt   mero_msglog = ${prefix}/var/log/MonetDB/merovingian.log
-# config opt   mero_errlog = ${prefix}/var/log/MonetDB/merovingian.log
-# config opt   mero_pidfile = ${prefix}/var/run/MonetDB/merovingian.pid
-# config opt   mero_exittimeout = 7
-# config opt   mero_doproxy = yes
-# config opt   mero_discoveryttl = 600
-# config opt   mal_init = ${exec_prefix}/lib/MonetDB5/mal_init.mal
-# config opt   mal_listing = 2
-# config opt   mapi_port = 50000
-# config opt   mapi_open = false
-# config opt   sql_logdir = sql_logs
-# cmdline opt  config = /ufs/niels/scratch/rc/Linux-x86_64/etc/monetdb5.conf
 # cmdline opt  gdk_nr_threads = 0
-# cmdline opt  monet_mod_path = 
/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/lib:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/bin
-# cmdline opt  gdk_dbfarm = 
/ufs/niels/scratch/rc/Linux-x86_64/var/MonetDB5/dbfarm
+# cmdline opt  gdk_dbfarm = 
/net/volund.ins.cwi.nl/export/scratch0/fabian/vtmp/mtest-Aug2011-volund.ins.cwi.nl/sql/dbfarm
 # cmdline opt  mapi_open = true
-# cmdline opt  xrpc_open = true
-# cmdline opt  mapi_port = 38418
-# cmdline opt  xrpc_port = 47399
+# cmdline opt  mapi_port = 31159
 # cmdline opt  monet_prompt = 
-# cmdline opt  gdk_dbname = mTests_src_test_BugTracker-2009
+# cmdline opt  mal_listing = 2
+# cmdline opt  gdk_dbname = mTests_test_BugTracker-2011
 # cmdline opt  mal_listing = 0
-#warning: please don't forget to set your vault key!
-#(see /ufs/niels/scratch/rc/Linux-x86_64/etc/monetdb5.conf)
 
-# 21:51:00 >  
-# 21:51:00 >  ./mclient-lsql-D.SQL.sh mclient-lsql-D 
-# 21:51:00 >  
+# 10:06:13 >  
+# 10:06:13 >  ./mclient-lsql-d.Bug-2861.SQL.sh mclient-lsql-d.Bug-2861 
+# 10:06:13 >  
 
 
-# 21:51:00 >  
-# 21:51:00 >  Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb 
--host=alf --port=38418  -D < /dev/null
-# 21:51:00 >  
+# 10:06:13 >  
+# 10:06:13 >  Mtimeout -timeout 60 mclient -lsql -ftest -i -e --host=volund 
--port=31159  -e -i < 
/net/volund.ins.cwi.nl/export/scratch1/fabian/monetdb/Aug2011/hgrepo/sql/test/BugTracker-2011/Tests/../mclient-lsql-d.Bug-2861.sql
+# 10:06:13 >  
 
 
-# 21:51:00 >  
-# 21:51:00 >  Done.
-# 21:51:00 >  
+# 10:06:13 >  
+# 10:06:13 >  Done.
+# 10:06:13 >  
 
diff --git a/sql/test/BugTracker-2009/Tests/mclient-lsql-D.stable.out 
b/sql/test/BugTracker-2011/Tests/mclient-lsql-d.Bug-2861.stable.out
copy from sql/test/BugTracker-2009/Tests/mclient-lsql-D.stable.out
copy to sql/test/BugTracker-2011/Tests/mclient-lsql-d.Bug-2861.stable.out
--- a/sql/test/BugTracker-2009/Tests/mclient-lsql-D.stable.out
+++ b/sql/test/BugTracker-2011/Tests/mclient-lsql-d.Bug-2861.stable.out
@@ -1,67 +1,42 @@
-stdout of test 'mclient-lsql-D` in directory 'test/BugTracker-2009` itself:
+stdout of test 'mclient-lsql-d.Bug-2861` in directory 'test/BugTracker-2011` 
itself:
 
 
-# 21:51:00 >  
-# 21:51:00 >   mserver5 
"--config=/ufs/niels/scratch/rc/Linux-x86_64/etc/monetdb5.conf" --debug=10 
--set gdk_nr_threads=0 --set 
"monet_mod_path=/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/lib:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/ufs/niels/scratch/rc/Linux-x86_64/var/MonetDB5/dbfarm"    
--set mapi_open=true --set xrpc_open=true --set mapi_port=38418 --set 
xrpc_port=47399 --set monet_prompt= --trace  
"--dbname=mTests_src_test_BugTracker-2009" --set mal_listing=0 "--dbinit= 
include sql;" ; echo ; echo Over..
-# 21:51:00 >  
+# 10:06:13 >  
+# 10:06:13 >   mserver5  --debug=10 --set gdk_nr_threads=0  --set 
"gdk_dbfarm=/net/volund.ins.cwi.nl/export/scratch0/fabian/vtmp/mtest-Aug2011-volund.ins.cwi.nl/sql/dbfarm"
 --set mapi_open=true --set mapi_port=31159 --set monet_prompt= --trace 
--forcemito --set mal_listing=2  "--dbname=mTests_test_BugTracker-2011" --set 
mal_listing=0 ; echo ; echo Over..
+# 10:06:13 >  
 
-# MonetDB server v5.12.0, based on kernel v1.30.0
-# Serving database 'mTests_src_test_BugTracker-2009', using 4 threads
-# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs dynamically 
linked
+# MonetDB 5 server v11.5.0 "Aug2011-7c7245f9cb28"
+# Serving database 'mTests_test_BugTracker-2011', using 4 threads
+# Compiled for x86_64-pc-linux-gnu/64bit with 64bit OIDs dynamically linked
+# Found 7.749 GiB available main-memory.
 # Copyright (c) 1993-July 2008 CWI.
-# Copyright (c) August 2008-2009 MonetDB B.V., all rights reserved
-# Visit http://monetdb.cwi.nl/ for further information
-# Listening for connection requests on mapi:monetdb://alf.ins.cwi.nl:38418/
-# MonetDB/SQL module v2.30.1 loaded
+# Copyright (c) August 2008-2011 MonetDB B.V., all rights reserved
+# Visit http://www.monetdb.org/ for further information
+# Listening for connection requests on mapi:monetdb://volund.ins.cwi.nl:31159/
+# MonetDB/GIS module loaded
+# MonetDB/SQL module loaded
+# MonetDB/DataCell module not loaded
+# SQLException:mvc:SQL module not initialized
 
 Ready.
-#function user.main():void;
-#    clients.quit();
-#end main;
+# SQL catalog created, loading sql scripts once
 
 Over..
 
-# 21:51:00 >  
-# 21:51:00 >  ./mclient-lsql-D.SQL.sh mclient-lsql-D 
-# 21:51:00 >  
+# 10:06:13 >  
+# 10:06:13 >  ./mclient-lsql-d.Bug-2861.SQL.sh mclient-lsql-d.Bug-2861 
+# 10:06:13 >  
 
 
-# 21:51:00 >  
-# 21:51:00 >  Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb 
--host=alf --port=38418  -D < /dev/null
-# 21:51:00 >  
+# 10:06:13 >  
+# 10:06:13 >  Mtimeout -timeout 60 mclient -lsql -ftest -i -e --host=volund 
--port=31159  -e -i < 
/net/volund.ins.cwi.nl/export/scratch1/fabian/monetdb/Aug2011/hgrepo/sql/test/BugTracker-2011/Tests/../mclient-lsql-d.Bug-2861.sql
+# 10:06:13 >  
 
-START TRANSACTION;
-SET SCHEMA "sys";
-CREATE TABLE "sys"."table_a" (
-       "table_a_id" INTEGER       NOT NULL,
-       "value_a"    INTEGER       NOT NULL,
-       CONSTRAINT "pk_table_a_id" PRIMARY KEY ("table_a_id")
-);
-CREATE TABLE "sys"."table_b" (
-       "table_b_id" INTEGER       NOT NULL,
-       "table_a_id" INTEGER       NOT NULL,
-       CONSTRAINT "pk_table_b_id" PRIMARY KEY ("table_b_id")
-);
-CREATE TABLE "sys"."table_d" (
-       "table_d_id" INTEGER       NOT NULL,
-       "table_a_id" INTEGER       NOT NULL,
-       CONSTRAINT "pk_table_d_id" PRIMARY KEY ("table_d_id")
-);
-CREATE TABLE "sys"."table_c" (
-       "table_c_id" INTEGER       NOT NULL,
-       "table_a_id" INTEGER       NOT NULL,
-       "table_b_id" INTEGER       NOT NULL,
-       "table_d_id" INTEGER       NOT NULL,
-       "value_c"    INTEGER       NOT NULL,
-       CONSTRAINT "pk_table_c_id" PRIMARY KEY ("table_c_id")
-);
-ALTER TABLE "sys"."table_b" ADD CONSTRAINT "fk_table_a_id" FOREIGN KEY 
("table_a_id") REFERENCES "sys"."table_a" ("table_a_id");
-ALTER TABLE "sys"."table_c" ADD CONSTRAINT "fk_table_c_table_a_id" FOREIGN KEY 
("table_a_id") REFERENCES "sys"."table_a" ("table_a_id");
-ALTER TABLE "sys"."table_c" ADD CONSTRAINT "fk_table_c_table_d_id" FOREIGN KEY 
("table_d_id") REFERENCES "sys"."table_b" ("table_b_id");
-ALTER TABLE "sys"."table_d" ADD CONSTRAINT "fk_table_d_table_a_id" FOREIGN KEY 
("table_a_id") REFERENCES "sys"."table_a" ("table_a_id");
-COMMIT;
+#create table bug2861 (id int);
+TABLE       sys.bug2861
+#drop table bug2861;
 
-# 21:51:00 >  
-# 21:51:00 >  Done.
-# 21:51:00 >  
+# 10:06:13 >  
+# 10:06:13 >  Done.
+# 10:06:13 >  
 
diff --git a/sql/test/BugTracker-2011/mclient-lsql-d.Bug-2861.sql 
b/sql/test/BugTracker-2011/mclient-lsql-d.Bug-2861.sql
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2011/mclient-lsql-d.Bug-2861.sql
@@ -0,0 +1,9 @@
+-- this should yield in nothing (empty database)
+\d
+-- create a table
+create table bug2861 (id int);
+-- we should see it
+\d
+drop table bug2861;
+-- and it should be gone again
+\d
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to