Update of /cvsroot/monetdb/pathfinder/tests/BugDay_2005-12-19_0.9.3/Tests
In directory
sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27922/pathfinder/tests/BugDay_2005-12-19_0.9.3/Tests
Added Files:
file_locked_after_shredding.SF-1238352.MIL.py
Removed Files:
file_locked_after_shredding.SF-1238352.MAPI.py
Log Message:
- To prepare for (arbitrary-)executable tests that expect a MAL server to be
started by Mtest.py,
we rename the (arbitrary-)executable tests that expect a MIL server to be
started by Mtest.py
from
<tst>.MAPI(|.(bat|cmd|exe|com|py))
to
<tst>.MIL(|.(bat|cmd|exe|com|py))
- To avoid naming-conflicts between (arbitrary-)executable (Unix-) tests
<tst>.(MIL|MAL|SQL)
and "normal" MIL/MAL/SQL tests
<tst>.(mil|mal|sql)
on case-insensitive file systems,
we now require an explicite ".sh" extension for the former, i.e.,
<tst>.(MIL|MAL|SQL|XQUERY).sh
which also better aligns them with there Windows pendants
<tst>.(MIL|MAL|SQL|XQUERY).bat
To limit the required renaming-orgie, we still allow
(arbitrary) executable tests that do not require any server
to be named only by there name (on Unix), and keep the ".sh"
extension optional in these cases:
Windows: <tst>.(bat|cmd|exe|com)
Unix: <tst>[.sh]
--- NEW FILE: file_locked_after_shredding.SF-1238352.MIL.py ---
import os
def main():
# create a temporary document
fn = os.path.join(os.getenv('TSTTRGBASE'), 'testdoc.xml')
f = open(fn,'w')
f.write('<testdoc><content/></testdoc>\n')
f.close()
# shred it
p = os.popen(os.getenv('MAPI_CLIENT'), 'w')
p.write('module("pathfinder");\n')
p.write('shred_doc("%s", "testdoc.xml");\n' % fn.replace('\\', r'\\'))
p.close()
# Here's the real test: try unlinking the source document while
# the server is still running. If the unlink fails, we get a
# traceback which should be caught by Mtest
os.unlink(fn)
main()
--- file_locked_after_shredding.SF-1238352.MAPI.py DELETED ---
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins