diff --git a/.gitignore b/.gitignore index c77303f50e..3fe36aba89 100644 --- a/.gitignore +++ b/.gitignore @@ -130,6 +130,7 @@ win32-build test/config.ini test/cache/* test/.mypy_cache/ +test/lint/test_runner/target/ !src/leveldb*/Makefile diff --git a/Makefile.am b/Makefile.am index eec498dc0e..5ea690dec8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -338,7 +338,7 @@ clean-docs: clean-local: clean-docs rm -rf coverage_percent.txt test_bitcoin.coverage/ total.coverage/ fuzz.coverage/ test/tmp/ cache/ $(OSX_APP) rm -rf test/functional/__pycache__ test/functional/test_framework/__pycache__ test/cache share/rpcauth/__pycache__ - rm -rf osx_volname dist/ + rm -rf osx_volname dist/ test/lint/test_runner/target/ test/lint/__pycache__ test-security-check: if TARGET_DARWIN diff --git a/test/lint/README.md b/test/lint/README.md index 9cb61b484c..83264de06e 100644 --- a/test/lint/README.md +++ b/test/lint/README.md @@ -16,7 +16,11 @@ result is cached and it prevents issues when the image changes. test runner =========== -To run all the lint checks in the test runner outside the docker, use: +To run all the lint checks in the test runner outside the docker you first need +to install the rust toolchain using your package manager of choice or +[rustup](https://www.rust-lang.org/tools/install). + +Then you can use: ```sh ( cd ./test/lint/test_runner/ && cargo fmt && cargo clippy && RUST_BACKTRACE=1 cargo run )