aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/run_tests.py
diff options
context:
space:
mode:
authorGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2015-06-01 23:40:18 -0700
committerGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2015-06-01 23:40:18 -0700
commit86686746f6b3fc095cdf94868b4d9d82a86275c8 (patch)
treee9a54f3f9afdd7f63230b2bf0399971916d9e719 /tools/run_tests/run_tests.py
parentcdfb24f4d96e9b47464d93d3a4857b7e8f2973ff (diff)
parentb00aa67b3cced0da0b52089bfdea8d455be99900 (diff)
Merge pull request #1860 from jtattermusch/csharp_runtest_windows
run_tests.py support for C# on windows
Diffstat (limited to 'tools/run_tests/run_tests.py')
-rwxr-xr-xtools/run_tests/run_tests.py20
1 files changed, 18 insertions, 2 deletions
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py
index b1cde27044..c00d7941f4 100755
--- a/tools/run_tests/run_tests.py
+++ b/tools/run_tests/run_tests.py
@@ -234,20 +234,36 @@ class RubyLanguage(object):
class CSharpLanguage(object):
+ def __init__(self):
+ if platform.system() == 'Windows':
+ plat = 'windows'
+ else:
+ plat = 'posix'
+ self.platform = plat
+
def test_specs(self, config, travis):
assemblies = ['Grpc.Core.Tests',
'Grpc.Examples.Tests',
'Grpc.IntegrationTesting']
- return [config.job_spec(['tools/run_tests/run_csharp.sh', assembly],
+ if self.platform == 'windows':
+ cmd = 'tools\\run_tests\\run_csharp.bat'
+ else:
+ cmd = 'tools/run_tests/run_csharp.sh'
+ return [config.job_spec([cmd, assembly],
None, shortname=assembly,
environ={'GRPC_TRACE': 'surface,batch'})
for assembly in assemblies ]
def make_targets(self):
+ # For Windows, this target doesn't really build anything,
+ # everything is build by buildall script later.
return ['grpc_csharp_ext']
def build_steps(self):
- return [['tools/run_tests/build_csharp.sh']]
+ if self.platform == 'windows':
+ return [['src\\csharp\\buildall.bat']]
+ else:
+ return [['tools/run_tests/build_csharp.sh']]
def supports_multi_config(self):
return False