Have Python protoc plugin test run with other tests

pull/965/head
Masood Malekghassemi 10 years ago
parent 53f8fea5df
commit b2d4a8de95
  1. 64
      tools/run_tests/python_tests.json
  2. 2
      tools/run_tests/run_python.sh
  3. 11
      tools/run_tests/run_tests.py

@ -1,18 +1,50 @@
[
"grpc._adapter._blocking_invocation_inline_service_test",
"grpc._adapter._c_test",
"grpc._adapter._event_invocation_synchronous_event_service_test",
"grpc._adapter._future_invocation_asynchronous_event_service_test",
"grpc._adapter._links_test",
"grpc._adapter._lonely_rear_link_test",
"grpc._adapter._low_test",
"grpc.early_adopter.implementations_test",
"grpc.framework.assembly.implementations_test",
"grpc.framework.base.packets.implementations_test",
"grpc.framework.face.blocking_invocation_inline_service_test",
"grpc.framework.face.event_invocation_synchronous_event_service_test",
"grpc.framework.face.future_invocation_asynchronous_event_service_test",
"grpc.framework.foundation._later_test",
"grpc.framework.foundation._logging_pool_test"
{
"file": "test/compiler/python_plugin_test.py"
},
{
"module": "grpc._adapter._blocking_invocation_inline_service_test"
},
{
"module": "grpc._adapter._c_test"
},
{
"module": "grpc._adapter._event_invocation_synchronous_event_service_test"
},
{
"module": "grpc._adapter._future_invocation_asynchronous_event_service_test"
},
{
"module": "grpc._adapter._links_test"
},
{
"module": "grpc._adapter._lonely_rear_link_test"
},
{
"module": "grpc._adapter._low_test"
},
{
"module": "grpc.early_adopter.implementations_test"
},
{
"module": "grpc.framework.assembly.implementations_test"
},
{
"module": "grpc.framework.base.packets.implementations_test"
},
{
"module": "grpc.framework.face.blocking_invocation_inline_service_test"
},
{
"module": "grpc.framework.face.event_invocation_synchronous_event_service_test"
},
{
"module": "grpc.framework.face.future_invocation_asynchronous_event_service_test"
},
{
"module": "grpc.framework.foundation._later_test"
},
{
"module": "grpc.framework.foundation._logging_pool_test"
}
]

@ -36,4 +36,4 @@ cd $(dirname $0)/../..
root=`pwd`
export LD_LIBRARY_PATH=$root/libs/opt
source python2.7_virtual_environment/bin/activate
python2.7 -B -m $*
python2.7 -B $*

@ -170,11 +170,16 @@ class PythonLanguage(object):
self._tests = json.load(f)
def test_specs(self, config, travis):
return [config.job_spec(['tools/run_tests/run_python.sh', test], None)
for test in self._tests]
modules = [config.job_spec(['tools/run_tests/run_python.sh', '-m',
test['module']], None)
for test in self._tests if 'module' in test]
files = [config.job_spec(['tools/run_tests/run_python.sh',
test['file']], None)
for test in self._tests if 'file' in test]
return files + modules
def make_targets(self):
return ['static_c']
return ['static_c', 'grpc_python_plugin']
def build_steps(self):
return [['tools/run_tests/build_python.sh']]

Loading…
Cancel
Save