forked from yanganto/relayer-game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tests.sh
executable file
·44 lines (39 loc) · 1.24 KB
/
tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env bash
echo "==========================="
echo "==== Test patch on cli ===="
echo "==========================="
echo ""
echo "======== no patch ==========="
cargo run -- -v scenario/linear_bond.yml
echo ""
echo "== patch bond_function=1.234 =="
cargo run -- -p bond_function=1.234 -v scenario/linear_bond.yml
echo ""
echo "======== no patch ==========="
cargo run -- -v scenario/basic.yml
echo ""
echo "== patch challenge_function=100 =="
cargo run -- -p challenge_function=100 -v scenario/linear_bond.yml
echo ""
echo "======== no patch ==========="
cargo run -- -v scenario/treasury_last.yml
echo "== patch reward_split.P=0.7 =="
cargo run -- -p reward_split.P=0.7 -- scenario/basic.yml
echo ""
echo "======== no patch ==========="
cargo run -- -v scenario/treasury_last.yml
echo "== patch reward_treasury_last.C=90 =="
cargo run -- -p reward_treasury_last.C=9.0 -- scenario/treasury_last.yml
echo ""
echo "==================================="
echo "==== Test some scenario on cli ===="
echo "==================================="
echo ""
cargo run -- -v scenario/sometimes_lie.yml
echo ""
cargo run -- -v scenario/challenger.yml
echo ""
cargo run -- -v scenario/multi-challengers.yml
echo ""
cargo run -- -v scenario/multi-challengers2.yml
echo ""