diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-04-12 19:39:53 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-04-12 19:39:53 +0000 |
commit | e9fb104368ac5aa34d0901b22af01e881237b094 (patch) | |
tree | 24becd70eac8666968a19475418047bf25ab6384 /cpp/test/FreezeScript/dbmap/run.py | |
parent | Switched to a single database file with multiple databases (diff) | |
download | ice-e9fb104368ac5aa34d0901b22af01e881237b094.tar.bz2 ice-e9fb104368ac5aa34d0901b22af01e881237b094.tar.xz ice-e9fb104368ac5aa34d0901b22af01e881237b094.zip |
facet fixes for FreezeScript
Diffstat (limited to 'cpp/test/FreezeScript/dbmap/run.py')
-rwxr-xr-x | cpp/test/FreezeScript/dbmap/run.py | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/cpp/test/FreezeScript/dbmap/run.py b/cpp/test/FreezeScript/dbmap/run.py index 1869f93273a..cfc160e777f 100755 --- a/cpp/test/FreezeScript/dbmap/run.py +++ b/cpp/test/FreezeScript/dbmap/run.py @@ -89,24 +89,39 @@ for oldfile in files: print "ok" -print "testing default transformations... ", +print "creating test database... ", sys.stdout.flush() makedb = os.path.join(directory, "makedb") + " " + directory os.system(makedb) +print "ok" + testold = os.path.join(directory, "TestOld.ice") testnew = os.path.join(directory, "TestNew.ice") initxml = os.path.join(directory, "init.xml") checkxml = os.path.join(directory, "check.xml") +print "initializing test database... ", +sys.stdout.flush() + command = transformdb + " --old " + testold + " --new " + testold + " -f " + initxml + " " + dbdir + " default.db " + init_dbdir os.system(command) +print "ok" + +print "executing default transformations... ", +sys.stdout.flush() + command = transformdb + " --old " + testold + " --new " + testnew + " --key int --value ::S " + init_dbdir + " default.db " + check_dbdir stdin, stdout, stderr = os.popen3(command) - stderr.readlines() + +print "ok" + +print "validating database... ", +sys.stdout.flush() + command = transformdb + " --old " + testnew + " --new " + testnew + " -f " + checkxml + " " + check_dbdir + " default.db " + tmp_dbdir os.system(command) |