fix C++ distribtests

pull/10819/head
Jan Tattermusch 8 years ago
parent 7e0e18d21e
commit 1dd609b3c1
  1. 9
      test/distrib/cpp/run_distrib_test.sh
  2. 22
      tools/run_tests/artifacts/distribtest_targets.py

@ -30,13 +30,8 @@
set -ex set -ex
git clone $EXTERNAL_GIT_ROOT # change to grpc repo root
# clone gRPC submodules, use data from locally cloned submodules where possible cd $(dirname $0)/../../..
(cd ${EXTERNAL_GIT_ROOT} && git submodule foreach 'cd /var/local/git/grpc \
&& git submodule update --init --reference ${EXTERNAL_GIT_ROOT}/${name} \
${name}')
cd grpc
cd third_party/protobuf && ./autogen.sh && \ cd third_party/protobuf && ./autogen.sh && \
./configure && make -j4 && make check && make install && ldconfig ./configure && make -j4 && make check && make install && ldconfig

@ -38,11 +38,14 @@ import python_utils.jobset as jobset
def create_docker_jobspec(name, dockerfile_dir, shell_command, environ={}, def create_docker_jobspec(name, dockerfile_dir, shell_command, environ={},
flake_retries=0, timeout_retries=0): flake_retries=0, timeout_retries=0,
copy_rel_path=None):
"""Creates jobspec for a task running under docker.""" """Creates jobspec for a task running under docker."""
environ = environ.copy() environ = environ.copy()
environ['RUN_COMMAND'] = shell_command environ['RUN_COMMAND'] = shell_command
environ['RELATIVE_COPY_PATH'] = 'test/distrib' # the entire repo will be cloned if copy_rel_path is not set.
if copy_rel_path:
environ['RELATIVE_COPY_PATH'] = copy_rel_path
docker_args=[] docker_args=[]
for k,v in environ.items(): for k,v in environ.items():
@ -102,7 +105,8 @@ class CSharpDistribTest(object):
'tools/dockerfile/distribtest/csharp_%s_%s' % ( 'tools/dockerfile/distribtest/csharp_%s_%s' % (
self.docker_suffix, self.docker_suffix,
self.arch), self.arch),
'test/distrib/csharp/run_distrib_test%s.sh' % self.script_suffix) 'test/distrib/csharp/run_distrib_test%s.sh' % self.script_suffix,
copy_rel_path='test/distrib')
elif self.platform == 'macos': elif self.platform == 'macos':
return create_jobspec(self.name, return create_jobspec(self.name,
['test/distrib/csharp/run_distrib_test%s.sh' % self.script_suffix], ['test/distrib/csharp/run_distrib_test%s.sh' % self.script_suffix],
@ -151,7 +155,8 @@ class NodeDistribTest(object):
self.arch), self.arch),
'%s test/distrib/node/run_distrib_test.sh %s' % ( '%s test/distrib/node/run_distrib_test.sh %s' % (
linux32, linux32,
self.node_version)) self.node_version),
copy_rel_path='test/distrib')
elif self.platform == 'macos': elif self.platform == 'macos':
return create_jobspec(self.name, return create_jobspec(self.name,
['test/distrib/node/run_distrib_test.sh', ['test/distrib/node/run_distrib_test.sh',
@ -185,7 +190,8 @@ class PythonDistribTest(object):
'tools/dockerfile/distribtest/python_%s_%s' % ( 'tools/dockerfile/distribtest/python_%s_%s' % (
self.docker_suffix, self.docker_suffix,
self.arch), self.arch),
'test/distrib/python/run_distrib_test.sh') 'test/distrib/python/run_distrib_test.sh',
copy_rel_path='test/distrib')
def __str__(self): def __str__(self):
return self.name return self.name
@ -212,7 +218,8 @@ class RubyDistribTest(object):
'tools/dockerfile/distribtest/ruby_%s_%s' % ( 'tools/dockerfile/distribtest/ruby_%s_%s' % (
self.docker_suffix, self.docker_suffix,
self.arch), self.arch),
'test/distrib/ruby/run_distrib_test.sh') 'test/distrib/ruby/run_distrib_test.sh',
copy_rel_path='test/distrib')
def __str__(self): def __str__(self):
return self.name return self.name
@ -237,7 +244,8 @@ class PHPDistribTest(object):
'tools/dockerfile/distribtest/php_%s_%s' % ( 'tools/dockerfile/distribtest/php_%s_%s' % (
self.docker_suffix, self.docker_suffix,
self.arch), self.arch),
'test/distrib/php/run_distrib_test.sh') 'test/distrib/php/run_distrib_test.sh',
copy_rel_path='test/distrib')
elif self.platform == 'macos': elif self.platform == 'macos':
return create_jobspec(self.name, return create_jobspec(self.name,
['test/distrib/php/run_distrib_test.sh'], ['test/distrib/php/run_distrib_test.sh'],

Loading…
Cancel
Save