-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (44 loc) · 1.17 KB
/
Copy pathMakefile
File metadata and controls
57 lines (44 loc) · 1.17 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
52
53
54
55
56
57
PROJ_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
# Configuration of extension
EXT_NAME=quackstore
EXT_CONFIG=${PROJ_DIR}extension_config.cmake
# We need this for testing
CORE_EXTENSIONS='httpfs;icu'
# Include the Makefile from extension-ci-tools
include extension-ci-tools/makefiles/duckdb_extension.Makefile
# Custom makefile targets
#alias for clean
.PHONY: clear
clear: clean
@echo > /dev/null
###
### Run duckdb CLI
###
.PHONY: duckdb/debug
duckdb/debug:
./build/debug/duckdb
.PHONY: duckdb/release
duckdb/release:
./build/release/duckdb
###
### Run unit (Catch2) tests
###
.PHONY: test/unit/debug
test/unit/debug:
./build/debug/extension/$(EXT_NAME)/test/unittest/unittest_$(EXT_NAME)
.PHONY: test/unit/release
test/unit/release:
./build/release/extension/$(EXT_NAME)/test/unittest/unittest_$(EXT_NAME)
###
### Run SQL tests
###
# see test_debug / test_release targets in the included Makefile from extension-ci-tools
###
### Run unit and SQL tests
###
.PHONY: test/$(EXT_NAME)/debug
test/$(EXT_NAME)/debug: test/unit/debug test_debug
@echo > /dev/null
.PHONY: test/$(EXT_NAME)/release
test/$(EXT_NAME)/release: test/unit/release test_release
@echo > /dev/null