forked from duckdb/duckdb-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 998 Bytes
/
Makefile
File metadata and controls
31 lines (25 loc) · 998 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
DUCKDB_VERSION=v1.4.4
test.examples:
go run examples/appender/main.go
go run examples/json/main.go
go run examples/scalar_udf/main.go
go run examples/simple/main.go
go run examples/table_udf/main.go
go run examples/table_udf_parallel/main.go
test.dynamic.lib:
mkdir dynamic-dir && \
cd dynamic-dir && \
curl -OL https://github.com/duckdb/duckdb/releases/download/${DUCKDB_VERSION}/${FILENAME}.zip && \
unzip ${FILENAME}.zip
test.static.lib.darwin.arm64:
mkdir static-dir && \
cd static-dir && \
curl -OL https://github.com/duckdb/duckdb/releases/download/${DUCKDB_VERSION}/static-libs-osx-arm64.zip && \
unzip static-libs-osx-arm64.zip
GOBIN ?= $$(go env GOPATH)/bin
install-go-test-coverage:
go install github.com/vladopajic/go-test-coverage/v2@latest
check-coverage: install-go-test-coverage
go test ./... -coverprofile=./cover.out -covermode=atomic -coverpkg=./...
${GOBIN}/go-test-coverage --config=./.github/testcoverage.yml
go tool cover -html=cover.out -o=cover.html