Update of /cvsroot/monetdb/sql/src/test/pg_regress/Tests
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv3143/Tests
Added Files:
All load.SQL.sh load.stable.err load.stable.out
Log Message:
Add loading test, manually fix create_table script for MonetDB
--- NEW FILE: load.stable.out ---
stdout of test 'load` in directory 'src/test/pg_regress` itself:
# 20:13:21 >
# 20:13:21 > mserver5
"--config=/export/scratch/stripe/fabian/monetdb/current/program-i86pc/etc/monetdb5.conf"
--debug=10 --set gdk_nr_threads=0 --set
"monet_mod_path=/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB5:/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB5/lib:/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB5/bin"
--set
"gdk_dbfarm=/export/scratch/stripe/fabian/monetdb/current/mtest-pegasus.ins.cwi.nl/sql/dbfarm"
--set mapi_open=true --set xrpc_open=true --set mapi_port=31872 --set
xrpc_port=47409 --set monet_prompt= --trace
"--dbname=mTests_src_test_pg_regress" --set mal_listing=0 "--dbinit= include
sql;" ; echo ; echo Over..
# 20:13:21 >
# MonetDB server v5.13.0, based on kernel v1.31.0
# Serving database 'mTests_src_test_pg_regress', using 1 thread
# Compiled for x86_64-pc-solaris2.11/64bit with 64bit OIDs dynamically linked
# 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://pegasus.ins.cwi.nl:31872/
# MonetDB/SQL module v2.31.0 loaded
Ready.
#function user.main():void;
# clients.quit();
#end main;
Over..
# 20:13:21 >
# 20:13:21 > ./load.SQL.sh load
# 20:13:21 >
# 20:13:22 >
# 20:13:22 > Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb
--host=pegasus --port=31872 <
../../../../../../../../../../mirror/fabian/monetdb/current/sql/src/test/pg_regress/Tests/../monetdb/create_table.sql
# 20:13:22 >
# 20:13:22 >
# 20:13:22 > loading data with sed-foo
# 20:13:22 >
[ 4 ]
[ 1000 ]
[ 10000 ]
[ 3100 ]
[ 50 ]
[ 3 ]
[ 2 ]
[ 5124 ]
[ 5 ]
[ 10000 ]
[ 10000 ]
[ 10000 ]
[ 10000 ]
[ 10000 ]
[ 10000 ]
[ 10000 ]
[ 10000 ]
# 20:13:23 >
# 20:13:23 > Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb
--host=pegasus --port=31872 -s 'select count(*) from aggtest;'
# 20:13:23 >
% sys.aggtest # table_name
% L1 # name
% wrd # type
% 1 # length
[ 4 ]
# 20:13:23 >
# 20:13:23 > Done.
# 20:13:23 >
--- NEW FILE: load.stable.err ---
stderr of test 'load` in directory 'src/test/pg_regress` itself:
# 20:13:21 >
# 20:13:21 > mserver5
"--config=/export/scratch/stripe/fabian/monetdb/current/program-i86pc/etc/monetdb5.conf"
--debug=10 --set gdk_nr_threads=0 --set
"monet_mod_path=/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB5:/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB5/lib:/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB5/bin"
--set
"gdk_dbfarm=/export/scratch/stripe/fabian/monetdb/current/mtest-pegasus.ins.cwi.nl/sql/dbfarm"
--set mapi_open=true --set xrpc_open=true --set mapi_port=31872 --set
xrpc_port=47409 --set monet_prompt= --trace
"--dbname=mTests_src_test_pg_regress" --set mal_listing=0 "--dbinit= include
sql;" ; echo ; echo Over..
# 20:13:21 >
# builtin opt gdk_arch = 64bitx86_64-pc-solaris2.11
# builtin opt gdk_version = 1.31.0
# builtin opt prefix =
/export/scratch/stripe/fabian/monetdb/current/program-i86pc
# 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_vmtrim = yes
# builtin opt monet_admin = adm
# builtin opt monet_prompt = >
# builtin opt monet_welcome = yes
# builtin opt monet_mod_path =
/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB
# builtin opt monet_daemon = yes
# builtin opt host = localhost
# builtin opt mapi_port = 50000
# builtin opt mapi_noheaders = no
# builtin opt mapi_debug = 0
# builtin opt mapi_clients = 2
# 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 =
/export/scratch/stripe/fabian/monetdb/current/program-i86pc
# config opt config = ${prefix}/etc/monetdb5.conf
# config opt prefix =
/export/scratch/stripe/fabian/monetdb/current/program-i86pc
# 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 =
/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB5:/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB5/lib:/export/scratch/stripe/fabian/monetdb/current/program-i86pc/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 mal_init =
/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB5/mal_init.mal
# config opt mal_listing = 2
# config opt mapi_port = 50000
# config opt mapi_autosense = false
# config opt mapi_open = false
# config opt sql_optimizer =
inline,remap,evaluate,costModel,coercions,emptySet,cluster,aliases,mergetable,deadcode,constants,commonTerms,joinPath,deadcode,reduce,garbageCollector,dataflow,history,multiplex
# cmdline opt config =
/export/scratch/stripe/fabian/monetdb/current/program-i86pc/etc/monetdb5.conf
# cmdline opt gdk_nr_threads = 0
# cmdline opt monet_mod_path =
/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB5:/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB5/lib:/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB5/bin
# cmdline opt gdk_dbfarm =
/export/scratch/stripe/fabian/monetdb/current/mtest-pegasus.ins.cwi.nl/sql/dbfarm
# cmdline opt mapi_open = true
# cmdline opt xrpc_open = true
# cmdline opt mapi_port = 31872
# cmdline opt xrpc_port = 47409
# cmdline opt monet_prompt =
# cmdline opt gdk_dbname = mTests_src_test_pg_regress
# cmdline opt mal_listing = 0
#warning: please don't forget to set your vault key!
#(see
/export/scratch/stripe/fabian/monetdb/current/program-i86pc/etc/monetdb5.conf)
# 20:13:21 >
# 20:13:21 > ./load.SQL.sh load
# 20:13:21 >
# 20:13:22 >
# 20:13:22 > Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb
--host=pegasus --port=31872 <
../../../../../../../../../../mirror/fabian/monetdb/current/sql/src/test/pg_regress/Tests/../monetdb/create_table.sql
# 20:13:22 >
# 20:13:22 >
# 20:13:22 > loading data with sed-foo
# 20:13:22 >
# 20:13:23 >
# 20:13:23 > Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb
--host=pegasus --port=31872 -s 'select count(*) from aggtest;'
# 20:13:23 >
# 20:13:23 >
# 20:13:23 > Done.
# 20:13:23 >
--- NEW FILE: All ---
load
--- NEW FILE: load.SQL.sh ---
#!/usr/bin/env bash
Mlog -x "$SQL_CLIENT < $RELSRCDIR/../monetdb/create_table.sql"
Mlog "loading data with sed-foo"
# don't load stud_emp, as it's the only data file with \N entries
# (PostgreSQL NULL notation)
sed -r \
-e s...@abs_srcdir@+$TSTSRCBASE/$TSTDIR+ig \
-e '/@abs_builddir@/d' \
-e '/DELETE FROM/d' \
-e "s/COPY (.*);/COPY INTO \1 USING DELIMITERS '\\\\t\', '\\\\n';/i" \
-e '/stud_emp/d' \
$RELSRCDIR/../input/copy.source \
| $SQL_CLIENT
Mlog -x "$SQL_CLIENT -s 'select count(*) from aggtest;'"
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins