From a305b9da8c5c47629a503aaee0ae2b65b92c7e52 Mon Sep 17 00:00:00 2001 From: "R.B. Boyer" <4903+rboyer@users.noreply.github.com> Date: Fri, 30 Apr 2021 11:27:12 -0500 Subject: [PATCH] dev: adding a make target to regenerate envoy golden files (#10158) --- GNUmakefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/GNUmakefile b/GNUmakefile index 2b9b9a020..abfb87e83 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -386,6 +386,18 @@ module-versions: envoy-library: @$(SHELL) $(CURDIR)/build-support/scripts/envoy-library-references.sh +.PHONY: envoy-regen +envoy-regen: + $(info regenerating envoy golden files) + @for d in endpoints listeners routes clusters rbac; do \ + if [[ -d "agent/xds/testdata/$${d}" ]]; then \ + find "agent/xds/testdata/$${d}" -name '*.golden' -delete ; \ + fi \ + done + @go test -tags '$(GOTAGS)' ./agent/xds -update + @find "command/connect/envoy/testdata" -name '*.golden' -delete + @go test -tags '$(GOTAGS)' ./command/connect/envoy -update + .PHONY: all ci bin dev dist cov test test-flake test-internal cover lint ui static-assets tools .PHONY: docker-images go-build-image ui-build-image static-assets-docker consul-docker ui-docker .PHONY: version proto test-envoy-integ