This is an archive of the discontinued LLVM Phabricator instance.

[flang][driver] Copy input files into a temp dir when testing (nfc)
ClosedPublic

Authored by awarzynski on Jan 7 2021, 9:55 AM.

Details

Summary

The following frontend driver invocation will generate 2 output files
in the same directory as the input files:

flang-new -fc1 input-1.f input-2.f

This is the desired behaviour. However, when testing we need to make
sure that we don't pollute the source directory. To this end, copy test
input files into a temporary directory.

Diff Detail

Event Timeline

awarzynski created this revision.Jan 7 2021, 9:55 AM
awarzynski requested review of this revision.Jan 7 2021, 9:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 7 2021, 9:55 AM
awarzynski retitled this revision from [flang][driver] Copy input files into a temp dir when testing to [flang][driver] Copy input files into a temp dir when testing (nfc).Jan 7 2021, 9:58 AM
sameeranjoshi accepted this revision.Jan 11 2021, 4:06 AM

Looks good.

This revision is now accepted and ready to land.Jan 11 2021, 4:06 AM