This is an archive of the discontinued LLVM Phabricator instance.

[AIX] Split lit test shtest-format into two separate tests and add AIX as UNSUPPORTED for shtest-format-argv0
ClosedPublic

Authored by ShuhongL on Jun 18 2020, 8:11 AM.

Details

Summary

lit test shtest-format.py fails on AIX because one of the subtest of shtest-format requires the tool [ to be installed under the system PATH. For AIX, [ is only available as a shell builtin and does not present as an executable file under PATH. Hence, split the original shtest-format into two separate test files and added AIX as UNSUPPORTED for the test using [ .

Diff Detail

Event Timeline

ShuhongL created this revision.Jun 18 2020, 8:11 AM
ShuhongL edited the summary of this revision. (Show Details)Jun 18 2020, 8:13 AM
llvm/utils/lit/tests/Inputs/shtest-format-argv0/lit.cfg
9

I think there's no use of this substitution in the directory.

llvm/utils/lit/tests/shtest-format-argv0.py
6

Minor nit: "builtin" is a noun here. s/shell-builtin/shell builtin/;

ShuhongL updated this revision to Diff 271802.Jun 18 2020, 11:53 AM

@hubert.reinterpretcast thanks, updated the comment and removed config substitution

LGTM with minor nit.

llvm/utils/lit/tests/shtest-format-argv0.py
7

Minor nit: Missing period at the end of the sentence.

This revision is now accepted and ready to land.Jun 18 2020, 12:45 PM
ShuhongL updated this revision to Diff 271831.Jun 18 2020, 1:41 PM

Added missing period in comment

daltenty edited the summary of this revision. (Show Details)Jun 18 2020, 1:50 PM
daltenty edited the summary of this revision. (Show Details)
ShuhongL edited the summary of this revision. (Show Details)Jun 18 2020, 1:50 PM
This revision was automatically updated to reflect the committed changes.