Browse Source

test-release.sh: add SOC config variable

The MMGen Project 2 months ago
parent
commit
0e26bbf005
2 changed files with 17 additions and 10 deletions
  1. 13 3
      test/test-release.d/cfg.sh
  2. 4 7
      test/test-release.sh

+ 13 - 3
test/test-release.d/cfg.sh

@@ -258,16 +258,20 @@ init_tests() {
 	d_ltc_rt="overall operations using the regtest network (Litecoin)"
 	t_ltc_rt="- $cmdtest_py --coin=ltc regtest"
 
+	[ "$SOC" ] && {
+		eth_env="MMGEN_TEST_SUITE_DEVNET_BLOCK_PERIOD=${MMGEN_TEST_SUITE_DEVNET_BLOCK_PERIOD:-22} "
+	}
+
 	d_geth="operations for Ethereum using devnet (Go-Ethereum daemon)"
 	t_geth="
 		- $cmdtest_py --coin=btc --eth-daemon-id=geth ethswap
-		- $cmdtest_py --coin=eth --eth-daemon-id=geth autosign_eth ethbump ethdev
+		- $eth_env$cmdtest_py --coin=eth --eth-daemon-id=geth autosign_eth ethbump ethdev
 	"
 
 	d_reth="operations for Ethereum using devnet (Rust Ethereum daemon)"
 	t_reth="
 		r $cmdtest_py --coin=btc --eth-daemon-id=reth ethswap
-		r $cmdtest_py --coin=eth --eth-daemon-id=reth autosign_eth ethbump ethdev
+		r $eth_env$cmdtest_py --coin=eth --eth-daemon-id=reth autosign_eth ethbump ethdev
 	"
 	[ "$FAST" ]  && t_reth_skip='r'
 
@@ -284,9 +288,15 @@ init_tests() {
 		- $cmdtest_py runeswap
 	"
 
+	[ "$SOC" ] && {
+		xmr_env1="MMGEN_TEST_SUITE_PEXPECT_TIMEOUT=${MMGEN_TEST_SUITE_PEXPECT_TIMEOUT:-300} "
+		xmr_env2="MMGEN_HTTP_TIMEOUT=${MMGEN_HTTP_TIMEOUT:-300} "
+		xmr_env3="MMGEN_DAEMON_STATE_TIMEOUT=${MMGEN_DAEMON_STATE_TIMEOUT:-180} "
+	}
+
 	d_xmr="Monero xmrwallet operations"
 	t_xmr="
-		- $HTTP_LONG_TIMEOUT$cmdtest_py$PEXPECT_LONG_TIMEOUT --coin=xmr --exclude help
+		- $xmr_env1$xmr_env2$xmr_env3$cmdtest_py --coin=xmr --exclude help
 	"
 
 	d_tool2="'mmgen-tool' utility with data check"

+ 4 - 7
test/test-release.sh

@@ -245,9 +245,11 @@ orig_cwd=$(pwd)
 repo=$(basename $orig_cwd)
 
 if [ "$(uname -m)" == 'armv7l' ]; then
-	ARM32=1
+	SOC=1 ARM32=1
 elif [ "$(uname -m)" == 'aarch64' ]; then
-	ARM64=1
+	SOC=1 ARM64=1
+elif [ "$(uname -m)" == 'riscv64' ]; then
+	SOC=1 RISCV64=1
 elif [ "$(uname -s)" == 'Darwin' ]; then
 	DARWIN=1
 	DISTRO='DARWIN'
@@ -256,11 +258,6 @@ elif [ "$MSYSTEM" ] && uname -a | grep -qi 'msys'; then
 	DISTRO='MSYS2'
 fi
 
-[ "$ARM32" -o "$ARM64" ] && {
-	PEXPECT_LONG_TIMEOUT=' --pexpect-timeout=300'
-	HTTP_LONG_TIMEOUT='MMGEN_HTTP_TIMEOUT=300 '
-}
-
 if [ -e '/etc/os-release' ]; then
 	DISTRO=$(grep '^ID=' '/etc/os-release' | cut -c 4-)
 	[ "$DISTRO" ] || {