summaryrefslogtreecommitdiff
path: root/cpp/test/FreezeScript/dbmap/run.py
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2004-04-12 19:39:53 +0000
committerMark Spruiell <mes@zeroc.com>2004-04-12 19:39:53 +0000
commite9fb104368ac5aa34d0901b22af01e881237b094 (patch)
tree24becd70eac8666968a19475418047bf25ab6384 /cpp/test/FreezeScript/dbmap/run.py
parentSwitched to a single database file with multiple databases (diff)
downloadice-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-xcpp/test/FreezeScript/dbmap/run.py19
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)