mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 02:03:53 +00:00
base-tests: use subshells to manage current directory
It saves on having to pair `cd <path> && think && cd ..`.
This commit is contained in:
parent
993e8ace8e
commit
b07f1b0974
@ -11,14 +11,15 @@ cargo build --features debugging
|
||||
cargo test --features debugging
|
||||
# for faster build, share target dir between subcrates
|
||||
export CARGO_TARGET_DIR=`pwd`/target/
|
||||
cd clippy_lints && cargo test && cd ..
|
||||
cd rustc_tools_util && cargo test && cd ..
|
||||
cd clippy_dev && cargo test && cd ..
|
||||
(cd clippy_lints && cargo test)
|
||||
(cd rustc_tools_util && cargo test)
|
||||
(cd clippy_dev && cargo test)
|
||||
|
||||
# make sure clippy can be called via ./path/to/cargo-clippy
|
||||
cd clippy_workspace_tests
|
||||
../target/debug/cargo-clippy
|
||||
cd ..
|
||||
(
|
||||
cd clippy_workspace_tests
|
||||
../target/debug/cargo-clippy
|
||||
)
|
||||
|
||||
# Perform various checks for lint registration
|
||||
./util/dev update_lints --check
|
||||
|
Loading…
Reference in New Issue
Block a user