blob: 44e9a61813ccdff0cc5a4453163ecee3e1f3fe06 [file] [log] [blame] [edit]
# 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 -fullpath ./...
go build ./...
test:
CGO_ENABLED=1 go test -fullpath -race ./...
go test -fullpath ../cmd/paris/...
go test -fullpath ../cmd/labpack/...
go test -fullpath ../../cmd/mallet/...
# quick test running
testf:
go test -fullpath ./...
go test -fullpath ../cmd/paris/...
go test -fullpath ../cmd/labpack/...
go test -fullpath ../../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 -fullpath -run TestConfigTreeChanges