Merge pull request #102 from ctiller/testrun

Generate tests to run from build.json, not by globbing the binaries directory
pull/107/head
Nicolas Noble 10 years ago
commit cdc82fec66
  1. 108
      build.json
  2. 44
      templates/Makefile.template
  3. 9
      templates/tools/run_tests/tests.json.template
  4. 2
      templates/vsprojects/vs2013/grpc.sln.template
  5. 4
      test/core/end2end/gen_build_json.py
  6. 2
      tools/buildgen/generate_projects.sh
  7. 13
      tools/run_tests/run_tests.py
  8. 805
      tools/run_tests/tests.json

@ -186,6 +186,7 @@
"build": "all",
"secure": false,
"vs_project_guid": "{B23D3D1A-9438-4EDA-BEB6-9A0A03D17792}",
"language": "c",
"src": [
"src/core/support/alloc.c",
"src/core/support/cancellable.c",
@ -253,6 +254,7 @@
"secure": true,
"vs_project_guid": "{29D16885-7228-4C31-81ED-5F9187C7F2A9}",
"baselib": true,
"language": "c",
"filegroups": [
"grpc_base"
],
@ -297,6 +299,7 @@
"secure": false,
"vs_project_guid": "{46CEDFFF-9692-456A-AA24-38B5D6BCF4C5}",
"baselib": true,
"language": "c",
"filegroups": [
"grpc_base"
],
@ -307,6 +310,7 @@
{
"name": "gpr_test_util",
"build": "private",
"language": "c",
"vs_project_guid": "{EAB0A629-17A9-44DB-B5FF-E91A721FE037}",
"src": [
"test/core/util/test_config.c"
@ -316,6 +320,7 @@
"name": "grpc_test_util",
"build": "private",
"vs_project_guid": "{17BCAFC0-5FDC-4C94-AEB9-95F3E220614B}",
"language": "c",
"src": [
"test/core/end2end/cq_verifier.c",
"test/core/end2end/data/test_root_cert.c",
@ -334,7 +339,7 @@
{
"name": "grpc++",
"build": "all",
"c++": true,
"language": "c++",
"secure": true,
"vs_project_guid": "{C187A093-A0FE-489D-A40A-6E33DE0F9FEB}",
"src": [
@ -395,6 +400,7 @@
{
"name": "grpc++_test_util",
"build": "private",
"language": "c",
"src": [
"test/cpp/util/messages.proto",
"test/cpp/util/echo.proto",
@ -402,7 +408,7 @@
"test/cpp/util/create_test_channel.cc",
"test/cpp/end2end/async_test_server.cc"
],
"c++": true
"language": "c++"
}
],
"targets": [
@ -416,13 +422,14 @@
"grpc_test_util",
"gpr",
"grpc"
]
],
"language": "c"
},
{
"name": "cpp_plugin",
"build": "protoc",
"c++": true,
"language": "c++",
"secure": false,
"src": [
"src/compiler/cpp_plugin.cc",
@ -437,7 +444,7 @@
{
"name": "ruby_plugin",
"build": "protoc",
"c++": true,
"language": "c++",
"secure": false,
"src": [
"src/compiler/ruby_plugin.cc",
@ -454,6 +461,7 @@
{
"name": "grpc_byte_buffer_reader_test",
"build": "test",
"language": "c",
"src": [
"test/core/surface/byte_buffer_reader_test.c"
],
@ -467,6 +475,7 @@
{
"name": "gpr_cancellable_test",
"build": "test",
"language": "c",
"src": [
"test/core/support/cancellable_test.c"
],
@ -478,6 +487,7 @@
{
"name": "gpr_log_test",
"build": "test",
"language": "c",
"src": [
"test/core/support/log_test.c"
],
@ -489,6 +499,7 @@
{
"name": "gpr_useful_test",
"build": "test",
"language": "c",
"src": [
"test/core/support/useful_test.c"
],
@ -500,6 +511,7 @@
{
"name": "gpr_cmdline_test",
"build": "test",
"language": "c",
"src": [
"test/core/support/cmdline_test.c"
],
@ -511,6 +523,7 @@
{
"name": "gpr_histogram_test",
"build": "test",
"language": "c",
"src": [
"test/core/support/histogram_test.c"
],
@ -522,6 +535,7 @@
{
"name": "gpr_host_port_test",
"build": "test",
"language": "c",
"src": [
"test/core/support/host_port_test.c"
],
@ -533,6 +547,7 @@
{
"name": "gpr_slice_buffer_test",
"build": "test",
"language": "c",
"src": [
"test/core/support/slice_buffer_test.c"
],
@ -544,6 +559,7 @@
{
"name": "gpr_slice_test",
"build": "test",
"language": "c",
"src": [
"test/core/support/slice_test.c"
],
@ -555,6 +571,7 @@
{
"name": "gpr_string_test",
"build": "test",
"language": "c",
"src": [
"test/core/support/string_test.c"
],
@ -566,6 +583,7 @@
{
"name": "gpr_sync_test",
"build": "test",
"language": "c",
"src": [
"test/core/support/sync_test.c"
],
@ -577,6 +595,7 @@
{
"name": "gpr_thd_test",
"build": "test",
"language": "c",
"src": [
"test/core/support/thd_test.c"
],
@ -588,6 +607,7 @@
{
"name": "gpr_time_test",
"build": "test",
"language": "c",
"src": [
"test/core/support/time_test.c"
],
@ -599,6 +619,7 @@
{
"name": "murmur_hash_test",
"build": "test",
"language": "c",
"src": [
"test/core/support/murmur_hash_test.c"
],
@ -610,6 +631,7 @@
{
"name": "grpc_stream_op_test",
"build": "test",
"language": "c",
"src": [
"test/core/transport/stream_op_test.c"
],
@ -623,6 +645,7 @@
{
"name": "alpn_test",
"build": "test",
"language": "c",
"src": [
"test/core/transport/chttp2/alpn_test.c"
],
@ -636,6 +659,7 @@
{
"name": "time_averaged_stats_test",
"build": "test",
"language": "c",
"src": [
"test/core/iomgr/time_averaged_stats_test.c"
],
@ -649,6 +673,7 @@
{
"name": "chttp2_stream_encoder_test",
"build": "test",
"language": "c",
"src": [
"test/core/transport/chttp2/stream_encoder_test.c"
],
@ -662,6 +687,7 @@
{
"name": "hpack_table_test",
"build": "test",
"language": "c",
"src": [
"test/core/transport/chttp2/hpack_table_test.c"
],
@ -675,6 +701,7 @@
{
"name": "chttp2_stream_map_test",
"build": "test",
"language": "c",
"src": [
"test/core/transport/chttp2/stream_map_test.c"
],
@ -688,6 +715,7 @@
{
"name": "hpack_parser_test",
"build": "test",
"language": "c",
"src": [
"test/core/transport/chttp2/hpack_parser_test.c"
],
@ -701,6 +729,7 @@
{
"name": "transport_metadata_test",
"build": "test",
"language": "c",
"src": [
"test/core/transport/metadata_test.c"
],
@ -714,6 +743,7 @@
{
"name": "chttp2_status_conversion_test",
"build": "test",
"language": "c",
"src": [
"test/core/transport/chttp2/status_conversion_test.c"
],
@ -727,6 +757,7 @@
{
"name": "chttp2_transport_end2end_test",
"build": "test",
"language": "c",
"src": [
"test/core/transport/chttp2_transport_end2end_test.c"
],
@ -740,6 +771,7 @@
{
"name": "tcp_posix_test",
"build": "test",
"language": "c",
"src": [
"test/core/iomgr/tcp_posix_test.c"
],
@ -753,6 +785,7 @@
{
"name": "dualstack_socket_test",
"build": "test",
"language": "c",
"src": [
"test/core/end2end/dualstack_socket_test.c"
],
@ -766,6 +799,7 @@
{
"name": "no_server_test",
"build": "test",
"language": "c",
"src": [
"test/core/end2end/no_server_test.c"
],
@ -779,6 +813,7 @@
{
"name": "resolve_address_test",
"build": "test",
"language": "c",
"src": [
"test/core/iomgr/resolve_address_test.c"
],
@ -792,6 +827,7 @@
{
"name": "sockaddr_utils_test",
"build": "test",
"language": "c",
"src": [
"test/core/iomgr/sockaddr_utils_test.c"
],
@ -805,6 +841,7 @@
{
"name": "tcp_server_posix_test",
"build": "test",
"language": "c",
"src": [
"test/core/iomgr/tcp_server_posix_test.c"
],
@ -818,6 +855,7 @@
{
"name": "tcp_client_posix_test",
"build": "test",
"language": "c",
"src": [
"test/core/iomgr/tcp_client_posix_test.c"
],
@ -831,6 +869,7 @@
{
"name": "grpc_channel_stack_test",
"build": "test",
"language": "c",
"src": [
"test/core/channel/channel_stack_test.c"
],
@ -844,6 +883,7 @@
{
"name": "metadata_buffer_test",
"build": "test",
"language": "c",
"src": [
"test/core/channel/metadata_buffer_test.c"
],
@ -857,6 +897,7 @@
{
"name": "grpc_completion_queue_test",
"build": "test",
"language": "c",
"src": [
"test/core/surface/completion_queue_test.c"
],
@ -870,6 +911,7 @@
{
"name": "grpc_completion_queue_benchmark",
"build": "benchmark",
"language": "c",
"src": [
"test/core/surface/completion_queue_benchmark.c"
],
@ -883,6 +925,7 @@
{
"name": "census_trace_store_test",
"build": "executable",
"language": "c",
"src": [
"test/core/statistics/trace_test.c"
],
@ -896,6 +939,7 @@
{
"name": "census_stats_store_test",
"build": "executable",
"language": "c",
"src": [
"test/core/statistics/rpc_stats_test.c"
],
@ -909,6 +953,7 @@
{
"name": "census_window_stats_test",
"build": "test",
"language": "c",
"src": [
"test/core/statistics/window_stats_test.c"
],
@ -922,6 +967,7 @@
{
"name": "census_statistics_quick_test",
"build": "test",
"language": "c",
"src": [
"test/core/statistics/quick_test.c"
],
@ -935,6 +981,7 @@
{
"name": "census_statistics_small_log_test",
"build": "test",
"language": "c",
"src": [
"test/core/statistics/small_log_test.c"
],
@ -948,6 +995,7 @@
{
"name": "census_statistics_performance_test",
"build": "test",
"language": "c",
"src": [
"test/core/statistics/performance_test.c"
],
@ -961,6 +1009,7 @@
{
"name": "census_statistics_multiple_writers_test",
"build": "test",
"language": "c",
"src": [
"test/core/statistics/multiple_writers_test.c"
],
@ -974,6 +1023,7 @@
{
"name": "census_statistics_multiple_writers_circular_buffer_test",
"build": "test",
"language": "c",
"src": [
"test/core/statistics/multiple_writers_circular_buffer_test.c"
],
@ -987,6 +1037,7 @@
{
"name": "census_stub_test",
"build": "test",
"language": "c",
"src": [
"test/core/statistics/census_stub_test.c"
],
@ -1000,6 +1051,7 @@
{
"name": "census_hash_table_test",
"build": "test",
"language": "c",
"src": [
"test/core/statistics/hash_table_test.c"
],
@ -1013,6 +1065,7 @@
{
"name": "fling_server",
"build": "test",
"language": "c",
"run": false,
"src": [
"test/core/fling/server.c"
@ -1027,6 +1080,7 @@
{
"name": "fling_client",
"build": "test",
"language": "c",
"run": false,
"src": [
"test/core/fling/client.c"
@ -1040,6 +1094,7 @@
},
{
"name": "fling_test",
"language": "c",
"build": "test",
"src": [
"test/core/fling/fling_test.c"
@ -1053,6 +1108,7 @@
},
{
"name": "echo_server",
"language": "c",
"build": "test",
"run": false,
"src": [
@ -1067,6 +1123,7 @@
},
{
"name": "echo_client",
"language": "c",
"build": "test",
"run": false,
"src": [
@ -1082,6 +1139,7 @@
{
"name": "echo_test",
"build": "test",
"language": "c",
"src": [
"test/core/echo/echo_test.c"
],
@ -1095,6 +1153,7 @@
{
"name": "low_level_ping_pong_benchmark",
"build": "benchmark",
"language": "c",
"src": [
"test/core/network_benchmarks/low_level_ping_pong.c"
],
@ -1108,6 +1167,7 @@
{
"name": "message_compress_test",
"build": "test",
"language": "c",
"src": [
"test/core/compression/message_compress_test.c"
],
@ -1121,6 +1181,7 @@
{
"name": "bin_encoder_test",
"build": "test",
"language": "c",
"src": [
"test/core/transport/chttp2/bin_encoder_test.c"
],
@ -1134,6 +1195,7 @@
{
"name": "secure_endpoint_test",
"build": "test",
"language": "c",
"src": [
"test/core/security/secure_endpoint_test.c"
],
@ -1147,6 +1209,7 @@
{
"name": "httpcli_format_request_test",
"build": "test",
"language": "c",
"src": [
"test/core/httpcli/format_request_test.c"
],
@ -1160,6 +1223,7 @@
{
"name": "httpcli_parser_test",
"build": "test",
"language": "c",
"src": [
"test/core/httpcli/parser_test.c"
],
@ -1173,6 +1237,7 @@
{
"name": "httpcli_test",
"build": "test",
"language": "c",
"src": [
"test/core/httpcli/httpcli_test.c"
],
@ -1186,6 +1251,7 @@
{
"name": "grpc_credentials_test",
"build": "test",
"language": "c",
"src": [
"test/core/security/credentials_test.c"
],
@ -1199,6 +1265,7 @@
{
"name": "grpc_fetch_oauth2",
"build": "tool",
"language": "c",
"src": [
"test/core/security/fetch_oauth2.c"
],
@ -1212,6 +1279,7 @@
{
"name": "grpc_base64_test",
"build": "test",
"language": "c",
"src": [
"test/core/security/base64_test.c"
],
@ -1225,6 +1293,7 @@
{
"name": "grpc_json_token_test",
"build": "test",
"language": "c",
"src": [
"test/core/security/json_token_test.c"
],
@ -1238,6 +1307,7 @@
{
"name": "timeout_encoding_test",
"build": "test",
"language": "c",
"src": [
"test/core/transport/chttp2/timeout_encoding_test.c"
],
@ -1251,6 +1321,7 @@
{
"name": "fd_posix_test",
"build": "test",
"language": "c",
"src": [
"test/core/iomgr/fd_posix_test.c"
],
@ -1264,6 +1335,7 @@
{
"name": "fling_stream_test",
"build": "test",
"language": "c",
"src": [
"test/core/fling/fling_stream_test.c"
],
@ -1277,6 +1349,7 @@
{
"name": "lame_client_test",
"build": "test",
"language": "c",
"src": [
"test/core/surface/lame_client_test.c"
],
@ -1290,7 +1363,7 @@
{
"name": "thread_pool_test",
"build": "test",
"c++": true,
"language": "c++",
"src": [
"test/cpp/server/thread_pool_test.cc"
],
@ -1305,7 +1378,7 @@
{
"name": "status_test",
"build": "test",
"c++": true,
"language": "c++",
"src": [
"test/cpp/util/status_test.cc"
],
@ -1320,7 +1393,7 @@
{
"name": "sync_client_async_server_test",
"build": "test",
"c++": true,
"language": "c++",
"src": [
"test/cpp/end2end/sync_client_async_server_test.cc"
],
@ -1336,7 +1409,7 @@
{
"name": "qps_client",
"build": "test",
"c++": true,
"language": "c++",
"src": [
"test/cpp/qps/qpstest.proto",
"test/cpp/qps/client.cc"
@ -1353,7 +1426,7 @@
{
"name": "qps_server",
"build": "test",
"c++": true,
"language": "c++",
"src": [
"test/cpp/qps/qpstest.proto",
"test/cpp/qps/server.cc"
@ -1371,7 +1444,7 @@
"name": "interop_server",
"build": "test",
"run": false,
"c++": true,
"language": "c++",
"src": [
"test/cpp/interop/empty.proto",
"test/cpp/interop/messages.proto",
@ -1391,7 +1464,7 @@
"name": "interop_client",
"build": "test",
"run": false,
"c++": true,
"language": "c++",
"src": [
"test/cpp/interop/empty.proto",
"test/cpp/interop/messages.proto",
@ -1410,7 +1483,7 @@
{
"name": "end2end_test",
"build": "test",
"c++": true,
"language": "c++",
"src": [
"test/cpp/end2end/end2end_test.cc"
],
@ -1426,7 +1499,7 @@
{
"name": "channel_arguments_test",
"build": "test",
"c++": true,
"language": "c++",
"src": [
"test/cpp/client/channel_arguments_test.cc"
],
@ -1439,7 +1512,7 @@
{
"name": "credentials_test",
"build": "test",
"c++": true,
"language": "c++",
"src": [
"test/cpp/client/credentials_test.cc"
],
@ -1452,6 +1525,7 @@
{
"name": "alarm_test",
"build": "test",
"language": "c",
"src": [
"test/core/iomgr/alarm_test.c"
],
@ -1465,6 +1539,7 @@
{
"name": "alarm_list_test",
"build": "test",
"language": "c",
"src": [
"test/core/iomgr/alarm_list_test.c"
],
@ -1478,6 +1553,7 @@
{
"name": "alarm_heap_test",
"build": "test",
"language": "c",
"src": [
"test/core/iomgr/alarm_heap_test.c"
],
@ -1491,6 +1567,7 @@
{
"name": "time_test",
"build": "test",
"language": "c",
"src": [
"test/core/support/time_test.c"
],
@ -1504,6 +1581,7 @@
{
"name": "poll_kick_test",
"build": "test",
"language": "c",
"src": [
"test/core/iomgr/poll_kick_test.c"
],

@ -351,7 +351,7 @@ static: static_c static_cxx
static_c: \
% for lib in libs:
% if lib.build == 'all' and not lib.get('c++', False):
% if lib.build == 'all' and lib.language == 'c':
libs/$(CONFIG)/lib${lib.name}.a\
% endif
% endfor
@ -359,7 +359,7 @@ static_c: \
static_cxx: \
% for lib in libs:
% if lib.build == 'all' and lib.get('c++', False):
% if lib.build == 'all' and lib.language == 'c++':
libs/$(CONFIG)/lib${lib.name}.a\
% endif
% endfor
@ -369,7 +369,7 @@ shared: shared_c shared_cxx
shared_c: \
% for lib in libs:
% if lib.build == 'all' and not lib.get('c++', False):
% if lib.build == 'all' and lib.language == 'c':
libs/$(CONFIG)/lib${lib.name}.$(SHARED_EXT)\
% endif
% endfor
@ -377,7 +377,7 @@ shared_c: \
shared_cxx: \
% for lib in libs:
% if lib.build == 'all' and lib.get('c++', False):
% if lib.build == 'all' and lib.language == 'c++':
libs/$(CONFIG)/lib${lib.name}.$(SHARED_EXT)\
% endif
% endfor
@ -387,7 +387,7 @@ privatelibs: privatelibs_c privatelibs_cxx
privatelibs_c: \
% for lib in libs:
% if lib.build == 'private' and not lib.get('c++', False):
% if lib.build == 'private' and lib.language == 'c':
libs/$(CONFIG)/lib${lib.name}.a\
% endif
% endfor
@ -395,7 +395,7 @@ privatelibs_c: \
privatelibs_cxx: \
% for lib in libs:
% if lib.build == 'private' and lib.get('c++', False):
% if lib.build == 'private' and lib.language == 'c++':
libs/$(CONFIG)/lib${lib.name}.a\
% endif
% endfor
@ -405,7 +405,7 @@ buildtests: buildtests_c buildtests_cxx
buildtests_c: privatelibs_c\
% for tgt in targets:
% if tgt.build == 'test' and not tgt.get('c++', False):
% if tgt.build == 'test' and not tgt.language == 'c++':
bins/$(CONFIG)/${tgt.name}\
% endif
% endfor
@ -413,7 +413,7 @@ buildtests_c: privatelibs_c\
buildtests_cxx: privatelibs_cxx\
% for tgt in targets:
% if tgt.build == 'test' and tgt.get('c++', False):
% if tgt.build == 'test' and tgt.language == 'c++':
bins/$(CONFIG)/${tgt.name}\
% endif
% endfor
@ -423,7 +423,7 @@ test: test_c test_cxx
test_c: buildtests_c
% for tgt in targets:
% if tgt.build == 'test' and tgt.get('run', True) and not tgt.get('c++', False):
% if tgt.build == 'test' and tgt.get('run', True) and not tgt.language == 'c++':
$(E) "[RUN] Testing ${tgt.name}"
$(Q) ./bins/$(CONFIG)/${tgt.name} || ( echo test ${tgt.name} failed ; exit 1 )
% endif
@ -432,7 +432,7 @@ test_c: buildtests_c
test_cxx: buildtests_cxx
% for tgt in targets:
% if tgt.build == 'test' and tgt.get('run', True) and tgt.get('c++', False):
% if tgt.build == 'test' and tgt.get('run', True) and tgt.language == 'c++':
$(E) "[RUN] Testing ${tgt.name}"
$(Q) ./bins/$(CONFIG)/${tgt.name} || ( echo test ${tgt.name} failed ; exit 1 )
% endif
@ -470,7 +470,7 @@ strip-shared: strip-shared_c strip-shared_cxx
strip-static_c: static_c
% for lib in libs:
% if not lib.get("c++", False):
% if lib.language == "c":
% if lib.build == "all":
$(E) "[STRIP] Stripping lib${lib.name}.a"
$(Q) $(STRIP) libs/$(CONFIG)/lib${lib.name}.a
@ -480,7 +480,7 @@ strip-static_c: static_c
strip-static_cxx: static_cxx
% for lib in libs:
% if lib.get("c++", False):
% if lib.language == "c++":
% if lib.build == "all":
$(E) "[STRIP] Stripping lib${lib.name}.a"
$(Q) $(STRIP) libs/$(CONFIG)/lib${lib.name}.a
@ -490,7 +490,7 @@ strip-static_cxx: static_cxx
strip-shared_c: shared_c
% for lib in libs:
% if not lib.get("c++", False):
% if lib.language == "c":
% if lib.build == "all":
$(E) "[STRIP] Stripping lib${lib.name}.so"
$(Q) $(STRIP) libs/$(CONFIG)/lib${lib.name}.$(SHARED_EXT)
@ -500,7 +500,7 @@ strip-shared_c: shared_c
strip-shared_cxx: shared_cxx
% for lib in libs:
% if lib.get("c++", False):
% if lib.language == "c++":
% if lib.build == "all":
$(E) "[STRIP] Stripping lib${lib.name}.so"
$(Q) $(STRIP) libs/$(CONFIG)/lib${lib.name}.$(SHARED_EXT)
@ -557,7 +557,7 @@ install-static: install-static_c install-static_cxx
install-static_c: static_c strip-static_c
% for lib in libs:
% if not lib.get("c++", False):
% if lib.language == "c":
% if lib.build == "all":
$(E) "[INSTALL] Installing lib${lib.name}.a"
$(Q) $(INSTALL) libs/$(CONFIG)/lib${lib.name}.a $(prefix)/lib/lib${lib.name}.a
@ -567,7 +567,7 @@ install-static_c: static_c strip-static_c
install-static_cxx: static_cxx strip-static_cxx
% for lib in libs:
% if lib.get("c++", False):
% if lib.language == "c++":
% if lib.build == "all":
$(E) "[INSTALL] Installing lib${lib.name}.a"
$(Q) $(INSTALL) libs/$(CONFIG)/lib${lib.name}.a $(prefix)/lib/lib${lib.name}.a
@ -577,7 +577,7 @@ install-static_cxx: static_cxx strip-static_cxx
install-shared_c: shared_c strip-shared_c
% for lib in libs:
% if not lib.get("c++", False):
% if lib.language == "c":
% if lib.build == "all":
ifeq ($(SYSTEM),MINGW32)
$(E) "[INSTALL] Installing ${lib.name}.$(SHARED_EXT)"
@ -601,7 +601,7 @@ endif
install-shared_cxx: shared_cxx strip-shared_cxx
% for lib in libs:
% if lib.get("c++", False):
% if lib.language == "c++":
% if lib.build == "all":
ifeq ($(SYSTEM),MINGW32)
$(E) "[INSTALL] Installing ${lib.name}.$(SHARED_EXT)"
@ -649,7 +649,7 @@ LIB${lib.name.upper()}_SRC = \\
% endfor
% if "public_headers" in lib:
% if lib.get("c++", False):
% if lib.language == "c++":
PUBLIC_HEADERS_CXX += \\
% else:
@ -709,7 +709,7 @@ libs/$(CONFIG)/lib${lib.name}.a: $(ZLIB_DEP) $(LIB${lib.name.upper()}_OBJS)
% endif
<%
if lib.get('c++', False):
if lib.language == 'c++':
ld = '$(LDXX)'
else:
ld = '$(LD)'
@ -818,7 +818,7 @@ bins/$(CONFIG)/${tgt.name}: $(${tgt.name.upper()}_OBJS)\
libs/$(CONFIG)/lib${dep}.a\
% endfor
% if tgt.get("c++", False):
% if tgt.language == "c++":
## C++ targets specificies.
% if tgt.build == 'protoc':
$(E) "[HOSTLD] Linking $@"
@ -841,7 +841,7 @@ bins/$(CONFIG)/${tgt.name}: $(${tgt.name.upper()}_OBJS)\
% for dep in tgt.deps:
libs/$(CONFIG)/lib${dep}.a\
% endfor
% if tgt.get("c++", False):
% if tgt.language == "c++":
% if tgt.build == 'protoc':
$(HOST_LDLIBSXX)\
% else:

@ -0,0 +1,9 @@
<%!
import json
%>
${json.dumps([{"name": tgt.name, "language": tgt.language}
for tgt in targets
if tgt.build == "test" and tgt.name[-5:] == "_test"],
sort_keys=True, indent=2)}

@ -23,7 +23,7 @@ projects.extend(targets)
projects = [project for project in projects if project.get('vs_project_guid', None)]
## Exclude C++ projects for now
projects = [project for project in projects if not project.get('c++', False)]
projects = [project for project in projects if not project.language == 'c++']
for p in projects:
p.deps = p.get('deps',[])

@ -48,6 +48,7 @@ def main():
{
'name': 'end2end_fixture_%s' % f,
'build': 'private',
'language': 'c',
'secure': True,
'src': ['test/core/end2end/fixtures/%s.c' % f]
}
@ -55,6 +56,7 @@ def main():
{
'name': 'end2end_test_%s' % t,
'build': 'private',
'language': 'c',
'secure': False,
'src': ['test/core/end2end/tests/%s.c' % t],
'headers': ['test/core/end2end/tests/cancel_test_helpers.h']
@ -63,6 +65,7 @@ def main():
{
'name': 'end2end_certs',
'build': 'private',
'language': 'c',
'src': [
"test/core/end2end/data/test_root_cert.c",
"test/core/end2end/data/prod_roots_certs.c",
@ -75,6 +78,7 @@ def main():
{
'name': '%s_%s_test' % (f, t),
'build': 'test',
'language': 'c',
'src': [],
'deps': [
'end2end_fixture_%s' % f,

@ -1,6 +1,6 @@
#!/bin/bash
set -x
set -e
if [ "x$TEST" == "x" ] ; then
TEST=false

@ -41,12 +41,17 @@ class ValgrindConfig(object):
class CLanguage(object):
def __init__(self, make_target):
def __init__(self, make_target, test_lang):
self.allow_hashing = True
self.make_target = make_target
with open('tools/run_tests/tests.json') as f:
js = json.load(f)
self.binaries = [tgt['name']
for tgt in js
if tgt['language'] == test_lang]
def test_binaries(self, config):
return glob.glob('bins/%s/*_test' % config)
return ['bins/%s/%s' % (config, binary) for binary in self.binaries]
def make_targets(self):
return ['buildtests_%s' % self.make_target]
@ -85,8 +90,8 @@ _CONFIGS = {
_DEFAULT = ['dbg', 'opt']
_LANGUAGES = {
'c++': CLanguage('cxx'),
'c': CLanguage('c'),
'c++': CLanguage('cxx', 'c++'),
'c': CLanguage('c', 'c'),
'php': PhpLanguage()
}

@ -0,0 +1,805 @@
[
{
"language": "c",
"name": "grpc_byte_buffer_reader_test"
},
{
"language": "c",
"name": "gpr_cancellable_test"
},
{
"language": "c",
"name": "gpr_log_test"
},
{
"language": "c",
"name": "gpr_useful_test"
},
{
"language": "c",
"name": "gpr_cmdline_test"
},
{
"language": "c",
"name": "gpr_histogram_test"
},
{
"language": "c",
"name": "gpr_host_port_test"
},
{
"language": "c",
"name": "gpr_slice_buffer_test"
},
{
"language": "c",
"name": "gpr_slice_test"
},
{
"language": "c",
"name": "gpr_string_test"
},
{
"language": "c",
"name": "gpr_sync_test"
},
{
"language": "c",
"name": "gpr_thd_test"
},
{
"language": "c",
"name": "gpr_time_test"
},
{
"language": "c",
"name": "murmur_hash_test"
},
{
"language": "c",
"name": "grpc_stream_op_test"
},
{
"language": "c",
"name": "alpn_test"
},
{
"language": "c",
"name": "time_averaged_stats_test"
},
{
"language": "c",
"name": "chttp2_stream_encoder_test"
},
{
"language": "c",
"name": "hpack_table_test"
},
{
"language": "c",
"name": "chttp2_stream_map_test"
},
{
"language": "c",
"name": "hpack_parser_test"
},
{
"language": "c",
"name": "transport_metadata_test"
},
{
"language": "c",
"name": "chttp2_status_conversion_test"
},
{
"language": "c",
"name": "chttp2_transport_end2end_test"
},
{
"language": "c",
"name": "tcp_posix_test"
},
{
"language": "c",
"name": "dualstack_socket_test"
},
{
"language": "c",
"name": "no_server_test"
},
{
"language": "c",
"name": "resolve_address_test"
},
{
"language": "c",
"name": "sockaddr_utils_test"
},
{
"language": "c",
"name": "tcp_server_posix_test"
},
{
"language": "c",
"name": "tcp_client_posix_test"
},
{
"language": "c",
"name": "grpc_channel_stack_test"
},
{
"language": "c",
"name": "metadata_buffer_test"
},
{
"language": "c",
"name": "grpc_completion_queue_test"
},
{
"language": "c",
"name": "census_window_stats_test"
},
{
"language": "c",
"name": "census_statistics_quick_test"
},
{
"language": "c",
"name": "census_statistics_small_log_test"
},
{
"language": "c",
"name": "census_statistics_performance_test"
},
{
"language": "c",
"name": "census_statistics_multiple_writers_test"
},
{
"language": "c",
"name": "census_statistics_multiple_writers_circular_buffer_test"
},
{
"language": "c",
"name": "census_stub_test"
},
{
"language": "c",
"name": "census_hash_table_test"
},
{
"language": "c",
"name": "fling_test"
},
{
"language": "c",
"name": "echo_test"
},
{
"language": "c",
"name": "message_compress_test"
},
{
"language": "c",
"name": "bin_encoder_test"
},
{
"language": "c",
"name": "secure_endpoint_test"
},
{
"language": "c",
"name": "httpcli_format_request_test"
},
{
"language": "c",
"name": "httpcli_parser_test"
},
{
"language": "c",
"name": "httpcli_test"
},
{
"language": "c",
"name": "grpc_credentials_test"
},
{
"language": "c",
"name": "grpc_base64_test"
},
{
"language": "c",
"name": "grpc_json_token_test"
},
{
"language": "c",
"name": "timeout_encoding_test"
},
{
"language": "c",
"name": "fd_posix_test"
},
{
"language": "c",
"name": "fling_stream_test"
},
{
"language": "c",
"name": "lame_client_test"
},
{
"language": "c++",
"name": "thread_pool_test"
},
{
"language": "c++",
"name": "status_test"
},
{
"language": "c++",
"name": "sync_client_async_server_test"
},
{
"language": "c++",
"name": "end2end_test"
},
{
"language": "c++",
"name": "channel_arguments_test"
},
{
"language": "c++",
"name": "credentials_test"
},
{
"language": "c",
"name": "alarm_test"
},
{
"language": "c",
"name": "alarm_list_test"
},
{
"language": "c",
"name": "alarm_heap_test"
},
{
"language": "c",
"name": "time_test"
},
{
"language": "c",
"name": "poll_kick_test"
},
{
"language": "c",
"name": "chttp2_fake_security_cancel_after_accept_test"
},
{
"language": "c",
"name": "chttp2_fake_security_cancel_after_accept_and_writes_closed_test"
},
{
"language": "c",
"name": "chttp2_fake_security_cancel_after_invoke_test"
},
{
"language": "c",
"name": "chttp2_fake_security_cancel_before_invoke_test"
},
{
"language": "c",
"name": "chttp2_fake_security_cancel_in_a_vacuum_test"
},
{
"language": "c",
"name": "chttp2_fake_security_census_simple_request_test"
},
{
"language": "c",
"name": "chttp2_fake_security_disappearing_server_test"
},
{
"language": "c",
"name": "chttp2_fake_security_early_server_shutdown_finishes_inflight_calls_test"
},
{
"language": "c",
"name": "chttp2_fake_security_early_server_shutdown_finishes_tags_test"
},
{
"language": "c",
"name": "chttp2_fake_security_graceful_server_shutdown_test"
},
{
"language": "c",
"name": "chttp2_fake_security_invoke_large_request_test"
},
{
"language": "c",
"name": "chttp2_fake_security_max_concurrent_streams_test"
},
{
"language": "c",
"name": "chttp2_fake_security_no_op_test"
},
{
"language": "c",
"name": "chttp2_fake_security_ping_pong_streaming_test"
},
{
"language": "c",
"name": "chttp2_fake_security_request_response_with_binary_metadata_and_payload_test"
},
{
"language": "c",
"name": "chttp2_fake_security_request_response_with_metadata_and_payload_test"
},
{
"language": "c",
"name": "chttp2_fake_security_request_response_with_payload_test"
},
{
"language": "c",
"name": "chttp2_fake_security_request_response_with_trailing_metadata_and_payload_test"
},
{
"language": "c",
"name": "chttp2_fake_security_simple_delayed_request_test"
},
{
"language": "c",
"name": "chttp2_fake_security_simple_request_test"
},
{
"language": "c",
"name": "chttp2_fake_security_thread_stress_test"
},
{
"language": "c",
"name": "chttp2_fake_security_writes_done_hangs_with_pending_read_test"
},
{
"language": "c",
"name": "chttp2_fullstack_cancel_after_accept_test"
},
{
"language": "c",
"name": "chttp2_fullstack_cancel_after_accept_and_writes_closed_test"
},
{
"language": "c",
"name": "chttp2_fullstack_cancel_after_invoke_test"
},
{
"language": "c",
"name": "chttp2_fullstack_cancel_before_invoke_test"
},
{
"language": "c",
"name": "chttp2_fullstack_cancel_in_a_vacuum_test"
},
{
"language": "c",
"name": "chttp2_fullstack_census_simple_request_test"
},
{
"language": "c",
"name": "chttp2_fullstack_disappearing_server_test"
},
{
"language": "c",
"name": "chttp2_fullstack_early_server_shutdown_finishes_inflight_calls_test"
},
{
"language": "c",
"name": "chttp2_fullstack_early_server_shutdown_finishes_tags_test"
},
{
"language": "c",
"name": "chttp2_fullstack_graceful_server_shutdown_test"
},
{
"language": "c",
"name": "chttp2_fullstack_invoke_large_request_test"
},
{
"language": "c",
"name": "chttp2_fullstack_max_concurrent_streams_test"
},
{
"language": "c",
"name": "chttp2_fullstack_no_op_test"
},
{
"language": "c",
"name": "chttp2_fullstack_ping_pong_streaming_test"
},
{
"language": "c",
"name": "chttp2_fullstack_request_response_with_binary_metadata_and_payload_test"
},
{
"language": "c",
"name": "chttp2_fullstack_request_response_with_metadata_and_payload_test"
},
{
"language": "c",
"name": "chttp2_fullstack_request_response_with_payload_test"
},
{
"language": "c",
"name": "chttp2_fullstack_request_response_with_trailing_metadata_and_payload_test"
},
{
"language": "c",
"name": "chttp2_fullstack_simple_delayed_request_test"
},
{
"language": "c",
"name": "chttp2_fullstack_simple_request_test"
},
{
"language": "c",
"name": "chttp2_fullstack_thread_stress_test"
},
{
"language": "c",
"name": "chttp2_fullstack_writes_done_hangs_with_pending_read_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_fullstack_cancel_after_accept_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_fullstack_cancel_after_accept_and_writes_closed_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_fullstack_cancel_after_invoke_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_fullstack_cancel_before_invoke_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_fullstack_cancel_in_a_vacuum_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_fullstack_census_simple_request_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_fullstack_disappearing_server_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_fullstack_early_server_shutdown_finishes_inflight_calls_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_fullstack_early_server_shutdown_finishes_tags_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_fullstack_graceful_server_shutdown_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_fullstack_invoke_large_request_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_fullstack_max_concurrent_streams_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_fullstack_no_op_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_fullstack_ping_pong_streaming_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_fullstack_request_response_with_binary_metadata_and_payload_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_fullstack_request_response_with_metadata_and_payload_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_fullstack_request_response_with_payload_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_fullstack_request_response_with_trailing_metadata_and_payload_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_fullstack_simple_delayed_request_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_fullstack_simple_request_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_fullstack_thread_stress_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_fullstack_writes_done_hangs_with_pending_read_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_with_oauth2_fullstack_cancel_after_accept_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_with_oauth2_fullstack_cancel_after_accept_and_writes_closed_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_with_oauth2_fullstack_cancel_after_invoke_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_with_oauth2_fullstack_cancel_before_invoke_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_with_oauth2_fullstack_cancel_in_a_vacuum_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_with_oauth2_fullstack_census_simple_request_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_with_oauth2_fullstack_disappearing_server_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_with_oauth2_fullstack_early_server_shutdown_finishes_inflight_calls_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_with_oauth2_fullstack_early_server_shutdown_finishes_tags_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_with_oauth2_fullstack_graceful_server_shutdown_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_with_oauth2_fullstack_invoke_large_request_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_with_oauth2_fullstack_max_concurrent_streams_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_with_oauth2_fullstack_no_op_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_with_oauth2_fullstack_ping_pong_streaming_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_with_oauth2_fullstack_request_response_with_binary_metadata_and_payload_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_with_oauth2_fullstack_request_response_with_metadata_and_payload_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_with_oauth2_fullstack_request_response_with_payload_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_with_oauth2_fullstack_request_response_with_trailing_metadata_and_payload_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_with_oauth2_fullstack_simple_delayed_request_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_with_oauth2_fullstack_simple_request_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_with_oauth2_fullstack_thread_stress_test"
},
{
"language": "c",
"name": "chttp2_simple_ssl_with_oauth2_fullstack_writes_done_hangs_with_pending_read_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_cancel_after_accept_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_cancel_after_accept_and_writes_closed_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_cancel_after_invoke_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_cancel_before_invoke_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_cancel_in_a_vacuum_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_census_simple_request_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_disappearing_server_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_early_server_shutdown_finishes_inflight_calls_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_early_server_shutdown_finishes_tags_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_graceful_server_shutdown_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_invoke_large_request_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_max_concurrent_streams_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_no_op_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_ping_pong_streaming_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_request_response_with_binary_metadata_and_payload_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_request_response_with_metadata_and_payload_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_request_response_with_payload_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_request_response_with_trailing_metadata_and_payload_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_simple_delayed_request_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_simple_request_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_thread_stress_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_writes_done_hangs_with_pending_read_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_one_byte_at_a_time_cancel_after_accept_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_one_byte_at_a_time_cancel_after_accept_and_writes_closed_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_one_byte_at_a_time_cancel_after_invoke_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_one_byte_at_a_time_cancel_before_invoke_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_one_byte_at_a_time_cancel_in_a_vacuum_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_one_byte_at_a_time_census_simple_request_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_one_byte_at_a_time_disappearing_server_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_one_byte_at_a_time_early_server_shutdown_finishes_inflight_calls_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_one_byte_at_a_time_early_server_shutdown_finishes_tags_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_one_byte_at_a_time_graceful_server_shutdown_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_one_byte_at_a_time_invoke_large_request_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_one_byte_at_a_time_max_concurrent_streams_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_one_byte_at_a_time_no_op_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_one_byte_at_a_time_ping_pong_streaming_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_one_byte_at_a_time_request_response_with_binary_metadata_and_payload_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_one_byte_at_a_time_request_response_with_metadata_and_payload_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_one_byte_at_a_time_request_response_with_payload_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_one_byte_at_a_time_request_response_with_trailing_metadata_and_payload_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_one_byte_at_a_time_simple_delayed_request_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_one_byte_at_a_time_simple_request_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_one_byte_at_a_time_thread_stress_test"
},
{
"language": "c",
"name": "chttp2_socket_pair_one_byte_at_a_time_writes_done_hangs_with_pending_read_test"
}
]
Loading…
Cancel
Save