# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. action("histograms_xml") { script = "histograms/merge_xml.py" sources = [ "histograms/enums.xml", "histograms/histograms.xml", ] output = "$root_out_dir/histograms.xml" outputs = [ output, ] args = rebase_path(sources, root_build_dir) + [ "--output", rebase_path(output, root_build_dir), ] } copy("actions_xml") { sources = [ "actions/actions.xml", ] outputs = [ "$root_out_dir/actions.xml", ] } copy("rappor_xml") { sources = [ "rappor/rappor.xml", ] outputs = [ "$root_out_dir/rappor.xml", ] } copy("ukm_xml") { sources = [ "ukm/ukm.xml", ] outputs = [ "$root_out_dir/ukm.xml", ] } group("metrics_metadata") { deps = [ ":actions_xml", ":histograms_xml", ":rappor_xml", ":ukm_xml", ] } # This group defines the isolate files needed to run metrics_python_tests.py on # on bots. This also tells the build system when the tests should be re-run - # when one of the dependent files changes. # # When adding new entries to this test suite, you can test things locally with # isolation using the following command: # # tools/mb/mb.py run out/gn metrics_python_tests -- \ # --isolated-script-test-output=/tmp/output.json # group("metrics_python_tests") { data = [ # The run_isolated_script_test.py script and its dependencies. "//testing/scripts/run_isolated_script_test.py", "//testing/scripts/common.py", "//testing/xvfb.py", "//testing/test_env.py", "//third_party/catapult/third_party/typ/", # Scripts we depend on. Their unit tests are also included. "//tools/json_comment_eater/json_comment_eater.py", "//tools/json_comment_eater/json_comment_eater_test.py", "//tools/json_comment_eater/everything.json", "//tools/json_comment_eater/everything_expected.json", "//tools/json_to_struct/element_generator.py", "//tools/json_to_struct/element_generator_test.py", "//tools/json_to_struct/json_to_struct.py", "//tools/json_to_struct/struct_generator.py", "//tools/json_to_struct/struct_generator_test.py", # The metrics_python_tests.py runner and its dependencies. "//tools/metrics/metrics_python_tests.py", "//tools/metrics/actions/action_utils.py", "//tools/metrics/actions/extract_actions.py", "//tools/metrics/actions/extract_actions_test.py", "//tools/metrics/actions/pretty_print.py", "//tools/metrics/actions/print_style.py", "//tools/metrics/common/diff_util.py", "//tools/metrics/common/models.py", "//tools/metrics/common/path_util.py", "//tools/metrics/common/presubmit_util.py", "//tools/metrics/common/pretty_print_xml.py", "//tools/metrics/histograms/extract_histograms.py", "//tools/metrics/histograms/generate_expired_histograms_array.py", "//tools/metrics/histograms/generate_expired_histograms_array_unittest.py", "//tools/metrics/histograms/merge_xml.py", "//tools/metrics/ukm/model.py", "//tools/metrics/ukm/pretty_print_test.py", "//tools/python/google/path_utils.py", "//tools/variations/fieldtrial_to_struct_unittest.py", "//tools/variations/fieldtrial_to_struct.py", "//tools/variations/fieldtrial_util_unittest.py", "//tools/variations/fieldtrial_util.py", "//tools/variations/unittest_data/expected_output.cc", "//tools/variations/unittest_data/expected_output.h", "//tools/variations/unittest_data/test_config.json", "//components/variations/field_trial_config/field_trial_testing_config_schema.json", "//components/variations/service/generate_ui_string_overrider.py", "//components/variations/service/generate_ui_string_overrider_unittest.py", ] }