Update of /cvsroot/monetdb/pathfinder/tests/BugTracker/Tests
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv6843
Modified Files:
Tag: Aug2009
All
Added Files:
Tag: Aug2009
update-with-timing.SF-2852928.XQUERY.py
update-with-timing.SF-2852928.stable.err
update-with-timing.SF-2852928.stable.out
Log Message:
Added test for bug 2852928: PF: updates broken using algebra front-end?
U All
Index: All
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/tests/BugTracker/Tests/All,v
retrieving revision 1.144.2.3
retrieving revision 1.144.2.4
diff -u -d -r1.144.2.3 -r1.144.2.4
--- All 8 Sep 2009 07:34:10 -0000 1.144.2.3
+++ All 10 Sep 2009 09:43:02 -0000 1.144.2.4
@@ -211,6 +211,7 @@
oidInDocMgmt.SF-2686121
distinct-values-two-sequences.SF-2853441
child-steps-and-replace.SF-2716723
+update-with-timing.SF-2852928
#
# Test "Zombie_document.SF-2009556" currently seems to corrupt the database
and hence should be last in this list!
Zombie_document.SF-2009556
--- NEW FILE: update-with-timing.SF-2852928.stable.err ---
stderr of test 'update-with-timing.SF-2852928` in directory 'tests/BugTracker`
itself:
# 11:40:58 >
# 11:40:58 > Mserver
"--config=/ufs/sjoerd/Monet-virgin-stable/etc/MonetDB.conf" --debug=10 --set
gdk_nr_threads=1 --set
"monet_mod_path=/ufs/sjoerd/src/MonetDB/virgin-stable/pathfinder/x86_64-unknown-linux-gnu/runtime/.libs:/ufs/sjoerd/src/MonetDB/virgin-stable/pathfinder/x86_64-unknown-linux-gnu/runtime:/ufs/sjoerd/src/MonetDB/virgin-stable/pathfinder/x86_64-unknown-linux-gnu/modules/pftijah/.libs:/ufs/sjoerd/src/MonetDB/virgin-stable/pathfinder/x86_64-unknown-linux-gnu/modules/pftijah:/ufs/sjoerd/Monet-virgin-stable/lib64/MonetDB4:/ufs/sjoerd/Monet-virgin-stable/lib64/MonetDB4/lib:/ufs/sjoerd/Monet-virgin-stable/lib64/MonetDB4/bin"
--set
"gdk_dbfarm=/ufs/sjoerd/src/MonetDB/virgin-stable/pathfinder/x86_64-unknown-linux-gnu/dbfarm"
--set
"xrpc_docroot=/ufs/sjoerd/src/MonetDB/virgin-stable/pathfinder/runtime/xrpc"
--set mapi_open=true --set xrpc_open=true --set mapi_port=36167 --set
xrpc_port=40867 --set monet_prompt= --trace "--dbname=mTests_tests_BugTracker"
"--dbinit= module(pathfinder);" ; echo ; echo Over..
# 11:40:58 >
# 11:40:58 >
# 11:40:58 > /usr/bin/python update-with-timing.SF-2852928.XQUERY.py
update-with-timing.SF-2852928
# 11:40:58 >
# 11:40:58 >
# 11:40:58 > Done.
# 11:40:58 >
--- NEW FILE: update-with-timing.SF-2852928.stable.out ---
stdout of test 'update-with-timing.SF-2852928` in directory 'tests/BugTracker`
itself:
# 11:40:58 >
# 11:40:58 > Mserver
"--config=/ufs/sjoerd/Monet-virgin-stable/etc/MonetDB.conf" --debug=10 --set
gdk_nr_threads=1 --set
"monet_mod_path=/ufs/sjoerd/src/MonetDB/virgin-stable/pathfinder/x86_64-unknown-linux-gnu/runtime/.libs:/ufs/sjoerd/src/MonetDB/virgin-stable/pathfinder/x86_64-unknown-linux-gnu/runtime:/ufs/sjoerd/src/MonetDB/virgin-stable/pathfinder/x86_64-unknown-linux-gnu/modules/pftijah/.libs:/ufs/sjoerd/src/MonetDB/virgin-stable/pathfinder/x86_64-unknown-linux-gnu/modules/pftijah:/ufs/sjoerd/Monet-virgin-stable/lib64/MonetDB4:/ufs/sjoerd/Monet-virgin-stable/lib64/MonetDB4/lib:/ufs/sjoerd/Monet-virgin-stable/lib64/MonetDB4/bin"
--set
"gdk_dbfarm=/ufs/sjoerd/src/MonetDB/virgin-stable/pathfinder/x86_64-unknown-linux-gnu/dbfarm"
--set
"xrpc_docroot=/ufs/sjoerd/src/MonetDB/virgin-stable/pathfinder/runtime/xrpc"
--set mapi_open=true --set xrpc_open=true --set mapi_port=36167 --set
xrpc_port=40867 --set monet_prompt= --trace "--dbname=mTests_tests_BugTracker"
"--dbinit= module(pathfinder);" ; echo ; echo Over..
# 11:40:58 >
# MonetDB Server v4.32.1
# based on GDK v1.32.1
# Copyright (c) 1993-July 2008, CWI. All rights reserved.
# Copyright (c) August 2008-2009, MonetDB B.V.. All rights reserved.
# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs; dynamically
linked.
# Visit http://monetdb.cwi.nl/ for further information.
# PF/Tijah module v0.13.0 loaded. http://dbappl.cs.utwente.nl/pftijah
# MonetDB/XQuery module v0.28.3 loaded (default back-end is 'algebra')
# XRPC administrative console at http://127.0.0.1:40867/admin
printf("\nReady.\n");
Ready.
quit();
Over..
# 11:40:58 >
# 11:40:58 > /usr/bin/python update-with-timing.SF-2852928.XQUERY.py
update-with-timing.SF-2852928
# 11:40:58 >
#~BeginVariableOutput~#
Trans 18.834 msec
Shred 13.006 msec
Query 15.582 msec
Print 24.157 msec
#~EndVariableOutput~#
<?xml version="1.0" encoding="utf-8"?>
<XQueryResult><hello lang="en" x="y">
<foo>text of node foo<bar>text of node bar</bar></foo>
<!-- a comment node -->
<?pi action=beep?>
<world/>
<path>\asfda\asdfasf\asdf</path>
<a/></hello></XQueryResult>
# 11:40:58 >
# 11:40:58 > Done.
# 11:40:58 >
--- NEW FILE: update-with-timing.SF-2852928.XQUERY.py ---
import os, sys
try:
import subprocess
except ImportError:
# user private copy for old Python versions
import MonetDBtesting.subprocess26 as subprocess
def client(cmd, input = None):
clt = subprocess.Popen(cmd,
stdin = subprocess.PIPE,
stdout = subprocess.PIPE,
stderr = subprocess.PIPE,
universal_newlines = True)
out, err = clt.communicate(input)
sys.stdout.write(out)
sys.stderr.write(err)
hellodoc = r'''
<hello x="y" lang="en">
<foo>text of node foo<bar>text of node bar</bar></foo>
<!-- a comment node -->
<?pi action=beep?>
<world/>
<path>\asfda\asdfasf\asdf</path>
</hello>
'''
def main():
xq_client = os.getenv('XQUERY_CLIENT').split()
# HACK ALERT: create updatable document by appending ,10 to collection name
client(xq_client + ['--input=hello-SF.2852928.xml',
'--collection=hello-SF.2852928.xml,10'],
hellodoc)
sys.stdout.write('#~BeginVariableOutput~#\n')
client(xq_client + ['-t', '-s', 'do insert <a/> into
doc("hello-SF.2852928.xml")/hello'])
sys.stdout.write('#~EndVariableOutput~#\n')
client(xq_client + ['-s', 'doc("hello-SF.2852928.xml")'])
client(xq_client + ['-s', 'pf:del-doc("hello-SF.2852928.xml")'])
main()
------------------------------------------------------------------------------
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-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins