Skip to content

Commit f1d5cd5

Browse files
committed
add test for compiler output when compiling with rustc/clippy-driver
1 parent 88ab104 commit f1d5cd5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/driver.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,9 @@ diff normalized.stderr tests/ui/cstring.stderr
3131
SYSROOT=`rustc --print sysroot`
3232
diff <(LD_LIBRARY_PATH=${SYSROOT}/lib ./target/debug/clippy-driver --rustc --version --verbose) <(rustc --version --verbose)
3333

34+
# we can't run 2 rustcs on the same file at the same time
35+
CLIPPY=`LD_LIBRARY_PATH=${SYSROOT}/lib ./target/debug/clippy-driver tests/driver/main.rs`
36+
RUSTC=`rustc tests/driver/main.rs`
37+
diff <($CLIPPY) <($RUSTC)
38+
3439
# TODO: CLIPPY_CONF_DIR / CARGO_MANIFEST_DIR

0 commit comments

Comments
 (0)