add test for compiler output when compiling with rustc/clippy-driver

This commit is contained in:
Matthias Krüger 2020-06-07 16:27:41 +02:00
parent 88ab10400b
commit f1d5cd5d13

5
.github/driver.sh vendored
View file

@ -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