Update of /cvsroot/monetdb/pathfinder/tests/BugTracker/Tests
In directory
23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv16691/tests/BugTracker/Tests
Added Files:
stream-document.SF-2804823.XQUERY.py
Log Message:
propagated changes of Thursday Jun 11 2009 - Friday Jun 12 2009
from the May2009 branch to the development trunk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/06/11 - sjoerd:
tests/BugTracker/Tests/stream-document.SF-2804823.XQUERY.py,1.1.2.1
Test for bug 2804823.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- NEW FILE: stream-document.SF-2804823.XQUERY.py ---
import os, sys
try:
import sybprocess
except ImportError:
# user private copy for old Python versions
import MonetDBtesting.subprocess26 as subprocess
def client(cmd, input = None):
clt = subprocess.Popen(cmd,
shell = True,
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)
def main():
xq_client = os.getenv('XQUERY_CLIENT')
client('%s --input=my-document --collection=my-collection' % xq_client,
'<document>test document</document>')
client('%s -s "pf:documents()"' % xq_client)
client('%s -s "pf:del-doc(\'my-document\')"' % xq_client)
main()
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins