-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (14 loc) · 791 Bytes
/
Makefile
File metadata and controls
20 lines (14 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
TEMP_TEST_OUTPUT=/tmp/contract-test-service.log
CARGO_FLAGS ?= ""
build-contract-tests:
@cargo build $(CARGO_FLAGS)
start-contract-test-service: build-contract-tests
@./target/debug/sse-test-api
start-contract-test-service-bg:
@echo "Test service output will be captured in $(TEMP_TEST_OUTPUT)"
@$(MAKE) start-contract-test-service >$(TEMP_TEST_OUTPUT) 2>&1 &
run-contract-tests:
@curl -s https://raw.githubusercontent.com/launchdarkly/sse-contract-tests/main/downloader/run.sh \
| VERSION=v2 PARAMS="-url http://localhost:8080 -debug -stop-service-at-end $(SKIPFLAGS) $(TEST_HARNESS_PARAMS)" sh
contract-tests: build-contract-tests start-contract-test-service-bg run-contract-tests
.PHONY: build-contract-tests start-contract-test-service run-contract-tests contract-tests