test-release.sh: fixes, BTC-only fixes

This commit is contained in:
The MMGen Project 2025-09-09 11:27:04 +00:00
commit 8c3b28a332
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 23 additions and 14 deletions

View file

@ -42,19 +42,19 @@ init_tests() {
d_obj="data objects"
t_obj="
- $objtest_py --coin=btc
- $objtest_py --getobj --coin=btc
- $objtest_py --coin=btc --testnet=1
x $objtest_py --coin=btc
x $objtest_py --getobj --coin=btc
x $objtest_py --coin=btc --testnet=1
a $objtest_py --coin=ltc
a $objtest_py --coin=ltc --testnet=1
a $objtest_py --coin=eth
- $objattrtest_py
x $objattrtest_py
"
[ "$SKIP_ALT_DEP" ] && t_obj_skip='a'
[ "$PYTHONOPTIMIZE" ] && {
echo -e "${YELLOW}PYTHONOPTIMIZE set, skipping object tests$RESET"
t_obj_skip='-'
t_obj_skip='x a'
}
d_color="color handling"
@ -174,14 +174,13 @@ init_tests() {
d_autosign="transaction autosigning with automount"
t_autosign="
- $cmdtest_py autosign_clean autosign_automount autosign
alt $cmdtest_py autosign_clean autosign_automount autosign
btc $cmdtest_py autosign_clean autosign_automount autosign_btc
- $cmdtest_py --coin=bch autosign_automount
ltc $cmdtest_py --coin=ltc autosign_automount
bch $cmdtest_py --coin=bch autosign_automount
"
if [ "$SKIP_ALT_DEP" ]; then t_autosign_skip='- ltc etc'; else t_autosign_skip='btc'; fi
[ "$FAST" ] && t_autosign_skip+=' ltc etc'
[ "$SKIP_PARITY" ] && t_autosign_skip+=' etc'
if [ "$SKIP_ALT_DEP" ]; then t_autosign_skip='ltc bch alt'; else t_autosign_skip='btc'; fi
[ "$FAST" ] && t_autosign_skip+=' ltc'
d_autosign_live="transaction and message autosigning (interactive)"
t_autosign_live="- $cmdtest_py autosign_live"
@ -220,9 +219,10 @@ init_tests() {
t_btc_rt="
- $cmdtest_py regtest
x $cmdtest_py regtest_legacy
- $cmdtest_py swap
a $cmdtest_py swap
"
[ "$FAST" ] && t_btc_skip='x'
[ "$FAST" ] && t_btc_rt_skip='x'
[ "$SKIP_ALT_DEP" ] && t_btc_rt_skip+=' a'
d_bch="overall operations with emulated RPC data (Bitcoin Cash Node)"
t_bch="

View file

@ -22,7 +22,10 @@ run_test() {
while read skip test; do
[ "$test" ] || continue
echo "${!skips}" | grep -q "\<$skip\>" && continue
echo "${!skips}" | grep -q "\<$skip\>" && {
echo -e "${GRAY}Skipping: $test$RESET"
continue
}
tests+=("$test")
done <<<${!tests_in}
@ -382,7 +385,13 @@ done
in_nix_environment && parity --help >/dev/null 2>&1 || SKIP_PARITY=1
[ "$MMGEN_DISABLE_COLOR" -o ! -t 1 ] || {
RED="\e[31;1m" GREEN="\e[32;1m" YELLOW="\e[33;1m" BLUE="\e[34;1m" MAGENTA="\e[35;1m" CYAN="\e[36;1m"
GRAY="\e[30;1m"
RED="\e[31;1m"
GREEN="\e[32;1m"
YELLOW="\e[33;1m"
BLUE="\e[34;1m"
MAGENTA="\e[35;1m"
CYAN="\e[36;1m"
RESET="\e[0m"
}