-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (20 loc) · 732 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (20 loc) · 732 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
# Makefile for running tests and building the C++ streamer locally
CONFIG ?= configs/example-node.yaml
.PHONY: test test-fast test-full build build-clib check doctor
# Run Go unit tests quickly (no cgo streamer)
test-fast:
go test ./... -v
# Build the Go CLI
build:
go build -v ./cmd/gs
# Run the standard fast validation flow
check: test-fast build
# Run local preflight checks for the selected config
doctor:
go run ./cmd/gs doctor --config $(CONFIG)
# Build C++ streamer and run Go tests with cgo_streamer enabled
test-full: build-clib
go test ./... -v -tags cgo_streamer
build-clib:
cd clib && rm -rf build && mkdir -p build && cd build && cmake .. && cmake --build . -- -j$(shell nproc || echo 2)
test: test-fast