This is an archive of the discontinued LLVM Phabricator instance.

[lit] Mark several of lit's tests XFAIL on Windows
ClosedPublic

Authored by modocache on Jul 25 2017, 10:18 PM.

Details

Summary

rL257221 attempted to run lit's own test suite continuously, but that
commit was reverted because lit's test suite does not pass on Windows.
Because lit's tests do not run continuously, they often regress.

In order to un-revert rL257221, mark lit tests that fail as XFAIL for
Windows platforms.

Test Plan:
On a Windows development environment, follow the instructions in
utils/lit/README.txt to run lit's test suite:

utils/lit/lit.py \
    --path /path/to/your/llvm/build/bin \
    utils/lit/tests

Verify that the test suite is run and a successful exit code is
returned.

Event Timeline

modocache created this revision.Jul 25 2017, 10:18 PM

The change to utils/lit/tests/shtest-encoding.py is shown in Phabricator as a change to a binary file because that test file contains a non-UTF8 character. Like the other files, I just added the following lines:

diff --git a/utils/lit/tests/shtest-encoding.py b/utils/lit/tests/shtest-encoding.py
index dfc987f6df7..9ccd897275b 100644
--- a/utils/lit/tests/shtest-encoding.py
+++ b/utils/lit/tests/shtest-encoding.py
@@ -1,3 +1,6 @@
 # RUN: true

+# PR33936
+# XFAIL: windows
+
delcypher edited edge metadata.Jul 26 2017, 2:07 AM

Looks fine. The only bit I'm not sure about is the interaction of config.available_features and XFAIL.

utils/lit/tests/lit.cfg
57

I've only ever used config.available_features with the REQUIRES: declaration. Does it work with XFAIL: too? I thought XFAIL: just took a target architecture?

delcypher added inline comments.Jul 26 2017, 2:28 AM
utils/lit/tests/lit.cfg
57

Hmm looks like things have changed a lot since I last looked.

https://reviews.llvm.org/D18185

I was half right. In Test.isExpectedToFail() (lit/Test.py) I can see that the boolean expression evaluator takes the features and the target triple.

So I guess XFAIL: windows is fine.

mgorny resigned from this revision.Jul 26 2017, 4:41 AM

Technically LGTM but I don't have a Windows setup to test.

rnk accepted this revision.Jul 26 2017, 8:01 AM

Looks good, thanks!

This revision is now accepted and ready to land.Jul 26 2017, 8:01 AM
modocache closed this revision.Jul 26 2017, 8:11 AM