| # Copyright 2022 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/testing/golden_test.gni") |
| |
| if (is_host) { |
| # Make sure an empty goldens.txt doesn't break the build, since |
| # `fx regen-goldens --reset` relies on this to get back into a good state. |
| golden_test("empty_golden_test") { |
| goldens_dir = "empty_goldens" |
| deps = [] |
| entries = [] |
| reformat_goldens_bin = "no_op_reformat.sh" |
| reformat_goldens_args = [ |
| "args", |
| "are", |
| "ignored", |
| ] |
| reformat_goldens_inputs = [ "empty_config.txt" ] |
| } |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":empty_golden_test($host_toolchain)" ] |
| } |