-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (37 loc) · 1.37 KB
/
Makefile
File metadata and controls
51 lines (37 loc) · 1.37 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
VERSION=$(shell git describe --tags --always)
ENDPOINT ?= "https://t3.storage.dev"
BUILD_PARAM=-ldflags "-X github.com/tigrisdata/tigrisfs/core/cfg.Version=$(VERSION) -X github.com/tigrisdata/tigrisfs/core/cfg.DefaultEndpoint=$(ENDPOINT)"
run-test: s3proxy.jar build-debug
./test/run-tests.sh
run-xfstests: s3proxy.jar xfstests build-debug
./test/run-xfstests.sh
run-cluster-test: s3proxy.jar build-debug
./test/cluster/test_random.sh
run-lint:
shellcheck scripts/*
golangci-lint --timeout=5m run --fix
xfstests:
git clone --branch v2025.03.30 --depth=1 https://github.com/kdave/xfstests
cd xfstests && patch -p1 -l < ../test/xfstests.diff
s3proxy.jar:
wget https://github.com/gaul/s3proxy/releases/download/s3proxy-1.8.0/s3proxy -O s3proxy.jar
get-deps: s3proxy.jar
go get -t ./...
/bin/bash scripts/install_build_deps.sh
/bin/bash scripts/install_test_deps.sh
build:
go build $(BUILD_PARAM)
build-debug:
CGO_ENABLED=1 go build -race $(BUILD_PARAM)
install:
go install $(BUILD_PARAM)
# Setup local development environment.
setup: get-deps
git config core.hooksPath ./.gitconfig/hooks
.PHONY: protoc
protoc:
protoc --go_out=. --experimental_allow_proto3_optional --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative core/pb/*.proto
clean:
rm -f tigrisfs
rm -f core/mount_GoofysTest.*log
findmnt -t fuse.tigrisfs -n -o TARGET|xargs -r umount