Skip to content

Commit

Permalink
Update Makefiles with explanatory comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneirical committed May 8, 2024
1 parent 14081a2 commit 79cf61a
Show file tree
Hide file tree
Showing 23 changed files with 67 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/run-make/alloc-no-oom-handling/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This test verifies that the Rust compiler can still compile correctly when the unstable no_global_oom_handling feature is turned on, which disables global error handling in alloc.
# See https://github.com/rust-lang/rust/pull/84266

include ../tools.mk

all:
Expand Down
3 changes: 3 additions & 0 deletions tests/run-make/alloc-no-rc/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This test verifies that the Rust compiler can still compile correctly when the unstable no_rc feature is turned on, which disables rc in alloc.
# See https://github.com/rust-lang/rust/pull/89891

include ../tools.mk

all:
Expand Down
3 changes: 3 additions & 0 deletions tests/run-make/alloc-no-sync/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This test verifies that the Rust compiler can still compile correctly when the unstable no_sync feature is turned on, which disables sync in alloc.
# See https://github.com/rust-lang/rust/pull/89891

include ../tools.mk

all:
Expand Down
3 changes: 3 additions & 0 deletions tests/run-make/allocator-shim-circular-deps/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This test intentionally creates a circular dependency, and checks if this causes the resurgence of the compiler bug linked below.
# See https://github.com/rust-lang/rust/issues/112715

# ignore-cross-compile
include ../tools.mk

Expand Down
3 changes: 3 additions & 0 deletions tests/run-make/archive-duplicate-names/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This test reads two object archives with the same filename, and extracts each one to a unique location. This checks that the functionality of the linked PR is preserved.
# See https://github.com/rust-lang/rust/pull/24439

# ignore-cross-compile
include ../tools.mk

Expand Down
2 changes: 2 additions & 0 deletions tests/run-make/bare-outfile/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This test checks that manually setting the output file as a bare file with no file extension still results in successful compilation.

# ignore-cross-compile
include ../tools.mk

Expand Down
3 changes: 3 additions & 0 deletions tests/run-make/c-dynamic-dylib/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This test verifies that dynamic Rust linking with C does not encounter any errors, with dynamic dependencies given preference over static.
# See https://github.com/rust-lang/rust/issues/10434

# ignore-cross-compile
include ../tools.mk

Expand Down
3 changes: 3 additions & 0 deletions tests/run-make/c-dynamic-rlib/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This test verifies that dynamic Rust linking with C does not encounter any errors, with static dependencies given preference over dynamic. (This is the default behaviour.)
# See https://github.com/rust-lang/rust/issues/10434

# ignore-cross-compile
include ../tools.mk

Expand Down
3 changes: 3 additions & 0 deletions tests/run-make/c-link-to-rust-dylib/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This test verifies that C linking with Rust does not encounter any errors, with dynamic libraries.
# See https://github.com/rust-lang/rust/issues/10434

# ignore-cross-compile
include ../tools.mk

Expand Down
3 changes: 3 additions & 0 deletions tests/run-make/c-link-to-rust-staticlib/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This test verifies that C linking with Rust does not encounter any errors, with static libraries.
# See https://github.com/rust-lang/rust/issues/10434

# ignore-cross-compile
include ../tools.mk

Expand Down
3 changes: 3 additions & 0 deletions tests/run-make/c-static-dylib/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This test verifies that static Rust linking with C does not encounter any errors, with dynamic dependencies given preference over static.
# See https://github.com/rust-lang/rust/issues/10434

# ignore-cross-compile
include ../tools.mk

Expand Down
3 changes: 3 additions & 0 deletions tests/run-make/c-static-rlib/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This test verifies that static Rust linking with C does not encounter any errors, with static dependencies given preference over dynamic. (This is the default behaviour.)
# See https://github.com/rust-lang/rust/issues/10434

# ignore-cross-compile
include ../tools.mk

Expand Down
3 changes: 3 additions & 0 deletions tests/run-make/c-unwind-abi-catch-lib-panic/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Exercise unwinding a panic. This catches a panic across an FFI boundary and downcasts it into an integer. The Rust code that panics is in a separate crate.
# See https://github.com/rust-lang/rust/commit/baf227ea0c1e07fc54395a51e4b3881d701180cb

# ignore-cross-compile
# needs-unwind
include ../tools.mk
Expand Down
3 changes: 3 additions & 0 deletions tests/run-make/c-unwind-abi-catch-panic/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Exercise unwinding a panic. This catches a panic across an FFI boundary and downcasts it into an integer. The Rust code that panics is in the same directory.
# See https://github.com/rust-lang/rust/commit/baf227ea0c1e07fc54395a51e4b3881d701180cb

# ignore-cross-compile
# needs-unwind
include ../tools.mk
Expand Down
4 changes: 4 additions & 0 deletions tests/run-make/cat-and-grep-sanity-check/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# grep in run-make tests was partially replaced with a custom script, CGREP. This tests that CGREP does its job correctly.
# See https://github.com/rust-lang/rust/commit/ab788a2ee175c7560f0ca58bbc183ecfd57d2f7a
# Note that this test will likely become useless after the port to rmake.rs tests (see https://github.com/rust-lang/rust/issues/121876)

include ../tools.mk

all:
Expand Down
3 changes: 3 additions & 0 deletions tests/run-make/cdylib-dylib-linkage/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This test verifies that cdylibs can link against dylibs as dependencies, after this restriction was disabled.
# See https://github.com/rust-lang/rust/commit/72aaa3a414d17aa0c4f19feafa5bab5f84b60e63

# ignore-cross-compile
include ../tools.mk

Expand Down
2 changes: 2 additions & 0 deletions tests/run-make/cdylib-fewer-symbols/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# ignore-cross-compile

# 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.
# See https://github.com/rust-lang/rust/commit/fbf98697021173a30b84d9145df0966a23a2f9d2

include ../tools.mk

Expand Down
3 changes: 3 additions & 0 deletions tests/run-make/cdylib/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# When the cdylib crate type was added as a variation of dylib, it needed a test to verify its function.
# See https://github.com/rust-lang/rust/pull/33553

# ignore-cross-compile
include ../tools.mk

Expand Down
2 changes: 2 additions & 0 deletions tests/run-make/codegen-options-parsing/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This test intentionally feeds invalid inputs to codegen and checks if the error message outputs contain the expected strings.

# ignore-cross-compile
include ../tools.mk

Expand Down
3 changes: 3 additions & 0 deletions tests/run-make/comment-section/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Both GCC and Clang write by default a `.comment` section with compiler information. Rustc received a similar .comment section, so this tests checks that this section properly appears.
# See https://github.com/rust-lang/rust/commit/74b8d324eb77a8f337b35dc68ac91b0c2c06debc

include ../tools.mk

# only-linux
Expand Down
3 changes: 3 additions & 0 deletions tests/run-make/compile-stdin/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# When provided standard input piped directly into rustc, this test verifies that the compilation completes successfully and that the output can be executed.
# See https://github.com/rust-lang/rust/pull/28805

# ignore-cross-compile
include ../tools.mk

Expand Down
3 changes: 3 additions & 0 deletions tests/run-make/compiler-lookup-paths-2/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This test verifies that extern crate declarations in Cargo without a corresponding declaration in the manifest of a dependency are NOT allowed.
# See https://github.com/rust-lang/rust/pull/21113

include ../tools.mk

all:
Expand Down
3 changes: 3 additions & 0 deletions tests/run-make/compiler-lookup-paths/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# rustc supports different types of lookup paths, such as dependency, native or crate. This test checks that these lookup paths are functional and result in functional compilation.
# See https://github.com/rust-lang/rust/pull/19941

include ../tools.mk

# ignore-wasm32 (need a C compiler)
Expand Down

0 comments on commit 79cf61a

Please sign in to comment.