2
2
3
3
# ? test-sim-nondeterminism: Run non-determinism test for simapp
4
4
test-sim-nondeterminism :
5
- # @echo "Running non-determinism test..."
6
- # @cd ${CURRENT_DIR}/simapp && go test -failfast -mod=readonly -timeout=30m -tags='sims' -run TestAppStateDeterminism \
7
- # -NumBlocks=100 -BlockSize=200 -Period=0
5
+ @echo " Running non-determinism test..."
6
+ @cd ${CURRENT_DIR} /simapp/v2 && go test -failfast -mod=readonly -timeout=30m -tags=' sims' -run TestAppStateDeterminism \
7
+ -NumBlocks=100 -BlockSize=200
8
+
8
9
9
10
# Requires an exported plugin. See store/streaming/README.md for documentation.
10
11
#
@@ -18,51 +19,45 @@ test-sim-nondeterminism:
18
19
test-sim-nondeterminism-streaming :
19
20
# @echo "Running non-determinism-streaming test..."
20
21
# @cd ${CURRENT_DIR}/simapp && go test -failfast -mod=readonly -timeout=30m -tags='sims' -run TestAppStateDeterminism \
21
- # -NumBlocks=100 -BlockSize=200 -Period=0 - EnableStreaming=true
22
+ # -NumBlocks=100 -BlockSize=200 -EnableStreaming=true
22
23
23
24
test-sim-custom-genesis-fast :
24
25
# @echo "Running custom genesis simulation..."
25
26
# @echo "By default, ${HOME}/.simapp/config/genesis.json will be used."
26
27
# @cd ${CURRENT_DIR}/simapp && go test -failfast -mod=readonly -timeout=30m -tags='sims' -run TestFullAppSimulation -Genesis=${HOME}/.simapp/config/genesis.json \
27
- # -NumBlocks=100 -BlockSize=200 -Seed=99 -Period=5 -SigverifyTx=false
28
+ # -NumBlocks=100 -BlockSize=200 -Seed=99 -SigverifyTx=false
28
29
29
30
test-sim-import-export :
30
- # @echo "Running application import/export simulation. This may take several minutes..."
31
- # @cd ${CURRENT_DIR}/simapp && go test -failfast -mod=readonly -timeout 20m -tags='sims' -run TestAppImportExport \
32
- # -NumBlocks=50 -Period=5
31
+ # @echo "Running application import/export simulation. This may take several minutes..."
32
+ # @cd ${CURRENT_DIR}/simapp/v2 && go test -failfast -mod=readonly -timeout 20m -tags='sims' -run TestAppImportExport \
33
+ # -NumBlocks=50
33
34
34
35
test-sim-after-import :
35
- # @echo "Running application simulation-after-import. This may take several minutes..."
36
- # @cd ${CURRENT_DIR}/simapp && go test -failfast -mod=readonly -timeout 30m -tags='sims' -run TestAppSimulationAfterImport \
37
- # -NumBlocks=50 -Period=5
36
+ @echo " Running application simulation-after-import. This may take several minutes..."
37
+ @cd ${CURRENT_DIR} /simapp/v2 && go test -failfast -mod=readonly -timeout 30m -tags=' sims' -run TestAppSimulationAfterImport \
38
+ -NumBlocks=50
38
39
39
40
test-sim-custom-genesis-multi-seed :
40
41
# @echo "Running multi-seed custom genesis simulation..."
41
42
# @echo "By default, ${HOME}/.simapp/config/genesis.json will be used."
42
- # @cd ${CURRENT_DIR}/simapp && go test -failfast -mod=readonly -timeout 30m -tags='sims' -run TestFullAppSimulation -Genesis=${HOME}/.simapp/config/genesis.json \
43
- # -NumBlocks=400 -Period=5
43
+ # @cd ${CURRENT_DIR}/simapp/v2 && go test -failfast -mod=readonly -timeout 30m -tags='sims' -run TestFullAppSimulation -Genesis=${HOME}/.simapp/config/genesis.json \
44
+ # -NumBlocks=400
44
45
45
46
test-sim-multi-seed-long :
46
- # @echo "Running long multi-seed application simulation. This may take awhile!"
47
- # @cd ${CURRENT_DIR}/simapp && go test -failfast -mod=readonly -timeout=2h -tags='sims' -run TestFullAppSimulation \
48
- # -NumBlocks=150 -Period=50
49
-
50
- test-sim-multi-seed-short : test-v2-sim
51
- # @echo "Running short multi-seed application simulation. This may take awhile!"
52
- # @cd ${CURRENT_DIR}/simapp && go test -failfast -mod=readonly -timeout 30m -tags='sims' -run TestFullAppSimulation \
53
- # -NumBlocks=50 -Period=10 -FauxMerkle=true
47
+ @echo " Running long multi-seed application simulation. This may take awhile!"
48
+ @cd ${CURRENT_DIR} /simapp/v2 && go test -failfast -mod=readonly -timeout=2h -tags=' sims' -run TestFullAppSimulation \
49
+ -NumBlocks=150
54
50
55
- .Phony : test-v2-sim
56
- test-v2-sim :
57
- @echo " Running short multi-seed application simulation. This may take awhile!"
58
- @cd ${CURRENT_DIR} /simapp/v2 && go test -failfast -mod=readonly -timeout 30m -tags=' sims' -run TestSimsAppV2 \
59
- # -NumBlocks=50 -Period=10 -FauxMerkle=true
51
+ test-sim-multi-seed-short :
52
+ @echo " Running short multi-seed application simulation. This may take awhile!"
53
+ @cd ${CURRENT_DIR} /simapp/v2 && go test -failfast -mod=readonly -timeout 30m -tags=' sims' -run TestFullAppSimulation \
54
+ -NumBlocks=50
60
55
61
56
test-sim-benchmark-invariants :
62
57
# @echo "Running simulation invariant benchmarks..."
63
58
# cd ${CURRENT_DIR}/simapp && go test -failfast -mod=readonly -benchmem -bench=BenchmarkInvariants -tags='sims' -run=^$ \
64
59
# -Enabled=true -NumBlocks=1000 -BlockSize=200 \
65
- # -Period=1 - Commit=true -Seed=57 -v -timeout 24h
60
+ # -Commit=true -Seed=57 -v -timeout 24h
66
61
67
62
.PHONY : \
68
63
test-sim-nondeterminism \
@@ -81,20 +76,20 @@ SIM_COMMIT ?= true
81
76
82
77
# ? test-sim-fuzz: Run fuzz test for simapp
83
78
test-sim-fuzz :
84
- @echo " Running application fuzz for numBlocks=2, blockSize=20. This may take awhile!"
79
+ # @echo "Running application fuzz for numBlocks=2, blockSize=20. This may take awhile!"
85
80
# ld flags are a quick fix to make it work on current osx
86
- @cd ${CURRENT_DIR}/simapp && go test -failfast -mod=readonly -json -tags='sims' -ldflags="-extldflags=-Wl,-ld_classic" -timeout=60m -fuzztime=60m -run=^$$ -fuzz=FuzzFullAppSimulation -GenesisTime=1714720615 -NumBlocks=2 -BlockSize=20
81
+ # @cd ${CURRENT_DIR}/simapp && go test -failfast -mod=readonly -json -tags='sims' -ldflags="-extldflags=-Wl,-ld_classic" -timeout=60m -fuzztime=60m -run=^$$ -fuzz=FuzzFullAppSimulation -GenesisTime=1714720615 -NumBlocks=2 -BlockSize=20
87
82
88
83
# ? test-sim-benchmark: Run benchmark test for simapp
89
84
test-sim-benchmark :
90
- @echo " Running application benchmark for numBlocks=$( SIM_NUM_BLOCKS) , blockSize=$( SIM_BLOCK_SIZE) . This may take awhile!"
91
- @cd ${CURRENT_DIR} /simapp && go test -failfast -mod=readonly -tags=' sims' -run=^$$ $(. ) -bench ^BenchmarkFullAppSimulation$$ \
85
+ # @echo "Running application benchmark for numBlocks=$(SIM_NUM_BLOCKS), blockSize=$(SIM_BLOCK_SIZE). This may take awhile!"
86
+ # @cd ${CURRENT_DIR}/simapp && go test -failfast -mod=readonly -tags='sims' -run=^$$ $(.) -bench ^BenchmarkFullAppSimulation$$ \
92
87
-Enabled=true -NumBlocks=$(SIM_NUM_BLOCKS) -BlockSize=$(SIM_BLOCK_SIZE) -Commit=$(SIM_COMMIT) -timeout 24h
93
88
94
89
95
90
test-sim-profile :
96
- @echo " Running application benchmark for numBlocks=$( SIM_NUM_BLOCKS) , blockSize=$( SIM_BLOCK_SIZE) . This may take awhile!"
97
- @cd ${CURRENT_DIR} /simapp && go test -failfast -mod=readonly -tags=' sims' -benchmem -run=^$$ $(. ) -bench ^BenchmarkFullAppSimulation$$ \
91
+ # @echo "Running application benchmark for numBlocks=$(SIM_NUM_BLOCKS), blockSize=$(SIM_BLOCK_SIZE). This may take awhile!"
92
+ # @cd ${CURRENT_DIR}/simapp && go test -failfast -mod=readonly -tags='sims' -benchmem -run=^$$ $(.) -bench ^BenchmarkFullAppSimulation$$ \
98
93
-Enabled=true -NumBlocks=$(SIM_NUM_BLOCKS) -BlockSize=$(SIM_BLOCK_SIZE) -Commit=$(SIM_COMMIT) -timeout 24h -cpuprofile cpu.out -memprofile mem.out
99
94
100
95
.PHONY : test-sim-profile test-sim-benchmark test-sim-fuzz
0 commit comments