This is an archive of the discontinued LLVM Phabricator instance.

[flang][nfc] Relocate a few driver tests
ClosedPublic

Authored by awarzynski on Jul 27 2022, 7:08 AM.

Details

Summary

When the work on the Flang driver started, we created 2 test
directories:

  • flang/test/Frontend/
  • flang/test/Driver/

That was mostly done to model what Clang was doing. In practice, we
stopped using "flang/test/Frontend/" early on and most Flang driver
tests are currently located in "flang/test/Driver/". This patch moves
the remaining tests from the former into the latter directory.

This change also means that we can re-use test input files, i.e.
flang/test/Frontend/Inputs/hello-world.f90 can be replaced with
flang/test/Driver/Inputs/hello.f90. To this end, the affected test is
updated (multiple-input-files.f90).

Diff Detail

Event Timeline

awarzynski created this revision.Jul 27 2022, 7:08 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
awarzynski requested review of this revision.Jul 27 2022, 7:08 AM

In practice, we stopped using "flang/test/Frontend/" early on and most Flang driver tests are currently located in "flang/test/Driver/". This patch moves the remaining tests from the latter into the former directory.

Which implies from Driver to Frontend but this moves them from Frontend to Driver. "from the former into the latter"?

awarzynski edited the summary of this revision. (Show Details)Jul 27 2022, 7:39 AM

In practice, we stopped using "flang/test/Frontend/" early on and most Flang driver tests are currently located in "flang/test/Driver/". This patch moves the remaining tests from the latter into the former directory.

Which implies from Driver to Frontend but this moves them from Frontend to Driver. "from the former into the latter"?

Thanks, fixed!

@awarzynski Did this fall off your radar?

@awarzynski Did this fall off your radar?

Ah, sorry! ping :)

Logic for the change seems sound, this LGTM but I'll leave it open to keep it on review queues if anyone flang specific has input.

flang/test/Driver/multiple-input-files.f90
53

Any reason to care that these disappeared?

I guess not, they're nothing to do with there being multiple input files as far as I can tell.

awarzynski added inline comments.Oct 7 2022, 8:36 AM
flang/test/Driver/multiple-input-files.f90
53

With this change, this test is now using

  • "flang/test/Driver/Inputs/hello.f90", instead of
  • "flang/test/Frontend/Inputs/hello-world.f90".

And the two files are only *alnost* identical. That's the reason :)

This revision is now accepted and ready to land.Oct 7 2022, 9:11 AM
This revision was automatically updated to reflect the committed changes.
flang/test/Driver/multiple-input-files.f90