diff options
author | Jose <jose@zeroc.com> | 2019-03-01 19:35:05 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-03-01 19:35:05 +0100 |
commit | b6a2c82579403755fa30b48c6140edeef6d61a9f (patch) | |
tree | 7c9300fbd7fb1335dee32dd57552b18770aafaec /scripts/Util.py | |
parent | Add linter to generated test projects (diff) | |
download | ice-b6a2c82579403755fa30b48c6140edeef6d61a9f.tar.bz2 ice-b6a2c82579403755fa30b48c6140edeef6d61a9f.tar.xz ice-b6a2c82579403755fa30b48c6140edeef6d61a9f.zip |
Test fixes
Diffstat (limited to 'scripts/Util.py')
-rw-r--r-- | scripts/Util.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/Util.py b/scripts/Util.py index b98810e8bcc..c103a322811 100644 --- a/scripts/Util.py +++ b/scripts/Util.py @@ -3783,6 +3783,27 @@ class TypeScriptMapping(JavaScriptMixin,Mapping): def _getDefaultSource(self, processType): return { "client" : "Client.ts", "serveramd" : "ServerAMD.ts", "server" : "Server.ts" }[processType] +class SwiftMapping(Mapping): + + def getCommandLine(self, current, process, exe, args): + testdir = self.component.getTestDir(self) + assert(current.testcase.getPath(current).startswith(testdir)) + package = current.testcase.getPath(current)[len(testdir) + 1:].replace(os.sep, ".") + return "{0}/swift/build/Products/{1}/TestDriver.app/Contents/MacOS/TestDriver {2}.{3} {4}".format( + toplevel, + current.config.buildConfig, + package, + exe, + args) + + def _getDefaultSource(self, processType): + return { + "client" : "Client.swift", + "server" : "Server.swift", + "serveramd" : "AMDServer.swift", + "collocated" : "Collocated.swift", + }[processType] + # # Instantiate platform global variable # |