summaryrefslogtreecommitdiff
path: root/cpp/test/FreezeScript/evictor/run.py
diff options
context:
space:
mode:
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)