-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (21 loc) · 771 Bytes
/
Makefile
File metadata and controls
25 lines (21 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.PHONY: clean
clean:
- rm -rf bin/ace-dt*
.PHONY: template
template:
- rm -rf internal/mirror/testing/testdata/large/oci
go run ./cmd/ace-dt run-recipe internal/mirror/testing/testdata/large/recipe.jsonl
- rm -rf internal/mirror/testing/testdata/small/oci
go run ./cmd/ace-dt run-recipe internal/mirror/testing/testdata/small/recipe.jsonl
.PHONY: cover
cover:
go clean -testcache
- rm coverage.txt
go test -count=1 ./... -coverprofile coverage.txt -coverpkg=$(shell go list )/...
./filter-coverage.sh < coverage.txt > coverage.txt.filtered
go tool cover -func coverage.txt.filtered
# bench is the only test suite duplicated with dagger, as running within a container may
# not be as effective
.PHONY: bench
bench:
go test -benchmem -run=^$$ -bench=. ./...