This is an archive of the discontinued LLVM Phabricator instance.

[LNT] Add cflags string argument to lnt (2)
ClosedPublic

Authored by chatur01 on Jun 10 2015, 10:27 AM.

Details

Summary

Moving this review onto Phab.

Thanks for your comments Chris. I have added some tests for this feature and the original cflag feature, for which I didn't find existing tests.
To test the command-line argument, I added a bit of hack in nt.py which just add a note with the parsed TARGET_FLAGS.
I then use this note in my regression tests to check that the cflags have been correctly parsed. This approach didn't feel right, but I could see a better way.

Vasileios, I'm happy to add support for that option after this review.

Also added some support for quoted strings. I don't think my approach works on Windows shells in general, but I don't this that's of concern for LNT?

Thanks again for your review.

Diff Detail

Event Timeline

chatur01 retitled this revision from to [LNT] Add cflags string argument to lnt (2).
chatur01 updated this object.
chatur01 edited the test plan for this revision. (Show Details)
chatur01 updated this object.
chatur01 added a subscriber: Unknown Object (MLST).

Adding a dummy comment to get this to the list, seems to have got stuck in Phabricator?

cmatthews edited edge metadata.Jun 10 2015, 12:35 PM

Otherwise looks good. Thanks for adding a test!

lnt/tests/nt.py
136

Lets do these imports at the top. I assume these are in a standard python 2.7 distro?

139

unix. Don't forget poor little OS X!

Thanks Chris.

Yep, they are in the stadnard 2.7 distro module list at https://docs.python.org/2/py-modindex.html

Renamed to unix (guess I should have posix to be even more inclusive?) Sorry about that :^)

Landed r239518.

jmolloy accepted this revision.Jul 17 2015, 2:20 AM
jmolloy edited edge metadata.

[Phab spring clean] This got accepted.

This revision is now accepted and ready to land.Jul 17 2015, 2:20 AM