mirror of
https://github.com/rustfs/rustfs.git
synced 2026-03-17 14:24:08 +00:00
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: houseme <4829346+houseme@users.noreply.github.com> Co-authored-by: heihutu <heihutu@gmail.com>
23 lines
689 B
Makefile
23 lines
689 B
Makefile
## —— Tests and e2e test ---------------------------------------------------------------------------
|
||
|
||
TEST_THREADS ?= 1
|
||
|
||
.PHONY: test
|
||
test: core-deps test-deps ## Run all tests
|
||
@echo "🧪 Running tests..."
|
||
@if command -v cargo-nextest >/dev/null 2>&1; then \
|
||
cargo nextest run --all --exclude e2e_test; \
|
||
else \
|
||
echo "ℹ️ cargo-nextest not found; falling back to 'cargo test'"; \
|
||
cargo test --workspace --exclude e2e_test -- --nocapture --test-threads="$(TEST_THREADS)"; \
|
||
fi
|
||
cargo test --all --doc
|
||
|
||
.PHONY: e2e-server
|
||
e2e-server: ## Run e2e-server tests
|
||
sh $(shell pwd)/scripts/run.sh
|
||
|
||
.PHONY: probe-e2e
|
||
probe-e2e: ## Probe e2e tests
|
||
sh $(shell pwd)/scripts/probe.sh
|