Commit graph

109 commits

Author SHA1 Message Date
5252e8d691
test-release.py: restore Pylint test 2025-03-15 18:24:52 +00:00
7b6717d85a
fixes and cleanups throughout 2025-02-24 11:27:44 +00:00
e54f039690
update copyright dates 2025-02-16 14:42:27 +00:00
92fc9fd462
fixes and cleanups throughout 2025-02-15 09:54:19 +00:00
783b05e373
migrate from Pylint to Ruff
Testing:

    $ test/test-release.sh -v lint
2025-01-03 14:23:14 +00:00
af50f1b328
test suite: minor fixes and cleanups 2024-12-30 11:31:40 +00:00
353a4a1f4e
Nix compatibility fixes 2024-12-30 11:31:39 +00:00
5f3920b11a
unit_tests.py -> modtest.py, daemontest.py 2024-10-18 10:43:27 +00:00
5150ca586b
update file header 2024-10-18 10:32:06 +00:00
91991a13de
support macOS (BTC-only, no autosign)
Testing:

    $ test/test-release.sh -FCSTA

Tested on macOS 13.6.7 (Ventura) + Xcode 15.0.1
2024-07-27 10:01:05 +00:00
a0eb2871f9
minor fixes and cleanups throughout 2024-07-27 09:56:20 +00:00
6fae61ec7c
whitespace 2024-07-27 09:16:43 +00:00
bd63c36bee
new command: test/clean.py 2024-07-20 16:40:57 +00:00
7692980f39
minor testing fix, update release notes 2024-07-11 11:36:21 +00:00
82f2fb1db9
BTC-only testing fixes 2024-07-08 10:51:21 +00:00
81c822dd95
minor testing fixes 2024-05-22 12:04:35 +00:00
d29ea73264
test/test-release.sh: add -e (exec_prog) option 2024-01-26 10:54:03 +00:00
8e46932475
update copyright dates 2024-01-19 11:05:10 +00:00
5c521efb0d
test/test-release.sh: add -T (typescript) opt 2024-01-19 11:05:10 +00:00
35836a7659
test/test-release.sh: add -C (test from cloned repo) opt 2024-01-19 11:05:09 +00:00
506e36a810
test/test-release.sh: add -I (install package) opt 2024-01-19 11:05:09 +00:00
be1c8c4232
test/test-release.sh: minor cleanups 2024-01-19 11:05:09 +00:00
7374b53130
update test/test-release.sh -S, MANIFEST.in 2023-12-07 16:48:00 +00:00
32b3558581
BTC-only testing fixes 2023-11-21 15:48:10 +00:00
48636ff2e0
update headers: mmgen -> mmgen-wallet 2023-11-17 13:35:42 +00:00
11b131fda8
pylint integration
Lint the entire MMGen Wallet code base, including test suite:

    # Install pylint:
    $ python3 -m pip install pylint

    # Perform the check:
    $ test/test-release.sh lint

The check should complete without error when running Python v3.9 or greater,
provided all required Python dependencies described in Test-Suite.md, including
altcoin dependencies, are installed.
2023-10-13 09:51:15 +00:00
60ce46c768
test rename: test.py -> cmdtest.py 2023-10-13 09:51:14 +00:00
0cc96af152
test suite: PYTHONPATH and other env var fixes 2023-09-25 13:25:00 +00:00
29ebec09c3
minor testing fixes 2023-06-13 18:32:20 +00:00
82fb37d09c
minor test fixes, minor Windows install fix 2023-05-21 11:34:16 +00:00
1aeefd64ae
update copyright dates 2023-01-03 10:36:07 +00:00
1fcac76363
test-release.sh: code/data cleanups 2022-10-25 09:09:43 +00:00
4e546030fa
test-release.sh: more granular control over test rounds 2022-10-05 19:22:42 +00:00
63c573e0d6
testing distro/platform compatibility fixes for ethkey,openethereum 2022-08-16 20:36:10 +00:00
1db6076410
scripts/exec_wrapper.py: improve traceback handling
- new environment var: EXEC_WRAPPER_TRACEBACK
2022-07-29 16:45:31 +00:00
0094d89bad
test-release.sh: move config code to test-release.d/cfg.sh 2022-07-27 17:09:00 +00:00
401744bf88
minor fixes and cleanups 2022-07-27 17:08:59 +00:00
85df3a432b
test-release.sh: remove install tests, add sdist test 2022-06-09 11:18:10 +00:00
d5e8d5b96f
various fixes and cleanups 2022-05-06 12:52:41 +00:00
4dd799104b
activate RIPEMD-160 code, add tests 2022-05-03 21:01:06 +00:00
feffc45fd5
Windows and Windows testing fixes 2022-05-03 21:01:05 +00:00
23457774e2
BTC-only testing fixes 2022-05-03 21:01:05 +00:00
01f52617f6
various fixes and cleanups 2022-05-03 21:01:05 +00:00
44cfe1c3dd
various changes and fixes throughout 2022-04-28 11:00:50 +00:00
0d0995f631
altcoin.py: use relative imports 2022-01-27 11:08:07 +00:00
5545a011b0
minor fixes and cleanups 2022-01-24 19:30:12 +00:00
b995cbf71e
permit execution of tests with optimization set
- all tests except object tests now run with PYTHONOPTIMIZE=2
2022-01-19 11:43:52 +00:00
32c522c039
overhaul public key and address generation code
- pubkey generation code has been rewritten and moved from addr.py to
  keygen.py
- address generation code has been rewritten and moved from addr.py to
  addrgen.py
- keygen/addrgen classes now present a consistent API across all pubkey and
  address types
- key/address operations and related data objects now use bytes internally
  instead of hex strings
- pubkey generator backends are now selected using the `--keygen-backend`
  option
- for Monero pubkeys, the new `nacl` backend has replaced `ed25519ll_djbec`
  as the default
- a minimal unit test has been added

Examples:

    # Generate a random Monero keypair using the unoptimized 'ed25519' backend:
    $ mmgen-tool --coin=xmr --keygen-backend=3 randpair

    # Generate an LTC Bech32 address list from the default wallet using the
    # 'python-ecdsa' backend:
    $ mmgen-addrgen --coin=ltc --type=bech32 --keygen-backend=2 1-10

Testing:

    # Run the minimal unit test:
    $ test/unit_tests_py gen

    # Compare BTC Segwit addresses from default 'libsecp256k1' backend to
    # 'pycoin' library, with edge cases and 10,000 random rounds:
    $ test/gentest.py --type=segwit 1:pycoin 10000

    # Test all configured Monero backends against 'moneropy', with edge cases
    # and 10 random rounds:
    $ test/gentest.py --coin=xmr all:moneropy 10

    # Test the 'nacl' and 'ed25519ll_djbec' backends against each other, with
    # edge cases and 1000 random rounds:
    $ test/gentest.py --coin=xmr 1:2 1000

    # Test the speed of the Monero 'nacl' backend using 10,000 rounds:
    $ test/gentest.py --coin=xmr 1 10000

    # Same for Zcash:
    $ test/gentest.py --coin=zec --type=zcash_z 1 10000
2022-01-15 14:00:12 +00:00
b43d827b50
rewrite test/gentest.py utility
- support for testing all configured generators in one go has also been added
  (via the 'all' subparameter)
2022-01-15 14:00:11 +00:00
d1dae7a3a1
test-release.sh: enable Python Development Mode with -d 2022-01-06 20:24:20 +00:00