diff options
author | Jose <jose@zeroc.com> | 2011-04-12 19:35:15 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2011-04-12 19:35:15 +0200 |
commit | 8ad1861d2f5753883eed83842b56440068ba42ed (patch) | |
tree | 86af7653703b5b5ea14f3b07d3f7090ad9b66552 /java/test/Ice/properties/run.py | |
parent | Added missing .gitignore (diff) | |
download | ice-8ad1861d2f5753883eed83842b56440068ba42ed.tar.bz2 ice-8ad1861d2f5753883eed83842b56440068ba42ed.tar.xz ice-8ad1861d2f5753883eed83842b56440068ba42ed.zip |
5009 - appName incosistence
Also improve properties test
Diffstat (limited to 'java/test/Ice/properties/run.py')
-rwxr-xr-x | java/test/Ice/properties/run.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/java/test/Ice/properties/run.py b/java/test/Ice/properties/run.py new file mode 100755 index 00000000000..293cbc98b3d --- /dev/null +++ b/java/test/Ice/properties/run.py @@ -0,0 +1,39 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# ********************************************************************** +# +# Copyright (c) 2003-2010 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 "can't find toplevel directory!" +sys.path.append(os.path.join(path[0])) +from scripts import * + +# +# Write config +# +configPath = u"./config/中国_client.config" + +TestUtil.createConfig(configPath, + ["# Automatically generated by Ice test driver.", + "Ice.Trace.Protocol=1", + "Ice.Trace.Network=1", + "Ice.ProgramName=PropertiesClient", + "Config.Path=./config/中国_client.config"]) + +TestUtil.simpleTest() + +if os.path.exists(configPath): + os.remove(configPath)
\ No newline at end of file |