This is an archive of the discontinued LLVM Phabricator instance.

[llvm-ar][test] Add additional MRI script testing
ClosedPublic

Authored by gbreynoo on Jun 29 2022, 10:22 AM.

Details

Summary

This commit adds:

  • Additional test coverage of the DELETE and END commands.
  • File names to be read in the line endings test.
  • A use of ADDLIB in the nonascii test.

Diff Detail

Event Timeline

gbreynoo created this revision.Jun 29 2022, 10:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2022, 10:22 AM
gbreynoo requested review of this revision.Jun 29 2022, 10:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2022, 10:22 AM
gbreynoo added inline comments.Jun 29 2022, 10:22 AM
llvm/test/tools/llvm-ar/mri-crlf.test
9

I will correct before committing.

MaskRay accepted this revision.Jun 29 2022, 10:36 AM
MaskRay added inline comments.
llvm/test/tools/llvm-ar/mri-delete.test
10

excess space before --implicit-check-not=elf.o

ditto below

llvm/test/tools/llvm-ar/mri-end.test
44

empty.mri has two lines. If you want to test an empty script, you can touch it.

This revision is now accepted and ready to land.Jun 29 2022, 10:36 AM
jhenderson added inline comments.Jun 30 2022, 1:52 AM
llvm/test/tools/llvm-ar/Inputs/mri-crlf.mri
4

It's a bit unfortunate that the capitalization of the commands in this file have different casing. You should probably normalise them.

llvm/test/tools/llvm-ar/mri-end.test
9

Nit: probably don't want this blank line, or the ## Empty file. comment needs moving to below it.

llvm/test/tools/llvm-ar/mri-nonascii.test
20

Nit: looks like there's trailing whitespace on this line.

gbreynoo updated this revision to Diff 441420.Jun 30 2022, 8:57 AM

Fixed whitespace, comments and use of empty mri script.

gbreynoo marked 5 inline comments as done.Jun 30 2022, 8:58 AM
jhenderson accepted this revision.Jul 1 2022, 12:38 AM

LGTM, with one nit.

llvm/test/tools/llvm-ar/mri-end.test
10

Also above - you cd'ed to %t so don't need to reference paths as %t/empty.mri or %t/elf.o etc.

This revision was automatically updated to reflect the committed changes.