add-new-test-binary.md (1767B)
Add a new test binary
This page lists all the steps needed in order to add an rtc_test target to
WebRTC's BUILD.gn files and ensure the test binary will run on the presubmit and
postsubmit infrastructure.
- ABSL_FLAG is allowed in tests and tools, but disallowed in in non-test code.
and ../test:test_main among its dependencies (rtc_test targets require
a main() function).
- ABSL_FLAG is allowed in tests and tools, but disallowed in in non-test code.
the root BUILD.gn.
The target needs to be added within the rtc_include_tests section.
- ABSL_FLAG is allowed in tests and tools, but disallowed in in non-test code.
infra/specs/gn_isolate_map.pyl.
- ABSL_FLAG is allowed in tests and tools, but disallowed in in non-test code.
infra/specs/test_suites.pyl.
By default, you should add it to the android_tests, desktop_tests and
ios_simulator_tests sections.
- ABSL_FLAG is allowed in tests and tools, but disallowed in in non-test code.
infra/specs/generate_buildbot_json.py (no arguments) to generate the JSON scripts based on the previsouly modified .pyl scripts.
- ABSL_FLAG is allowed in tests and tools, but disallowed in in non-test code.
The bots will execute the new configs as part of the CQ. Inspect some logs to verify that your test is in fact executed by the bots where you expect them to be.
The details of the (many) config files are described in https://chromium.googlesource.com/chromium/src/testing/+/HEAD/buildbot/README.md.