| # Copyright 2025 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| .PHONY: default build gen test testf trees |
| |
| default: build |
| |
| build: |
| @go vet ./... |
| @go test ./... |
| go build ./... |
| |
| test: |
| CGO_ENABLED=1 go test -race ./... |
| go test ../cmd/paris/... |
| go test ../cmd/labpack/... |
| go test ../../cmd/mallet/... |
| |
| # quick test running |
| testf: |
| go test ./... |
| go test ../cmd/paris/... |
| go test ../cmd/labpack/... |
| go test ../../cmd/mallet/... |
| |
| gen: |
| # Generate proto files |
| @find . -name '*.pb.go' -delete |
| go generate ./... |
| |
| trees: |
| # Generate config tree files |
| RECOVERY_GENERATE_CONFIG_TREE=ON go test -run TestConfigTreeChanges |