setup.py extmod: convert gcc warnings to errors; test-release.sh: add gcc test

This commit is contained in:
The MMGen Project 2026-09-06 10:08:42 +00:00
commit 256970f349
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 10 additions and 3 deletions

View file

@ -63,6 +63,6 @@ setup(
libraries = ['gmp', 'secp256k1', 'bcrypt'] if sys.platform == 'win32' else ['secp256k1'],
include_dirs = ['/usr/local/include'] if sys.platform == 'darwin' else [],
library_dirs = ['/usr/local/lib'] if sys.platform == 'darwin' else [],
extra_compile_args = ['-Wextra', '-fanalyzer'] if sys.platform == 'linux' else [],
extra_compile_args = ['-Wextra', '-Werror', '-fanalyzer'] if sys.platform == 'linux' else [],
)]
)

View file

@ -8,7 +8,7 @@
# https://github.com/mmgen/mmgen-wallet
# https://gitlab.com/mmgen/mmgen-wallet
all_tests="dep dev ruff pylint bandit obj color daemon mod hash ref altref altgen xmr geth reth autosign btc btc_tn btc_rt bch bch_tn bch_rt ltc ltc_tn ltc_rt tool tool2 gen alt help"
all_tests="dep dev ruff pylint bandit gcc obj color daemon mod hash ref altref altgen xmr geth reth autosign btc btc_tn btc_rt bch bch_tn bch_rt ltc ltc_tn ltc_rt tool tool2 gen alt help"
groups_desc="
default - All tests minus the extra tests
@ -20,7 +20,7 @@ groups_desc="
init_groups() {
dfl_tests='dep daemon alt obj color mod hash ref tool tool2 gen help autosign btc btc_tn btc_rt altref altgen bch bch_rt ltc ltc_rt geth reth etc rune xmr'
extra_tests='dep dev ruff pylint bandit autosign_live ltc_tn bch_tn'
extra_tests='dep dev ruff pylint bandit gcc autosign_live ltc_tn bch_tn'
noalt_tests='dep daemon alt obj color mod hash ref tool tool2 gen help autosign btc btc_tn btc_rt'
quick_tests='dep daemon alt obj color mod hash ref tool tool2 gen help autosign btc btc_rt altref altgen geth etc rune xmr'
qskip_tests='ruff btc_tn bch bch_rt ltc ltc_rt'
@ -98,6 +98,13 @@ init_tests() {
- $bandit examples
"
d_gcc="C code errors with ‘gcc -fanalyzer’"
e_gcc="Error checking failed!"
t_gcc="
- rm -rf build
- python3 ./setup.py build_ext --inplace $STDOUT_DEVNULL
"
d_daemon="low-level subsystems involving coin daemons"
t_daemon="- $daemontest_py --exclude exec"