erc20-demurrage-token/python/run_tests.sh

45 lines
1.3 KiB
Bash
Raw Permalink Normal View History

2021-07-04 12:10:01 +02:00
#!/bin/bash
set -x
2021-07-04 12:10:01 +02:00
set -e
export PYTHONPATH=.
#modes=(MultiNocap MultiCap SingleCap SingleNocap)
2022-12-05 19:17:58 +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
2022-12-13 14:10:33 +01:00
ERC20_DEMURRAGE_TOKEN_TEST_MODE=$m python tests/test_burn.py
2021-07-04 12:10:01 +02:00
done
2022-12-05 19:17:58 +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
2022-12-05 19:17:58 +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
set +x