diff options
author | Benoit Foucher <benoit@zeroc.com> | 2017-04-04 17:20:19 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2017-04-04 17:20:19 +0200 |
commit | 881d88cc1d00be3c99f5243f523a306072315c71 (patch) | |
tree | 1614dc12a7a8c022f1a7b471078437ce096e4f77 /scripts/Util.py | |
parent | Update default Windows Python version to 3.6 (diff) | |
download | ice-881d88cc1d00be3c99f5243f523a306072315c71.tar.bz2 ice-881d88cc1d00be3c99f5243f523a306072315c71.tar.xz ice-881d88cc1d00be3c99f5243f523a306072315c71.zip |
Added CHANGELOG entry for marshaled-result
Diffstat (limited to 'scripts/Util.py')
-rw-r--r-- | scripts/Util.py | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/scripts/Util.py b/scripts/Util.py index 2f3152f095f..6ef6c2b7c7f 100644 --- a/scripts/Util.py +++ b/scripts/Util.py @@ -954,6 +954,20 @@ class Process(Runnable): return str(self.__class__) return self.exe + (" ({0})".format(self.desc) if self.desc else "") + def setup(self, current): + if current.driver.appverifier: + exe = process.getCommandLine(current) + run("appverif --enable * -for " + exe) + run("appverif -disable LuaPriv PrintDriver PrintApi Networking HighVersionLie -for " + exe) + + def teardown(self, current, success): + if current.driver.appverifier: + exe = process.getCommandLine(current) + log = os.path.join(current.testcase.getPath(), os.path.basename(exe) + "_appverif.xml") + run("appverif -export log -for " + exe + " -with To=" + log) + run("appverif -delete logs -for " + exe) + run("appverif -delete settings -for " + exe) + def getOutput(self, current, encoding="utf-8"): assert(self in current.processes) @@ -1712,6 +1726,7 @@ class LocalProcessController(ProcessController): if current.driver.valgrind: cmd += "valgrind -q --child-silent-after-fork=yes --leak-check=full --suppressions=\"{0}\" ".format( os.path.join(toplevel, "config", "valgrind.sup")) + cmd += (process.getCommandLine(current) + (" " + " ".join(args) if len(args) > 0 else "")).format(**kargs) if current.driver.debug: if len(envs) > 0: @@ -2246,7 +2261,7 @@ class Driver: @classmethod def getSupportedArgs(self): return ("dlrR", ["debug", "driver=", "filter=", "rfilter=", "host=", "host-ipv6=", "host-bt=", "interface=", - "controller-app", "valgrind"]) + "controller-app", "valgrind", "appverifier"]) @classmethod def usage(self): @@ -2265,6 +2280,8 @@ class Driver: print("--host-bt=<addr> The Bluetooth address to use for Ice.Default.Host.") print("--interface=<IP> The multicast interface to use to discover controllers.") print("--controller-app Start the process controller application.") + print("--valgrind Start executables with valgrind.") + print("--appverifier Start executables with Application Verifier.") def __init__(self, options): self.debug = False @@ -2275,6 +2292,7 @@ class Driver: self.hostBT = "" self.controllerApp = False self.valgrind = False + self.appverifier = False self.failures = [] parseOptions(self, options, { "d": "debug", |