Commit Graph

68 Commits

Author SHA1 Message Date
Craig Tiller efa939ac1f
[cleanup] Remove public_headers_must_be_c89 test (#32898)
We're starting to introduce C++ APIs to C-core, so this test is no
longer relevant.
2023-04-19 14:47:10 -07:00
Craig Tiller 724441d85b
[tests] Convert core e2e tests to gtest (#32603)
Notes:
- `+trace` fixtures haven't run since 2016, so they're disabled for now
(7ad2d0b463 (diff-780fce7267c34170c1d0ea15cc9f65a7f4b79fefe955d185c44e8b3251cf9e38R76))
- all current fixtures define `FEATURE_MASK_SUPPORTS_AUTHORITY_HEADER`
and hence `authority_not_supported` has not been run in years - deleted
- bad_hostname similarly hasn't been triggered in a long while, so
deleted
- load_reporting_hook has never been enabled, so deleted
(f23fb4cf31/test/core/end2end/generate_tests.bzl (L145-L148))
- filter_latency & filter_status_code rely on global variables and so
don't convert particularly cleanly - and their value seems marginal, so
deleted

---------

Co-authored-by: ctiller <ctiller@users.noreply.github.com>
2023-04-03 22:19:57 -07:00
Craig Tiller 62bb99d163
[e2e] c++-ify core e2e test fixtures (#32550)
A step toward #14016.

---------

Co-authored-by: ctiller <ctiller@users.noreply.github.com>
2023-03-10 10:39:56 -08:00
Craig Tiller 67f364e23e
[cleanup] Eliminate usage of GRPC_ASSERT(false...); (#31757)
* crash function

* progress

* fix

* fix

* Automated change: Fix sanity tests

* fix

* fix

* fix

* fixes

* Automated change: Fix sanity tests

* fix

* Automated change: Fix sanity tests

* fix

* fix

* use cpp attr

* Automated change: Fix sanity tests

* fix

* fix

* fix

* fix

* fix

* fix

* add exclusion

* fix

* typo

* fix

* fmt

* Update tcp_socket_utils.cc

* Automated change: Fix sanity tests

* fix

* revert php changes

* Automated change: Fix sanity tests

Co-authored-by: ctiller <ctiller@users.noreply.github.com>
2023-01-11 08:50:32 -08:00
Yijie Ma f99b8b5bc4
Convert c-style comments to C++-style comments (#31923)
* baseline

* fix clang-tidy

* manually revert these files

* manually fixup at eof

* revert 2 more files

* change check_deprecated_grpc++.py

* change end2end_defs.include template

* fix check_include_guards.py

* untrack tools/distrib/python/convert_cstyle_comments_to_cpp.py

not yet ready to be submitted

* fix

yapf check_include_guards.py
remove a space...

* fix version.cc.template

* fix version_info.h.template
2022-12-22 23:01:53 -08:00
AJ Heller 762cde4d24
Delete end2end nosec tests (#28946)
* rm nosec tests (TODO: identify coverage differences)

* grpc::load_reporter

* delete unused nosec test files & config

* trigger build

* re-delete nosec test file (snuck in with a merge)

* revert TODO deletion
2022-03-07 08:52:30 -08:00
Lidi Zheng 2231c2ba77
Introduce Python import sorting to our sanity test suite (#26768)
* Add isort_code.sh to sanity tests

* Run tools/distrib/isort_code.sh

* Fine tune the import order for relative imports

* Make pylint and project generation happy

* Fix a few corner cases

* Use --check instead of --diff

* The import order impacts test result somehow

* Make isort print diff and check output at the same time

* Let tools/run_tests/python_utils be firstparty library

* Run isort against latest HEAD
2021-07-26 12:31:21 -07:00
Mark D. Roth 1f8aaf0e6a
fix handling of retry perAttemptRecvTimeout exceeded on last attempt (#26737)
* fix handling of retry perAttemptRecvTimeout exceeded on last attempt

* fix clang-tidy
2021-07-21 10:06:51 -07:00
AJ Heller 4d4ee609c1
gRPC EventEngine Interface (#25795) 2021-04-05 09:26:16 -07:00
yang-g c6c3dc57af Remove unneeded filter 2021-01-06 10:59:56 -08:00
Alexander Polcyn 882243606f Add a mechanism to plumb arbitary command line flags to the c-ares unit test binary 2020-12-28 23:22:54 -08:00
Alexander Polcyn aef3bb0157 Remove unnecessary explicit bytes conversion 2020-12-16 10:17:17 -08:00
Alexander Polcyn 408a02379d Make c-ares resolver unit tests runnable under python3 2020-12-15 23:51:19 -08:00
capstan 7267c8fcd9 Python3-ize tools/buildgen.
* Ran `2to3` on `tools/buildgen` and the `gen_build_yaml.py` files.
* Updated the invocations of python to be explicitly Python 3.
* Changed the loader in `mako_renderer.py` to allow pickle to find the module for pickling `external_version.Version`
* Added a few open-as-binary to placate readers/writers expecting bytes.
* Hand tweaked the templates to remove `iteritems` and fiddle with encodings.

Partially addresses #24359.
2020-11-04 01:18:57 +01:00
Alexander Polcyn a8d8f9db8c update template 2020-04-01 11:18:51 -07:00
Vijay Pai ab72f441d8 Remove unused-parameter warnings, round 2 (14 of 19) 2019-10-21 09:16:34 -07:00
Esun Kim ded9f46c06 Refactored BUILD file to isolate cronet rules 2019-07-24 14:55:35 -07:00
Prashant Jaikumar 1ac1ab7396 Flaky network test enhancements and cleanups
- Parameterized flaky_network_test to run with different packet sizes and
credentials.
- Cleanup debugger_macros

Parametrize flaky_network_test to run with different packet sizes and
credentials.
2019-05-23 11:45:54 -07:00
Alexander Polcyn 139d9f6e94 Revert "Revert c-ares as the default resolvre"
This reverts commit ca30b2240f.
2019-01-31 15:06:34 -08:00
Alexander Polcyn ca30b2240f Revert c-ares as the default resolvre 2019-01-25 13:39:45 -08:00
Alexander Polcyn 2b328ee0ca Re-enable c-ares as the default resolver; but keep SRV queries off by default 2019-01-18 17:18:33 -08:00
Alexander Polcyn 371b987bf4 Revert turning c-ares on by default 2019-01-11 10:50:52 -08:00
Alexander Polcyn 46a872864c Turn on c-ares as the default resolver 2019-01-08 14:46:37 -08:00
Alex Polcyn 5cd8b1eb81 Enable c-ares queries on Windows 2018-08-08 15:21:26 -07:00
Alexander Polcyn 50a7213929 Revert "Fix c-ares tests ipv6-only brokenness"
This reverts commit 27718ce64d.
2018-06-11 11:35:32 -07:00
Alexander Polcyn 27718ce64d Fix c-ares tests ipv6-only brokenness 2018-06-06 13:55:13 -07:00
Alexander Polcyn fd1a6604ab Remove a test 2018-05-25 11:53:34 -07:00
Alexander Polcyn 550621c1b5 Make local DNS server tests more generic 2018-05-11 16:24:39 -07:00
Alexander Polcyn 6f8f914f8d cleanup, and get rid of unnecessary timeouts in two places 2018-05-01 20:52:57 -07:00
Alexander Polcyn 29fead7d49 Convert c-ares test runner from bash to python, so that it works on
windows
2018-04-24 16:24:43 -07:00
Alex Polcyn 11a45a8057 Fix c-ares tests under gcc musl 2018-04-05 08:04:28 +00:00
Alexander Polcyn 1eaac47f52 Fix arg parsing in resolver test script 2018-03-13 10:46:59 -07:00
Alexander Polcyn 0a05b782fe Move python DNS utilities to utils subdirectory 2018-03-06 19:22:34 -08:00
Alex Polcyn 3c5e12de08 Remove the C++ test dependency on dig and dnsutils 2018-03-06 11:52:58 -08:00
Mehrdad Afshari 3ce5b53f61 Fix resolver_gce_integration_tests_defs.include to pass shellcheck 2018-02-07 11:43:46 -08:00
Mehrdad Afshari 4c959bab8a Fix resolver_component_tests_defs.include to pass shellcheck 2018-02-07 11:43:23 -08:00
Mehrdad Afshari 11b8878348 Fix private_dns_zone_init_defs.include to pass shellcheck 2018-02-07 11:42:56 -08:00
Mehrdad Afshari df8d8c9192 Fix create_private_dns_zone_defs.include to pass shellcheck 2018-02-07 11:42:30 -08:00
Yash Tibrewal 518236d458 Remove unnecessary if condition in public_headers_must_be_c89 2017-11-17 17:00:14 -08:00
Yash Tibrewal 40422d5fa6 Merge master 2017-11-06 14:43:31 -08:00
Yash Tibrewal cd987a0b2f Adding public_headers_must_be_c89 as a clang exception 2017-11-02 19:14:46 -07:00
Yash Tibrewal 2f921a3f97 Remove grpc_slice_buf_cmp and change public_headers_must_be_c89 to print the addresses of public api functions to check if they can be linked to 2017-11-02 16:59:19 -07:00
Yash Tibrewal 34a57d0346 rename all test core files to cc and a lot of C++ style conversions 2017-10-25 16:23:01 -07:00
Alexander Polcyn 9e3a76ba71 Add c-ares resolver tests against GCE DNS, using the unit test. 2017-09-27 16:47:56 -07:00
Alexander Polcyn 27bf05d003 Add tests for c-ares wrapper using a local DNS server. 2017-09-14 14:32:30 -07:00
Jan Tattermusch 4d5c3102a1 fix remaining license notices 2017-06-08 11:22:41 +02:00
Craig Tiller 61eb40ce56 Put files in a better place 2017-02-03 13:46:33 -08:00
Craig Tiller 8b1d59cafa Add some debug utilities
This PR adds a set of debug helpers that are intended for calling only from gdb. They cross abstraction boundaries and allow quickly accessing one thing from another thing.
I expect to grow this library significantly over time to aid debugging tricky problems.
2017-02-03 11:50:04 -08:00
Jan Tattermusch 87ec3b77b5 Merge pull request #6750 from makdharma/cronet
cronet build related changes to build.yaml, and added ifdef guard around objective_c cronet code.
2016-06-06 12:44:12 -07:00
Makarand Dharmapurikar 19061093eb fixed template to remove grpc_cronet.h as a dependency 2016-06-02 09:15:29 -07:00