Skip to content

Commit 68b6924

Browse files
committedApr 26, 2019
compiletest: Make the LLVM FileCheck tool available to run-make tests.
1 parent 3ee9363 commit 68b6924

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
 

‎src/test/run-make-fulldeps/tools.mk

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ DYLIB = $(TMPDIR)/$(1).dll
4747
STATICLIB = $(TMPDIR)/$(1).lib
4848
STATICLIB_GLOB = $(1)*.lib
4949
BIN = $(1).exe
50+
LLVM_FILECHECK := $(shell cygpath -u "$(LLVM_FILECHECK)")
5051
else
5152
RUN = $(TARGET_RPATH_ENV) $(RUN_BINFILE)
5253
FAIL = $(TARGET_RPATH_ENV) $(RUN_BINFILE) && exit 1 || exit 0

‎src/tools/compiletest/src/runtest.rs

+4
Original file line numberDiff line numberDiff line change
@@ -2691,6 +2691,10 @@ impl<'test> TestCx<'test> {
26912691
cmd.env("CLANG", clang);
26922692
}
26932693

2694+
if let Some(ref filecheck) = self.config.llvm_filecheck {
2695+
cmd.env("LLVM_FILECHECK", filecheck);
2696+
}
2697+
26942698
// We don't want RUSTFLAGS set from the outside to interfere with
26952699
// compiler flags set in the test cases:
26962700
cmd.env_remove("RUSTFLAGS");

0 commit comments

Comments
 (0)
Please sign in to comment.