From 4688ee94c0dfa1a73165e72a520182e724e47c47 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Sat, 29 Mar 2025 12:12:35 +0000 Subject: [PATCH] update test suite for MMGen Wallet v15.1.dev25 --- README.md | 3 +- mmgen_node_tools/data/version | 2 +- setup.cfg | 2 +- test/cmdtest_d/{ => include}/cfg.py | 2 +- test/cmdtest_d/{ct_main.py => main.py} | 6 ++-- test/cmdtest_d/{ct_misc.py => misc.py} | 6 ++-- test/cmdtest_d/{ct_regtest.py => regtest.py} | 10 +++---- test/init.sh | 31 ++++++++++++-------- 8 files changed, 34 insertions(+), 28 deletions(-) rename test/cmdtest_d/{ => include}/cfg.py (93%) rename test/cmdtest_d/{ct_main.py => main.py} (94%) rename test/cmdtest_d/{ct_misc.py => misc.py} (98%) rename test/cmdtest_d/{ct_regtest.py => regtest.py} (98%) diff --git a/README.md b/README.md index 89c43b2..a536cce 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,8 @@ $ python3 -m pip install --upgrade mmgen-node-tools ### Development version: -Install the latest development version of [MMGen Wallet][6] for your platform: +First install the latest development version of [MMGen Wallet][6] for your +platform. Then perform the following steps: ```bash $ git clone https://github.com/mmgen/mmgen-node-tools diff --git a/mmgen_node_tools/data/version b/mmgen_node_tools/data/version index 1e3f513..0602083 100644 --- a/mmgen_node_tools/data/version +++ b/mmgen_node_tools/data/version @@ -1 +1 @@ -3.5.dev8 +3.5.dev9 diff --git a/setup.cfg b/setup.cfg index c67cb47..905e659 100644 --- a/setup.cfg +++ b/setup.cfg @@ -38,7 +38,7 @@ python_requires = >=3.9 include_package_data = True install_requires = - mmgen-wallet>=15.1.dev23 + mmgen-wallet>=15.1.dev25 pyyaml yahooquery diff --git a/test/cmdtest_d/cfg.py b/test/cmdtest_d/include/cfg.py similarity index 93% rename from test/cmdtest_d/cfg.py rename to test/cmdtest_d/include/cfg.py index c28ce5d..5a4263d 100755 --- a/test/cmdtest_d/cfg.py +++ b/test/cmdtest_d/include/cfg.py @@ -9,7 +9,7 @@ # https://gitlab.com/mmgen/mmgen-node-tools """ -test.cmdtest_d.cfg: configuration data for cmdtest.py +test.cmdtest_d.include.cfg: configuration data for cmdtest.py """ cmd_groups_altcoin = [] diff --git a/test/cmdtest_d/ct_main.py b/test/cmdtest_d/main.py similarity index 94% rename from test/cmdtest_d/ct_main.py rename to test/cmdtest_d/main.py index 3009d2f..6e35b7d 100755 --- a/test/cmdtest_d/ct_main.py +++ b/test/cmdtest_d/main.py @@ -9,13 +9,13 @@ # https://gitlab.com/mmgen/mmgen-wallet """ -cmdtest_d.ct_main: Basic operations tests for the cmdtest.py test suite +cmdtest_d.main: Basic operations tests for the cmdtest.py test suite """ -import sys,time +import sys, time from ..include.common import cfg -from .ct_base import CmdTestBase +from .base import CmdTestBase class CmdTestMain(CmdTestBase): 'basic operations with fake RPC data' diff --git a/test/cmdtest_d/ct_misc.py b/test/cmdtest_d/misc.py similarity index 98% rename from test/cmdtest_d/ct_misc.py rename to test/cmdtest_d/misc.py index 15b109e..1a8175e 100755 --- a/test/cmdtest_d/ct_misc.py +++ b/test/cmdtest_d/misc.py @@ -9,13 +9,13 @@ # https://gitlab.com/mmgen/mmgen-node-tools """ -test.cmdtest_d.ct_misc: Miscellaneous test groups for the cmdtest.py test suite +test.cmdtest_d.misc: Miscellaneous test groups for the cmdtest.py test suite """ -import os,shutil +import os, shutil from ..include.common import cfg -from .ct_base import CmdTestBase +from .base import CmdTestBase refdir = os.path.join('test','ref','ticker') diff --git a/test/cmdtest_d/ct_regtest.py b/test/cmdtest_d/regtest.py similarity index 98% rename from test/cmdtest_d/ct_regtest.py rename to test/cmdtest_d/regtest.py index f043641..3b77836 100755 --- a/test/cmdtest_d/ct_regtest.py +++ b/test/cmdtest_d/regtest.py @@ -9,18 +9,18 @@ # https://gitlab.com/mmgen/mmgen-node-tools """ -test.cmdtest_d.ct_regtest: Regtest tests for the cmdtest.py test suite +test.cmdtest_d.regtest: Regtest tests for the cmdtest.py test suite """ -import sys,os +import sys, os from decimal import Decimal -from mmgen.util import msg_r,die,gmsg +from mmgen.util import msg_r, die, gmsg from mmgen.protocol import init_proto from mmgen.proto.btc.regtest import MMGenRegtest -from ..include.common import cfg,imsg,stop_test_daemons,joinpath -from .ct_base import CmdTestBase +from ..include.common import cfg, imsg, stop_test_daemons, joinpath +from .base import CmdTestBase args1 = ['--bob'] args2 = ['--bob','--rpc-backend=http'] diff --git a/test/init.sh b/test/init.sh index 94671f9..134f4f3 100755 --- a/test/init.sh +++ b/test/init.sh @@ -81,23 +81,28 @@ create_dir_links() { delete_old_stuff() { rm -rf test/unit_tests.py + rm -rf test/cmdtest_d/common.py + rm -rf test/cmdtest_d/ct_base.py + rm -rf test/cmdtest_d/group_mgr.py + rm -rf test/cmdtest_d/runner.py } create_test_links() { paths=' - test/include symbolic - test/overlay/__init__.py symbolic - test/overlay/fakemods/mmgen symbolic - test/__init__.py symbolic - test/clean.py symbolic - test/cmdtest.py hard - test/modtest.py hard - test/test-release.sh symbolic - test/cmdtest_d/common.py symbolic - test/cmdtest_d/ct_base.py symbolic - test/cmdtest_d/runner.py symbolic - test/cmdtest_d/group_mgr.py symbolic - cmds/mmgen-regtest symbolic + test/include symbolic + test/overlay/__init__.py symbolic + test/overlay/fakemods/mmgen symbolic + test/__init__.py symbolic + test/clean.py symbolic + test/cmdtest.py hard + test/modtest.py hard + test/test-release.sh symbolic + test/cmdtest_d/base.py symbolic + test/cmdtest_d/include/common.py symbolic + test/cmdtest_d/include/runner.py symbolic + test/cmdtest_d/include/group_mgr.py symbolic + test/cmdtest_d/include/pexpect.py symbolic + cmds/mmgen-regtest symbolic ' while read path type; do [ "$path" ] || continue