add test for compiler output when compiling with rustc/clippy-driver
This commit is contained in:
parent
88ab10400b
commit
f1d5cd5d13
1 changed files with 5 additions and 0 deletions
5
.github/driver.sh
vendored
5
.github/driver.sh
vendored
|
|
@ -31,4 +31,9 @@ diff normalized.stderr tests/ui/cstring.stderr
|
|||
SYSROOT=`rustc --print sysroot`
|
||||
diff <(LD_LIBRARY_PATH=${SYSROOT}/lib ./target/debug/clippy-driver --rustc --version --verbose) <(rustc --version --verbose)
|
||||
|
||||
# we can't run 2 rustcs on the same file at the same time
|
||||
CLIPPY=`LD_LIBRARY_PATH=${SYSROOT}/lib ./target/debug/clippy-driver tests/driver/main.rs`
|
||||
RUSTC=`rustc tests/driver/main.rs`
|
||||
diff <($CLIPPY) <($RUSTC)
|
||||
|
||||
# TODO: CLIPPY_CONF_DIR / CARGO_MANIFEST_DIR
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue