Skip to content

run-make: audit the ignore-{windows,msvc,windows-msvc} tests #128602

Open
@jieyouxu

Description

@jieyouxu

There are several ignore-msvc/ignore-windows/ignore-windows-msvc Makefile and rmake.rs (tests that are ported to pure Rust files) run-make tests that have those ignore-*s because of several common challenges:

  1. Can't figure out how to build the proper e.g. import lib for dynamic lib to satisfy link.exe.
  2. Can't figure out the msvc build invocations to generate the desired output artifacts.
  3. Debug info or object symbol differences versus mingw or linux or apple.
  4. Weird appearance of unexpected symbols or lack of expected symbols.

It would be great and super helpful if Windows experts could take a look at them, and see if some of the ignore-*s can be resolved or otherwise how we can expand the tests to cover msvc as well, or have proper reasons why they must be ignore-*'d. The test suite is quite tricky to run on Windows, see https://rustc-dev-guide.rust-lang.org/tests/running.html?highlight=run-make#windows, seems to require msys2 + make, binutils, diffutils for the remaining Makefiles.

ignore-msvc:

ignore-windows-msvc:

ignore-windows:

  • tests/run-make/naked-symbol-visibility/rmake.rs
  • tests/run-make/dep-info/Makefile
  • tests/run-make/short-ice/rmake.rs
  • tests/run-make/incr-add-rust-src-component/Makefile (symlink)
  • tests/run-make/extern-fn-reachable/Makefile
  • tests/run-make/dep-info/Makefile
  • tests/run-make/dep-info-spaces/Makefile
  • tests/run-make/lto-avoid-object-duplication/rmake.rs
  • tests/run-make/translation/Makefile (symlink)
  • tests/run-make/native-link-modifier-bundle/Makefile
  • tests/run-make/textrel-on-minimal-lib/rmake.rs
  • tests/run-make/remap-path-prefix-dwarf/Makefile
  • tests/run-make/libs-through-symlinks/Makefile (symlink)
  • tests/run-make/redundant-libs/Makefile
  • tests/run-make/reproducible-build-2/rmake.rs (the symlink part might be possible with needs-symlink, unsure about reproducible paths)
  • tests/run-make/fmt-write-bloat/rmake.rs (no_std test) (run-make: explaing why fmt-write-bloat is ignore-windows #128807)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-run-makeArea: port run-make Makefiles to rmake.rsA-testsuiteArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.O-windowsOperating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions