Skip to content

Add testing supports tests those need multiple compile commands #1298

Closed
@lht

Description

@lht

For example, I need to test the re-export issue (#1115). Steps are:

  • compile a crate as library, which re-exports a function.
  • call that re-exported function from another crate.
  • verify compile-pass or run-pass, etc.

This requires executing rustc twice, and we don't have this kind of support in the test framework now.

I believe there are more places where combining rustc and shell commands is needed. Like verifying metadata dumped by "rustc --ls". Check rustc generated filenames.

And add missing tests when the infrastructure is ready.

Metadata

Metadata

Assignees

Labels

A-testsuiteArea: The testsuite used to check the correctness of rustc

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions