diff options
author | Matthew Newhook <matthew@zeroc.com> | 2014-10-23 16:28:09 -0230 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2014-10-23 16:28:09 -0230 |
commit | f6bb0396e7d8fd12ed50f72ab9fc99436d418576 (patch) | |
tree | ee6ef1cb32f2523839f210eb9ec3b924b97d5998 /java/test/Freeze/fileLock/run.py | |
parent | Add Object.equals, and minor fix to HashMap.equals (diff) | |
download | ice-f6bb0396e7d8fd12ed50f72ab9fc99436d418576.tar.bz2 ice-f6bb0396e7d8fd12ed50f72ab9fc99436d418576.tar.xz ice-f6bb0396e7d8fd12ed50f72ab9fc99436d418576.zip |
More gradle changes.
Moved android stuff to its own package.
Moved java tests to src/main/java/test subdirectory.
Diffstat (limited to 'java/test/Freeze/fileLock/run.py')
-rwxr-xr-x | java/test/Freeze/fileLock/run.py | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/java/test/Freeze/fileLock/run.py b/java/test/Freeze/fileLock/run.py deleted file mode 100755 index 54fd6966dae..00000000000 --- a/java/test/Freeze/fileLock/run.py +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env python -# ********************************************************************** -# -# Copyright (c) 2003-2014 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 - -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 directory!") -sys.path.append(os.path.join(path[0], "scripts")) -import TestUtil - -dbdir = os.path.join(os.getcwd(), "db") -TestUtil.cleanDbDir(dbdir) - -sys.stdout.write("testing Freeze file lock... ") -sys.stdout.flush() - -client = os.path.join("test.Freeze.fileLock.Client") -clientFail = os.path.join("test.Freeze.fileLock.ClientFail") - -clientExe = TestUtil.startClient(client, "", None, None, False) -clientExe.expect('File lock acquired.\.*') - -clientFailExe = TestUtil.startClient(clientFail, "", None, None, False) -clientFailExe.expect('File lock not acquired.') -clientFailExe.wait() - -# send some output to client to terminate it. -clientExe.sendline('go') -clientExe.expect('File lock released.') -clientExe.wait() - -# The lock is gone try to acquire it again. -clientExe = TestUtil.startClient(client, "", None, None, False) -clientExe.expect('File lock acquired.\.*') -clientExe.sendline('go') -clientExe.expect('File lock released.') -clientExe.wait() -print("ok") |