2021-06-05 11:58:35 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
export PYTHONPATH=.
|
|
|
|
|
2021-06-08 16:38:45 +02:00
|
|
|
#modes=(MultiNocap MultiCap SingleCap SingleNocap)
|
|
|
|
modes=(SingleCap SingleNocap) # other contracts need to be updted
|
2021-06-05 11:58:35 +02:00
|
|
|
for m in ${modes[@]}; do
|
|
|
|
ERC20_DEMURRAGE_TOKEN_TEST_MODE=$m python tests/test_period.py
|
|
|
|
ERC20_DEMURRAGE_TOKEN_TEST_MODE=$m python tests/test_basic.py
|
2021-06-08 07:38:10 +02:00
|
|
|
ERC20_DEMURRAGE_TOKEN_TEST_MODE=$m python tests/test_growth.py
|
2021-06-08 16:42:13 +02:00
|
|
|
ERC20_DEMURRAGE_TOKEN_TEST_MODE=$m python tests/test_amounts.py
|
2021-06-05 11:58:35 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
modes=(MultiCap SingleCap)
|
|
|
|
for m in ${modes[@]}; do
|
|
|
|
ERC20_DEMURRAGE_TOKEN_TEST_MODE=$m python tests/test_cap.py
|
|
|
|
done
|
|
|
|
|
|
|
|
modes=(SingleCap SingleNocap)
|
|
|
|
for m in ${modes[@]}; do
|
|
|
|
ERC20_DEMURRAGE_TOKEN_TEST_MODE=$m python tests/test_single.py
|
2021-06-07 09:36:31 +02:00
|
|
|
ERC20_DEMURRAGE_TOKEN_TEST_MODE=$m python tests/test_redistribution_unit.py
|
2021-06-05 11:58:35 +02:00
|
|
|
done
|
|
|
|
|
2021-06-08 16:38:45 +02:00
|
|
|
#modes=(MultiCap MultiNocap)
|
|
|
|
#for m in ${modes[@]}; do
|
|
|
|
# ERC20_DEMURRAGE_TOKEN_TEST_MODE=$m python tests/test_remainder.py
|
|
|
|
# ERC20_DEMURRAGE_TOKEN_TEST_MODE=$m python tests/test_redistribution.py
|
|
|
|
#done
|
2021-06-05 11:58:35 +02:00
|
|
|
|
|
|
|
set +e
|