This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objcopy] Add more tests for help messages
ClosedPublic

Authored by alexander-shaposhnikov on May 8 2018, 10:33 AM.

Details

Summary

Slightly reorganize the tests + improve the coverage (for llvm-objcopy as well).
I'll wait for James to have a look at this.

Test plan: make check-all

Diff Detail

Repository
rL LLVM

Event Timeline

jakehehrlich accepted this revision.May 8 2018, 12:25 PM
This revision is now accepted and ready to land.May 8 2018, 12:25 PM
jhenderson accepted this revision.May 9 2018, 1:49 AM

LGTM with the suggested test update.

help-message.test
12

This and the other messages (apart from the USAGE ones) don't need to have unique prefixes for objcopy and strip. I'd rewrite them something like this:

# OBJCOPY-USAGE: USAGE: llvm-objcopy
# STRIP-USAGE:   USAGE: llvm-strip
# UNKNOWN-ARG: unknown argument '-abcabc'
# NO-INPUT-FILES: No input file specified
This revision was automatically updated to reflect the committed changes.