Browse Source

update test suite for MMGen Wallet v15.1.dev25

The MMGen Project 3 days ago
parent
commit
4688ee94c0

+ 2 - 1
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

+ 1 - 1
mmgen_node_tools/data/version

@@ -1 +1 @@
-3.5.dev8
+3.5.dev9

+ 1 - 1
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
 

+ 1 - 1
test/cmdtest_d/cfg.py → 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 = []

+ 3 - 3
test/cmdtest_d/ct_main.py → 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'

+ 3 - 3
test/cmdtest_d/ct_misc.py → 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')
 

+ 5 - 5
test/cmdtest_d/ct_regtest.py → 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']

+ 18 - 13
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