63 lines
2.8 KiB
Makefile
63 lines
2.8 KiB
Makefile
|
|
#? test-sim-nondeterminism: Run non-determinism test for simapp
|
|
test-sim-nondeterminism:
|
|
@echo "Running non-determinism test..."
|
|
@cd ${CURRENT_DIR}/simapp/v2 && go test -failfast -mod=readonly -timeout=30m -tags='sims' -run TestAppStateDeterminism \
|
|
-NumBlocks=100 -BlockSize=200
|
|
|
|
test-sim-import-export:
|
|
@echo "Running application import/export simulation. This may take several minutes..."
|
|
@cd ${CURRENT_DIR}/simapp/v2 && go test -failfast -mod=readonly -timeout 20m -tags='sims' -run TestAppImportExport \
|
|
-NumBlocks=50
|
|
|
|
test-sim-after-import:
|
|
@echo "Running application simulation-after-import. This may take several minutes..."
|
|
@cd ${CURRENT_DIR}/simapp/v2 && go test -failfast -mod=readonly -timeout 30m -tags='sims' -run TestAppSimulationAfterImport \
|
|
-NumBlocks=50
|
|
|
|
|
|
test-sim-multi-seed-long:
|
|
@echo "Running long multi-seed application simulation. This may take awhile!"
|
|
@cd ${CURRENT_DIR}/simapp/v2 && go test -failfast -mod=readonly -timeout=2h -tags='sims' -run TestFullAppSimulation \
|
|
-NumBlocks=150
|
|
|
|
test-sim-multi-seed-short:
|
|
@echo "Running short multi-seed application simulation. This may take awhile!"
|
|
@cd ${CURRENT_DIR}/simapp/v2 && go test -failfast -mod=readonly -timeout 30m -tags='sims' -run TestFullAppSimulation \
|
|
-NumBlocks=50
|
|
|
|
.PHONY: \
|
|
test-sim-nondeterminism \
|
|
test-sim-import-export \
|
|
test-sim-after-import \
|
|
test-sim-multi-seed-short \
|
|
test-sim-multi-seed-long \
|
|
|
|
SIM_NUM_BLOCKS ?= 500
|
|
SIM_BLOCK_SIZE ?= 200
|
|
|
|
#? test-sim-fuzz: Run fuzz test for simapp
|
|
test-sim-fuzz:
|
|
@echo "Running application fuzz for numBlocks=2, blockSize=20. This may take awhile!"
|
|
#ld flags are a quick fix to make it work on current osx
|
|
@cd ${CURRENT_DIR}/simapp/v2 && go test -failfast -mod=readonly -json -tags='sims' -timeout=60m -fuzztime=60m -run=^$$ -fuzz=FuzzFullAppSimulation -GenesisTime=1714720615 -NumBlocks=2 -BlockSize=20
|
|
|
|
#? test-sim-benchmark: Run benchmark test for simapp
|
|
test-sim-benchmark:
|
|
@echo "Running application benchmark for numBlocks=$(SIM_NUM_BLOCKS), blockSize=$(SIM_BLOCK_SIZE). This may take awhile!"
|
|
@cd ${CURRENT_DIR}/simapp/v2 && go test -failfast -mod=readonly -tags='sims' -run=^$$ $(.) -bench ^BenchmarkFullAppSimulation$$ \
|
|
-NumBlocks=$(SIM_NUM_BLOCKS) -BlockSize=$(SIM_BLOCK_SIZE)
|
|
|
|
|
|
test-sim-profile:
|
|
@echo "Running application benchmark for numBlocks=$(SIM_NUM_BLOCKS), blockSize=$(SIM_BLOCK_SIZE). This may take awhile!"
|
|
@cd ${CURRENT_DIR}/simapp/v2 && go test -failfast -mod=readonly -tags='sims' -benchmem -run=^$$ $(.) -bench ^BenchmarkFullAppSimulation$$ \
|
|
-NumBlocks=$(SIM_NUM_BLOCKS) -BlockSize=$(SIM_BLOCK_SIZE) -cpuprofile cpu.out -memprofile mem.out
|
|
|
|
.PHONY: test-sim-profile test-sim-benchmark test-sim-fuzz
|
|
|
|
#? benchmark: Run benchmark tests
|
|
benchmark:
|
|
@go test -failfast -mod=readonly -bench=. $(PACKAGES_NOSIMULATION)
|
|
.PHONY: benchmark
|