diff options
Diffstat (limited to 'cpp/test/FreezeScript/evictor/run.py')
-rwxr-xr-x | cpp/test/FreezeScript/evictor/run.py | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/cpp/test/FreezeScript/evictor/run.py b/cpp/test/FreezeScript/evictor/run.py deleted file mode 100755 index 2a9cf557a3d..00000000000 --- a/cpp/test/FreezeScript/evictor/run.py +++ /dev/null @@ -1,73 +0,0 @@ -#!/usr/bin/env python -# ********************************************************************** -# -# Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved. -# -# This copy of Ice is licensed to you under the terms described in the -# ICE_LICENSE file included in this distribution. -# -# ********************************************************************** - -import os, sys, re, shutil - -path = [ ".", "..", "../..", "../../..", "../../../.." ] -head = os.path.dirname(sys.argv[0]) -if len(head) > 0: - path = [os.path.join(head, p) for p in path] -path = [os.path.abspath(p) for p in path if os.path.exists(os.path.join(p, "scripts", "TestUtil.py")) ] -if len(path) == 0: - raise RuntimeError("can't find toplevel os.getcwd()!") -sys.path.append(os.path.join(path[0], "scripts")) -import TestUtil - -transformdb = os.path.join(TestUtil.getCppBinDir(), "transformdb") - -if TestUtil.appverifier: - TestUtil.setAppVerifierSettings([transformdb]) - -dbdir = os.path.join(os.getcwd(), "db") -TestUtil.cleanDbDir(dbdir) - -check_dbdir = os.path.join(os.getcwd(), "db_check") -if os.path.exists(check_dbdir): - shutil.rmtree(check_dbdir) -os.mkdir(check_dbdir) - -tmp_dbdir = os.path.join(os.getcwd(), "db_tmp") -if os.path.exists(tmp_dbdir): - shutil.rmtree(tmp_dbdir) -os.mkdir(tmp_dbdir) - -sys.stdout.write("creating test database... ") -sys.stdout.flush() - -makedb = '"%s" "%s"' % (os.path.join(os.getcwd(), "makedb"), os.getcwd()) -proc = TestUtil.spawn(makedb) -proc.waitTestSuccess() -print("ok") - -testold = os.path.join(os.getcwd(), "TestOld.ice") -testnew = os.path.join(os.getcwd(), "TestNew.ice") -transformxml = os.path.join(os.getcwd(), "transform.xml") -checkxml = os.path.join(os.getcwd(), "check.xml") - -sys.stdout.write("executing evictor transformations... ") -sys.stdout.flush() - -command = '"' + transformdb + '" -e -p --old "' + testold + '" --new "' + testnew + '" -f "' + transformxml + '" "' + dbdir + \ - '" evictor.db "' + check_dbdir + '" ' -proc = TestUtil.spawn(command) -proc.waitTestSuccess() -print("ok") - -sys.stdout.write("validating database... ") -sys.stdout.flush() - -command = '"' + transformdb + '" -e --old "' + testnew + '" --new "' + testnew + '" -f "' + checkxml + '" "' + check_dbdir + \ - '" evictor.db "' + tmp_dbdir + '"' -proc = TestUtil.spawn(command) -proc.waitTestSuccess() -print("ok") - -if TestUtil.appverifier: - TestUtil.appVerifierAfterTestEnd([transformdb]) |