Commit Graph

72 Commits

Author SHA1 Message Date
Daira Hopwood 71e48e10f3 zcashd-wallet-tool: adjust man page to correct copyright information.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-24 18:41:41 +00:00
Daira Hopwood e8fc2e60b4 zcashd-wallet-tool: add man page generation. fixes #5729
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-24 14:15:01 +00:00
Daira Hopwood 1d31d4bc7c Include $(bin_SCRIPTS) in `check-symbols`, `check-security`, and `clean` targets.
Checking for stack canaries in `check-security` is disabled for Rust executables
(Rust does support `-Z stack-protector=all` but only for the nightly compiler).

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-13 22:53:29 +00:00
Daira Hopwood cf1047324e contrib/devtools/rust-deps-graph.sh: allow overriding the arguments to `cargo deps`.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-02-09 11:48:43 +00:00
Jack Grigg c37a69a357 depends Update Rust to 1.57.0
Also adds a developer script to make updating the hashes easier.
2021-12-16 17:57:34 +00:00
Jack Grigg 9803111210 contrib: Add script for generating a graph of our Rust dependencies
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2021-09-17 13:38:01 +01:00
Dimitris Apostolou f459e43dc9
Update links 2020-12-13 11:24:44 +02:00
DesWurstes be186b8112 Obsolete #!/bin/bash shebang 2020-10-27 23:05:18 +00:00
practicalswift 0eef155a4a Explicitly specify encoding when opening text files in Python code 2020-10-27 23:05:02 +00:00
MarcoFalke c2848070b4 test: Move linters to test/lint, add readme
Zcash: Only the lint-* scripts we have backported.
2020-10-27 23:05:02 +00:00
John Newbery 2788e33710 [contrib] convert test-security-check to python3 2020-10-27 23:05:02 +00:00
practicalswift 5d0affeafb add lint tool to check python3 shebang 2020-10-27 23:05:02 +00:00
practicalswift eab2490ea4 Add shell script linting: Check for shellcheck warnings in shell scripts 2020-10-27 23:05:02 +00:00
MarcoFalke 5747638ecf Refine travis check for duplicate includes
This partially reverts commit c36b720d009f1ab1c3900750e05c1f17412e564d.
2020-10-27 23:05:02 +00:00
practicalswift a3afa2a17e Add Travis check for duplicate includes
This enforces parts of the project header include guidelines (added by @sipa in #10575).
2020-10-27 23:05:02 +00:00
practicalswift 87bc7fc83e Add lint-include-guards.sh which checks include guard consistency 2020-10-27 23:05:02 +00:00
Akio Nakamura b2d56059fa [script] lint-whitespace: improve print linenumber
Before this PR, the linenumber infomaition is output if trailing-space
or tab code was found, but the output occurence is only per a file.
This PR separates the output timing of file name and line number.
As a result, users will find where they need to fix more easily.
2020-10-27 23:05:02 +00:00
MarcoFalke 87f4e1c488 devtools: Exclude patches from lint-whitespace 2020-10-27 23:05:02 +00:00
Sjors Provoost c1683a142b [scripts] lint-whitespace: check last N commits or unstaged changes
Get usage instructions:
.lint-whitespace.sh -?
2020-10-27 23:05:02 +00:00
Sjors Provoost 034fe80a79 [scripts] lint-whitespace: use perl instead of grep -P
MacOS does not support 'grep -P' out of the box. This change makes
it easier for developers to check for whitespace problems locally.
2020-10-27 23:05:02 +00:00
Wladimir J. van der Laan b77da1fd0c contrib: Ignore historical release notes for whitespace check
Lint checks should not test these, they are historical documents,
and we don't want to encourage silly changes to them to satisfy
a checker.

Hopefully makes travis pass again on master.

Tree-SHA512: 37e6716c4fd5e8a4e579f9b84042e6b0ac224836b6c851cd1ca3f7d46611ffd3003bed0ae08dd0457f69d6eaa485a0d21c631e7ef16b14bdb0f2f78ea700332d
2020-10-27 23:05:02 +00:00
MeshCollider 378d6d04aa Add tab char lint check and exclude imported dependencies 2020-10-27 23:05:02 +00:00
Evan Klitzke 5da5d54216 Add a lint check for trailing whitespace.
This adds a new CHECK_DOC check that looks for newly introduced trailing
whitespace. Existing trailing whitespace (of which there is plenty!)
will not trigger an error.

This is written in a generic way so that new lint-*.sh scripts can be
added to contrib/devtools/, as I'd like to contribute additional lint
checks in the future.
2020-10-27 23:05:02 +00:00
practicalswift ab5fdb7c7d Use bash instead of POSIX sh. POSIX sh does not support arrays. 2020-10-27 15:09:43 +00:00
Hennadii Stepanov 1d3af17140 Enable ShellCheck rules
Enabled ShellCheck rules:
  SC1087
  SC2001
  SC2004
  SC2005
  SC2006
  SC2016
  SC2028
  SC2048
  SC2066 (note that IFS already contains only a line feed)
  SC2116
  SC2166
  SC2181
  SC2206
  SC2207
  SC2230
  SC2236

Zcash: Only the changes that applied to the versions of the scripts we have.
2020-10-26 17:36:26 +00:00
practicalswift 3b1bf4b4af Add "export LC_ALL=C" to all shell scripts
Zcash: Only for shell scripts we have from upstream.
2020-10-26 17:36:26 +00:00
MarcoFalke 6506fbacf1 test: Move linters to test/lint, add readme 2020-10-26 17:36:26 +00:00
Pieter Wuille 6b6f3b5649 Fail on commit with VERIFY SCRIPT but no scripted-diff 2020-10-26 17:20:55 +00:00
Cory Fields 553c9e6850 devtools: add script to verify scriptable changes 2020-10-26 15:54:33 +00:00
Daira Hopwood f2d7fd6323 contrib/devtools/symbol-check.py: add info about Fedora-based distributions.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2020-10-19 14:47:29 +01:00
Daira Hopwood d54d4d083e Update contrib/devtools/symbol-check.py
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2020-10-19 14:47:29 +01:00
noname45688@gmail.com 777cda9429 Update to Python 3 2020-06-30 16:41:59 -04:00
noname45688@gmail.com 6ab6279bd9 Updating to Python 3 2020-06-30 16:33:08 -04:00
Daira Hopwood bc909a7a7f Replace http with https: in links to the MIT license.
Also change MIT/X11 to just MIT, since no distinction was intended.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2019-07-18 15:26:01 +01:00
Jack Grigg 5e38c24c1d
Add Mach-O 64-bit detection to security-check.py
Fixes sec-hard test on MacOS CI worker. At some point we can extend this with
actual security hardening checks.
2018-06-07 17:49:01 +12:00
Matthew King 12d3277171
Favour python over python2 as per PR #7723 2018-06-05 21:57:21 +12:00
Matthew King d28d3d20de
Use portable #! in python scripts (/usr/bin/env) 2018-06-05 21:56:13 +12:00
Wladimir J. van der Laan 41b28420d2
devtools: Check for high-entropy ASLR in 64-bit PE executables
check_PE_PIE only checked for DYNAMIC_BASE, this is not enough
for (secure) ASLR on 64-bit.
2017-12-01 14:10:17 +00:00
syd 2d342736dc Get the sec-hard tests to run correctly.
This fixes the way arguments were passed to security-check, and also
a typo in how BIND_NOW was being searched for in a list.

Also fix how symbol-check is invoked although that script isn't
currently used.
2017-11-20 00:48:12 -05:00
Jack Grigg 2bf4f2781b
[manpage] Handle build numbers in versions 2017-04-19 14:21:45 +12:00
Simon ec85287c45 Remove QT translation support files 2017-03-10 10:01:48 -08:00
Daira Hopwood 648dcaffea Update which libraries are allowed to be linked to zcashd by symbol-check.py.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2017-03-07 19:15:08 +00:00
Jack Grigg a0e6d5a185
Adjust gen-manpages.sh for Zcash, use in Debian builds 2017-03-02 11:18:44 -08:00
nomnombtc 076406650c
improved gen-manpages.sh, includes bitcoin-tx and strips commit tag, now also runs binaries from build dir by default, added variables for more control 2017-03-02 11:18:43 -08:00
nomnombtc 0745198ccf
add gen-manpages.sh description to README.md 2017-02-23 02:24:54 +00:00
nomnombtc 95d93342c8
add script to generate manpages with help2man 2017-02-23 02:24:54 +00:00
Kevin Gallagher 74dcb5ff05
Include contrib/devtools/split-debug.sh from upstream 2016-10-15 15:57:11 -05:00
Cory Fields 3797182d51
release: add _IO_stdin_used to ignored exports
For details see: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=634261#109
2016-10-15 13:57:41 -05:00
Wladimir J. van der Laan 3599031edc
devtools: add libraries for bitcoin-qt to symbol check
Forgot to add these.
Also add a short description for each required library.
2016-10-15 13:48:56 -05:00
Jack Grigg 85fe644139
Remaining changes from bitcoin/bitcoin#6854
Add a check to symbol-check.py that checks that only the subset of
allowed libraries is imported (to avoid incompatibilities).

See 56734f4b27 for the earlier changes.
2016-10-15 13:47:10 -05:00