Diagnose missing includes in run-make tests
This commit is contained in:
parent
38528d4dc0
commit
ba74a628ad
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# Test that if we build `b` against a version of `a` that has one set
|
||||
# of types, it will not run with a dylib that has a different set of
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) --edition=2021 -Dwarnings --crate-type=rlib ../../../../library/alloc/src/lib.rs --cfg no_global_oom_handling
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# Test that -A warnings makes the 'empty trait list for derive' warning go away
|
||||
OUT=$(shell $(RUSTC) foo.rs -A warnings 2>&1 | grep "warning" )
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# Test that -A warnings makes the 'empty trait list for derive' warning go away
|
||||
DEP=$(shell $(RUSTC) bar.rs)
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
mkdir $(TMPDIR)/a
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) --crate-type=staticlib nonclike.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# This tests ensure that atomic types are never lowered into runtime library calls that are not
|
||||
# guaranteed to be lock-free.
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
cp foo.rs $(TMPDIR)
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# ignore-macos
|
||||
#
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# ignore-macos
|
||||
#
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all: $(TMPDIR)/$(call BIN,bar)
|
||||
$(call RUN,bar)
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# ignore-freebsd
|
||||
# FIXME
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) checkrust.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all: $(call NATIVE_STATICLIB,cfoo)
|
||||
$(RUSTC) foo.rs -C prefer-dynamic
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all: $(call NATIVE_STATICLIB,cfoo)
|
||||
$(RUSTC) foo.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all: archive
|
||||
# Compile `main.rs`, which will link into our library, and run it.
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all: $(call NATIVE_STATICLIB,add)
|
||||
$(RUSTC) main.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
echo a | $(CGREP) a
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Test that allocator-related symbols don't show up as exported from a cdylib as
|
||||
# they're internal to Rust and not part of the public ABI.
|
||||
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# ignore-windows
|
||||
# FIXME: The __rdl_ and __rust_ symbol still remains, no matter using MSVC or GNU
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
#Option taking a number
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
echo 'fn main(){}' | $(RUSTC) -
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
mkdir -p $(TMPDIR)/a $(TMPDIR)/b
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all: $(TMPDIR)/libnative.a
|
||||
mkdir -p $(TMPDIR)/crate
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# only-windows-gnu
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) --edition=2021 --crate-type=rlib ../../../../library/core/src/lib.rs --cfg no_fp_fmt_parse
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
[ `$(RUSTC) --print crate-name crate.rs` = "foo" ]
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../../run-make-fulldeps/tools.mk
|
||||
include ../../run-make-fulldeps/tools.mk
|
||||
|
||||
# Ensure that crates compiled with different rustc versions cannot
|
||||
# be dynamically linked.
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) foo.rs
|
||||
|
@ -3,7 +3,7 @@
|
||||
# This test makes sure that cross-language inlining actually works by checking
|
||||
# the generated machine code.
|
||||
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all: cpp-executable rust-executable
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
# can be executed without anything crashing. It does not test whether PGO or
|
||||
# xLTO have any specific effect on the generated code.
|
||||
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
COMMON_FLAGS=-Copt-level=3 -Ccodegen-units=1
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# ignore windows due to libLLVM being present in PATH and the PATH and library path being the same
|
||||
# (so fixing it is harder). See #57765 for context
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# ignore windows due to libLLVM being present in PATH and the PATH and library path being the same
|
||||
# (so fixing it is harder). See #57765 for context
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) debug.rs -C debug-assertions=no
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) foo.rs --emit dep-info
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# ignore-windows
|
||||
# ignore-freebsd
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# ignore-windows
|
||||
# ignore-freebsd
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) m1.rs -C prefer-dynamic
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# ignore-windows
|
||||
# ignore-macos
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) -Copt-level=0 --emit=llvm-bc,llvm-ir,asm,obj,link test-24876.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) foo.rs --crate-type staticlib
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
# Let's get a nice error message
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) success.rs; [ $$? -eq 0 ]
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) lib.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# Attempt to build this dependency tree:
|
||||
#
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) bar.rs --crate-type=rlib
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# Test mixing pathless --extern with paths.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) foo.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all: $(call NATIVE_STATICLIB,test)
|
||||
$(RUSTC) testcrate.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all: $(call NATIVE_STATICLIB,test)
|
||||
$(RUSTC) test.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# ignore-windows-msvc
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all: $(call NATIVE_STATICLIB,test)
|
||||
$(RUSTC) test.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all: $(call NATIVE_STATICLIB,ctest)
|
||||
$(RUSTC) test.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all: $(call NATIVE_STATICLIB,test)
|
||||
$(RUSTC) test.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all: $(call NATIVE_STATICLIB,ctest)
|
||||
$(RUSTC) testcrate.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) foo1.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) foo1.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) libc.rs -Cmetadata=foo
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) -C extra-filename=bar foo.rs -C save-temps
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all: foo
|
||||
$(call RUN,foo) | $(CGREP) -v unreachable
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all: foo
|
||||
$(call RUN,foo)
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# ignore-windows
|
||||
# ignore-macos
|
||||
|
@ -1,7 +1,7 @@
|
||||
# only-gnu
|
||||
# only-linux
|
||||
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# This ensures that std::env::args works in a library called from C on glibc Linux.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# Test that hir-tree output doesn't crash and includes
|
||||
# the string constant we would expect to see.
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# ignore-freebsd
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# rust-lang/rust#70924: Test that if we add rust-src component in between two
|
||||
# incremental compiles, the compiler does not ICE on the second.
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) foo.rs --emit llvm-ir -C codegen-units=2
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# The rust crate foo will link to the native library foo, while the rust crate
|
||||
# bar will link to the native library bar. There is also a dependency between
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# ignore-windows-msvc
|
||||
#
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
touch $(TMPDIR)/lib.rmeta
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
touch $(TMPDIR)/libfoo.a
|
||||
|
@ -5,7 +5,7 @@
|
||||
# and then our aux-built libraries will collide with liburl (they have
|
||||
# the same version listed)
|
||||
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
mkdir $(TMPDIR)/other
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# Test to make sure that reachable extern fns are always available in final
|
||||
# productcs, including when LTO is used. In this test, the `foo` crate has a
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
TMP=fake TMPDIR=fake $(RUSTC) foo.rs 2>&1 | $(CGREP) "couldn't create a temp dir:"
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all: $(call NATIVE_STATICLIB,foo)
|
||||
$(RUSTC) foo.rs -C extra-filename=-383hf8 -C prefer-dynamic
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# Regression test for ICE #18943 when compiling as lib
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# This test ensures that rustc compile_input can be called twice in one task
|
||||
# without causing a panic.
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# Test output to be four
|
||||
# The original error only occurred when printing, not when comparing using assert!
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all: foo.rs
|
||||
$(RUSTC) --cfg 'feature="bar"' --crate-type lib foo.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# only-linux
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all: $(call NATIVE_STATICLIB,test)
|
||||
$(RUSTC) test.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# ignore-windows
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# This test ensures that rustc does not panic with `-o ""` option.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all: $(call NATIVE_STATICLIB,a) $(call NATIVE_STATICLIB,b)
|
||||
$(RUSTC) a.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) -O foo.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
rm -f $(TMPDIR)/foo-output
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) --target x86_64_unknown-linux-musl main.rs 2>&1 | $(CGREP) \
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) main.rs --error-format json 2>&1 | $(CGREP) -e '"byte_start":23\b' '"byte_end":29\b'
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) a.rs && $(RUSTC) b.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) a.rs && $(RUSTC) b.rs && $(RUSTC) c.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) foo.rs; $(RUSTC) bar.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# The ICE occurred in the following situation:
|
||||
# * `foo` declares `extern crate bar, baz`, depends only on `bar` (forgetting `baz` in `Cargo.toml`)
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) main.rs -C opt-level=1
|
||||
|
@ -1,7 +1,7 @@
|
||||
# only-linux
|
||||
# ignore-32bit
|
||||
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) eh_frame-terminator.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# ignore-windows-msvc
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) panic.rs
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# `llvm-objdump`'s output looks different on windows than on other platforms.
|
||||
# It should be enough to check on Unix platforms, so:
|
||||
|
@ -6,7 +6,7 @@
|
||||
# The test links a rust static library into a shared library, and checks that
|
||||
# the linker doesn't have to flag the resulting file as containing TEXTRELs.
|
||||
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# only-linux
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# Test that previously triggered a linker failure with root cause
|
||||
# similar to one found in the issue #69368.
|
||||
|
@ -1,4 +1,4 @@
|
||||
-include ../tools.mk
|
||||
include ../tools.mk
|
||||
|
||||
# Test to make sure that inner functions within a polymorphic outer function
|
||||
# don't get re-codegened when the outer function is monomorphized. The test
|
||||
|
@ -3,7 +3,7 @@
|
||||
# This test makes sure the embed bitcode in elf created with
|
||||
# lto-embed-bitcode=optimized is valid llvm BC module.
|
||||
|
||||
-include ../../run-make-fulldeps/tools.mk
|
||||
include ../../run-make-fulldeps/tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) test.rs --target $(TARGET) -Clink-arg=-fuse-ld=lld -Clinker-plugin-lto -Clinker=$(CLANG) -Clink-arg=-Wl,--plugin-opt=-lto-embed-bitcode=optimized -Zemit-thin-lto=no
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user