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-04 15:41:40 +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
|
2023-02-04 15:41:40 +01:00
|
|
|
ERC20_DEMURRAGE_TOKEN_TEST_MODE=$m python tests/test_burn.py
|
2021-07-04 12:10:01 +02:00
|
|
|
done
|
|
|
|
|
2023-02-04 15:41:40 +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-30 09:53:22 +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
|
|
|
|
ERC20_DEMURRAGE_TOKEN_TEST_MODE=$m python tests/test_redistribution_single.py
|
2021-07-04 12:10:01 +02:00
|
|
|
done
|
|
|
|
|
2023-02-04 15:41:40 +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
|
|
|
|
|
|
|
|
set +e
|
2021-07-05 10:26:39 +02:00
|
|
|
set +x
|