-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 666 Bytes
/
Makefile
File metadata and controls
29 lines (22 loc) · 666 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
.PHONY: all build test clean runner mock-handler
BUILD_DIR := build
RUNNER_BIN := $(BUILD_DIR)/runner
MOCK_HANDLER_BIN := $(BUILD_DIR)/mock-handler
all: build test
build: runner mock-handler
runner:
@echo "Building test runner..."
@mkdir -p $(BUILD_DIR)
go build -o $(RUNNER_BIN) ./cmd/runner
mock-handler:
@echo "Building mock handler..."
@mkdir -p $(BUILD_DIR)
go build -o $(MOCK_HANDLER_BIN) ./cmd/mock-handler
test:
@echo "Running runner unit tests..."
go test -v ./runner/...
@echo "Running conformance tests with mock handler..."
$(RUNNER_BIN) --handler $(MOCK_HANDLER_BIN) -vv
clean:
@echo "Cleaning build artifacts..."
rm -rf $(BUILD_DIR)