summaryrefslogtreecommitdiff
path: root/cpp/test/FreezeScript/evictor/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/evictor/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/evictor/run.py')
-rwxr-xr-xcpp/test/FreezeScript/evictor/run.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/cpp/test/FreezeScript/evictor/run.py b/cpp/test/FreezeScript/evictor/run.py
index f48196c45b5..6fa0fac5159 100755
--- a/cpp/test/FreezeScript/evictor/run.py
+++ b/cpp/test/FreezeScript/evictor/run.py
@@ -41,21 +41,31 @@ if os.path.exists(tmp_dbdir):
shutil.rmtree(tmp_dbdir)
os.mkdir(tmp_dbdir)
-print "testing evictor 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")
transformxml = os.path.join(directory, "transform.xml")
checkxml = os.path.join(directory, "check.xml")
+print "executing evictor transformations... ",
+sys.stdout.flush()
+
command = transformdb + " -p --old " + testold + " --new " + testnew + " -f " + transformxml + " " + dbdir + " evictor.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 + " evictor.db " + tmp_dbdir
os.system(command)