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 /scripts/TestUtil.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 'scripts/TestUtil.py')
-rwxr-xr-x | scripts/TestUtil.py | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py index 39ab8665e34..7782cb610e8 100755 --- a/scripts/TestUtil.py +++ b/scripts/TestUtil.py @@ -1222,19 +1222,34 @@ def startColloc(exe, args, config=None, env=None): cmd = getCommandLine(exe, config) + ' ' + args return spawnClient(cmd, env = env, lang=config.lang) -def simpleTest(exe, options = ""): - exe = quoteArgument(exe) +def simpleTest(exe = None, options = ""): + if exe is None: + exe = getDefaultClientFile() if appverifier: - setAppVerifierSettings([exe]) + setAppVerifierSettings([quoteArgument(exe)]) + lang = getDefaultMapping() + config = None + if lang != "cpp": + config = DriverConfig("client") + config.lang = lang + print "starting client...", - command = exe + ' ' + options - client = spawnClient(command, startReader = False, lang=getDefaultMapping()) + command = exe + ' ' + options + if lang != "cpp": + command = getCommandLine(exe, config) + ' ' + options + client = spawnClient(command, startReader = False, lang = lang) print "ok" client.startReader() client.waitTestSuccess() if appverifier: appVerifierAfterTestEnd([exe]) + +def createConfig(path, lines): + config = open(path, "w") + for l in lines: + config.write("%s\n" % l) + config.close() def getCppBinDir(): binDir = os.path.join(getIceDir("cpp"), "bin") |