forked from cerc-io/laconicd-deprecated
ci: liveness test (#498)
* ci: liveness test * rm key * makefile * chmod * update docs
This commit is contained in:
@@ -299,18 +299,22 @@ build-docs-versioned:
|
||||
|
||||
test: test-unit
|
||||
test-all: test-unit test-race
|
||||
|
||||
PACKAGES_UNIT=$(shell go list ./...)
|
||||
TEST_PACKAGES=./...
|
||||
TEST_TARGETS := test-unit test-race
|
||||
TEST_TARGETS := test-unit test-unit-cover test-race
|
||||
|
||||
# Test runs-specific rules. To add a new test target, just add
|
||||
# a new rule, customise ARGS or TEST_PACKAGES ad libitum, and
|
||||
# append the new rule to the TEST_TARGETS list.
|
||||
test-unit: ARGS=-tags='norace'
|
||||
test-unit: ARGS=-timeout=10m -race
|
||||
test-unit: TEST_PACKAGES=$(PACKAGES_UNIT)
|
||||
|
||||
test-race: ARGS=-race
|
||||
test-race: TEST_PACKAGES=$(PACKAGES_NOSIMULATION)
|
||||
$(TEST_TARGETS): run-tests
|
||||
|
||||
test-unit-cover: ARGS=-timeout=10m -race -coverprofile=coverage.txt -covermode=atomic
|
||||
test-unit-cover: TEST_PACKAGES=$(PACKAGES_UNIT)
|
||||
|
||||
run-tests:
|
||||
ifneq (,$(shell which tparse 2>/dev/null))
|
||||
@@ -391,10 +395,6 @@ test-sim-multi-seed-short \
|
||||
test-sim-multi-seed-long \
|
||||
test-sim-benchmark-invariants
|
||||
|
||||
test-cover:
|
||||
@export VERSION=$(VERSION); bash -x contrib/test_cover.sh
|
||||
.PHONY: test-cover
|
||||
|
||||
benchmark:
|
||||
@go test -mod=readonly -bench=. $(PACKAGES_NOSIMULATION)
|
||||
.PHONY: benchmark
|
||||
|
||||
Reference in New Issue
Block a user