2021-07-04 12:10:01 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-07-05 10:26:39 +02:00
|
|
|
set -x
|
2021-07-04 12:10:01 +02:00
|
|
|
set -e
|
|
|
|
|
|
|
|
export PYTHONPATH=.
|
|
|
|
|
|
|
|
#modes=(MultiNocap MultiCap SingleCap SingleNocap)
|
2023-02-08 09:44:37 +01:00
|
|
|
#modes=(SingleCap SingleNocap) # other contracts need to be updted
|
|
|
|
modes=(SingleNocap) # other contracts need to be updted
|
2021-07-04 12:10:01 +02:00
|
|
|
for m in ${modes[@]}; do
|
|
|
|
ERC20_DEMURRAGE_TOKEN_TEST_MODE=$m python tests/test_basic.py
|
|
|
|
ERC20_DEMURRAGE_TOKEN_TEST_MODE=$m python tests/test_growth.py
|
|
|
|
ERC20_DEMURRAGE_TOKEN_TEST_MODE=$m python tests/test_amounts.py
|
|
|
|
ERC20_DEMURRAGE_TOKEN_TEST_MODE=$m python tests/test_single.py
|
|
|
|
done
|
|
|
|
|
2023-02-08 09:44:37 +01:00
|
|
|
#modes=(SingleCap) # other contracts need to be updted
|
|
|
|
modes=()
|
2021-07-04 12:10:01 +02:00
|
|
|
for m in ${modes[@]}; do
|
|
|
|
ERC20_DEMURRAGE_TOKEN_TEST_MODE=$m python tests/test_period.py
|
2022-05-27 13:10:31 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
modes=(SingleNocap) # other contracts need to be updted
|
|
|
|
for m in ${modes[@]}; do
|
|
|
|
ERC20_DEMURRAGE_TOKEN_TEST_MODE=$m python tests/test_redistribution_unit.py
|
2022-05-28 11:28:10 +02:00
|
|
|
ERC20_DEMURRAGE_TOKEN_TEST_MODE=$m python tests/test_redistribution_single.py
|
2021-07-04 12:10:01 +02:00
|
|
|
done
|
|
|
|
|
2023-02-08 09:44:37 +01:00
|
|
|
#modes=(MultiCap SingleCap)
|
|
|
|
modes=()
|
2021-07-04 12:10:01 +02:00
|
|
|
for m in ${modes[@]}; do
|
|
|
|
ERC20_DEMURRAGE_TOKEN_TEST_MODE=$m python tests/test_cap.py
|
|
|
|
done
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
2023-02-10 16:21:37 +01:00
|
|
|
python tests/test_expiry.py
|
|
|
|
python tests/test_seal.py
|
2023-02-10 16:58:31 +01:00
|
|
|
python tests/test_cap.py
|
2023-02-10 16:21:37 +01:00
|
|
|
|
2021-07-04 12:10:01 +02:00
|
|
|
set +e
|
2021-07-05 10:26:39 +02:00
|
|
|
set +x
|