[rust] Add `rust_unit_tests_group(...)` gni template. This CL adds a `rust_unit_tests_group(...)` gni template that can generate a Chromium-bot-friendly script that can run _all_ Rust unit tests inside the transitive `deps` of the group. Manual testing: 1. Checking that the tests can be run locally: $ ninja -C out/rust build/rust/tests $ out/rust/bin/run_native_rust_unittests__from__build_rust_tests ... the tests execute successfully ... 2. Checking that the tests can be run on the bots in a follow-up CL: https://crrev.com/c/3322199/6 3. Checking that the runtime_deps are reasonable: $ gn clean out/rust $ gn desc out/rust \ build/rust/tests:native_rust_unittests__from__build_rust_tests \ runtime_deps bin/run_native_rust_unittests__from__build_rust_tests ../../testing/scripts/rust/main_program.py ../../testing/scripts/rust/test_filtering.py ../../testing/scripts/rust/test_results.py ../../testing/scripts/rust/exe_util.py ../../testing/scripts/rust/rust_main_program.py bin/run_test_mixed_component_rs_unittests ./test_mixed_component_rs_unittests bin/run_test_mixed_source_set_rs_unittests ./test_mixed_source_set_rs_unittests bin/run_test_rust_source_set_unittests ./test_rust_source_set_unittests bin/run_foo_tests ./foo_tests bin/run_test_rust_unittests ./test_rust_unittests bin/run_test_variable_source_set_rs_unittests ./test_variable_source_set_rs_unittests Bug: 1260120 Change-Id: I19a15581ced0da85c6ec50a95016f2a547a43600 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3327603 Reviewed-by: Adrian Taylor <adetaylor@google.com> Commit-Queue: Ćukasz Anforowicz <lukasza@chromium.org> Cr-Commit-Position: refs/heads/main@{#953019} NOKEYCHECK=True GitOrigin-RevId: 30500c5d5657387d3b4849d349037116c987e7ee 4 files changed