-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (24 loc) · 915 Bytes
/
Makefile
File metadata and controls
37 lines (24 loc) · 915 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
26
27
28
29
30
31
32
33
34
35
36
37
.PHONY: test coverage fuzz fmt
test:
go clean -testcache && go test ./... -count=1 -race -timeout 30s
coverage:
-go clean -testcache && go test ./... -count=1 -timeout 30s -race -covermode=atomic -coverprofile=coverage.txt
rm ./coverage.txt
fuzz_prefixfs:
go clean -testcache && go test -fuzz=FuzzPrefixFS -race -fuzztime=300s
fuzz_hiddenfs_create:
go clean -testcache && go test -fuzz=FuzzHiddenFSCreate -race -fuzztime=300s
fuzz_hiddenfs_remove_all:
go clean -testcache && go test -fuzz=FuzzHiddenFSRemoveAll -race -fuzztime=300s
fuzz_sort_by_most:
go clean -testcache && go test -fuzz=FuzzSortByMostFilePathSeparators -race -fuzztime=300s
fuzz_sort_by_least:
go clean -testcache && go test -fuzz=FuzzSortByLeastFilePathSeparators -race -fuzztime=300s
fmt:
go fmt ./...
gen_mock:
go generate ./...
syntax:
GOOS=windows go build ./...
GOOS=linux go build ./...
GOOS=darwin go build ./...