-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (31 loc) · 1.22 KB
/
Makefile
File metadata and controls
49 lines (31 loc) · 1.22 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
CGO_CFLAGS ?= -O1 -g
GO_BUILD_TAGS ?= duckdb_arrow
GO_TEST_FLAGS ?= -v -count=1
export CGO_CFLAGS
.PHONY: build test test-unit test-integration test-e2e \
test-compiler test-catalog-db test-coredb
# --- Build ---
build:
go build -tags=$(GO_BUILD_TAGS) ./...
# --- All tests ---
test: test-unit test-integration
# --- Unit tests (everything except integration-test/) ---
test-unit:
go test -tags=$(GO_BUILD_TAGS) $(GO_TEST_FLAGS) $$(go list -tags=$(GO_BUILD_TAGS) ./... | grep -v /integration-test/)
# --- Integration tests (all under integration-test/) ---
test-integration: test-compiler test-catalog-db test-coredb
test-compiler:
go test -tags=$(GO_BUILD_TAGS) $(GO_TEST_FLAGS) ./integration-test/compiler/...
test-catalog-db:
go test -tags=$(GO_BUILD_TAGS) $(GO_TEST_FLAGS) ./integration-test/catalog/db/...
test-coredb:
go test -tags=$(GO_BUILD_TAGS) $(GO_TEST_FLAGS) ./integration-test/coredb/...
# --- E2E (Docker-based, separate from `go test`) ---
test-e2e:
cd integration-test/e2e && bash run.sh
test-e2e-duckdb:
cd integration-test/e2e && bash run.sh --duckdb-only
test-e2e-keep:
cd integration-test/e2e && bash run.sh --keep
test-e2e-update:
cd integration-test/e2e && UPDATE_EXPECTED=1 bash run.sh