]> granicus.if.org Git - llvm/commitdiff
[lit] Mark several of lit's tests XFAIL on Windows
authorBrian Gesiak <modocache@gmail.com>
Wed, 26 Jul 2017 15:10:50 +0000 (15:10 +0000)
committerBrian Gesiak <modocache@gmail.com>
Wed, 26 Jul 2017 15:10:50 +0000 (15:10 +0000)
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.

Reviewers: mgorny, rnk, delcypher, beanz

Reviewed By: rnk

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D35879

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309123 91177308-0d34-0410-b5e6-96231b3b80d8

13 files changed:
utils/lit/tests/discovery.py
utils/lit/tests/googletest-format.py
utils/lit/tests/googletest-timeout.py
utils/lit/tests/googletest-upstream-format.py
utils/lit/tests/lit.cfg
utils/lit/tests/max-failures.py
utils/lit/tests/selecting.py
utils/lit/tests/shtest-format.py
utils/lit/tests/shtest-output-printing.py
utils/lit/tests/shtest-shell.py
utils/lit/tests/shtest-timeout.py
utils/lit/tests/unit/TestRunner.py
utils/lit/tests/unittest-adaptor.py

index 55e54088b587b72327f054beb2e98e7ffa17def8..ab25a0eadab7267185d433bf487cf2c76f7856af 100644 (file)
@@ -1,5 +1,8 @@
 # Check the basic discovery process, including a sub-suite.
 #
+# PR33932
+# XFAIL: windows
+#
 # RUN: %{lit} %{inputs}/discovery \
 # RUN:   -j 1 --debug --show-tests --show-suites \
 # RUN:   -v > %t.out 2> %t.err
index a62fd1b3ccaf973f8386f9494572936c3bfdcb4e..a8e96d9695a12455959dbe2c1351bf5a4d56296c 100644 (file)
@@ -1,5 +1,8 @@
 # Check the various features of the GoogleTest format.
 #
+# PR33933
+# XFAIL: windows
+#
 # RUN: not %{lit} -j 1 -v %{inputs}/googletest-format > %t.out
 # RUN: FileCheck < %t.out %s
 #
index 46acf32b3a61611aa038d3754c5f274e0a5bcb41..7d5721ea3d1cf3945a9674b729bd09aa99383d9d 100644 (file)
@@ -1,5 +1,8 @@
 # REQUIRES: python-psutil
 
+# PR33934
+# XFAIL: windows
+
 # Check that the per test timeout is enforced when running GTest tests.
 #
 # RUN: not %{lit} -j 1 -v %{inputs}/googletest-timeout --timeout=1 > %t.cmd.out
index 1fc7c7c4a5ad2fe0a70114de2fb6b5174ec5d02f..425b528aaeb09cbf6de388986fa29f95cc2804a0 100644 (file)
@@ -1,5 +1,8 @@
 # Check the various features of the GoogleTest format.
 #
+# PR33935
+# XFAIL: windows
+#
 # RUN: not %{lit} -j 1 -v %{inputs}/googletest-upstream-format > %t.out
 # RUN: FileCheck < %t.out %s
 #
index 4b38241d5a7d3ebbc3ff9867304feda4c0b9492a..ed1c6c68d0c38698ec022f79fe6cfe876045384f 100644 (file)
@@ -52,3 +52,6 @@ try:
 except ImportError:
     lit_config.warning('Could not import psutil. Some tests will be skipped and'
                        ' the --timeout command line argument will not work.')
+
+if sys.platform.startswith('win') or sys.platform.startswith('cygwin'):
+    config.available_features.add('windows')
index 5cc258dd08aa88f89bc2be7f52e6f74e29ba69dd..7a26b3cd038b6b15f25d735456d95439f204a5c2 100644 (file)
@@ -1,5 +1,8 @@
 # Check the behavior of --max-failures option.
 #
+# PR33941
+# XFAIL: windows
+#
 # RUN: not %{lit} -j 1 -v %{inputs}/shtest-shell > %t.out
 # RUN: not %{lit} --max-failures=1 -j 1 -v %{inputs}/shtest-shell >> %t.out
 # RUN: not %{lit} --max-failures=2 -j 1 -v %{inputs}/shtest-shell >> %t.out
index 19ba240f9b0f50fe882bfe6abeaafe56a4c99c36..fd6cd9016c0e9e471f13e8280a0bd12dd69e542c 100644 (file)
@@ -1,6 +1,8 @@
 # RUN: %{lit} %{inputs}/discovery | FileCheck --check-prefix=CHECK-BASIC %s
 # CHECK-BASIC: Testing: 5 tests
 
+# PR33937
+# XFAIL: windows
 
 # Check that regex-filtering works
 #
index 37e3e1c12629dfb2560989ff02e07c48919e5e05..8e69573e9ff106fb33a055d897672a381ce33f1e 100644 (file)
@@ -1,5 +1,8 @@
 # Check the various features of the ShTest format.
 #
+# PR33939
+# XFAIL: windows
+#
 # RUN: not %{lit} -j 1 -v %{inputs}/shtest-format > %t.out
 # RUN: FileCheck < %t.out %s
 #
index 24580b37f1f54a1cb99dac2cb6e6658ac1bd2d93..a8a99e3c19574896c227ef57a0d0aed3a51f1903 100644 (file)
@@ -1,5 +1,8 @@
 # Check the various features of the ShTest format.
 #
+# PR33938
+# XFAIL: windows
+#
 # RUN: not %{lit} -j 1 -v %{inputs}/shtest-output-printing > %t.out
 # RUN: FileCheck --input-file %t.out %s
 #
index 18b80cd7d08775afcec1fa90d478e93c295efef9..1a6d91eee2207a13284962095e8d4b0d7495399c 100644 (file)
@@ -1,5 +1,8 @@
 # Check the internal shell handling component of the ShTest format.
 #
+# PR33940
+# XFAIL: windows
+#
 # RUN: not %{lit} -j 1 -v %{inputs}/shtest-shell > %t.out
 # RUN: FileCheck --input-file %t.out %s
 #
index 87f431de2500f0f56b05131011b45b028050f973..87985006590898fd8afa63e9b22215b000839616 100644 (file)
@@ -1,5 +1,8 @@
 # REQUIRES: python-psutil
 
+# PR33944
+# XFAIL: windows
+
 # Test per test timeout using external shell
 # RUN: not %{lit} \
 # RUN: %{inputs}/shtest-timeout/infinite_loop.py \
index 79cc10f7e14d6e46489a91a0ae70ee95e00d8bd6..580f31d69c1cf0f2dd23e094a91e063fa31464f6 100644 (file)
@@ -1,5 +1,8 @@
 # RUN: %{python} %s
 #
+# PR33942
+# XFAIL: windows
+#
 # END.
 
 
index 0848cd22baae858309cccc782b8ebe31f735b065..10dd567a9a83a64802d81d38794bc6f543f76bd1 100644 (file)
@@ -1,5 +1,8 @@
 # Check the lit adaption to run under unittest.
 #
+# PR33943
+# XFAIL: windows
+#
 # RUN: %{python} %s %{inputs}/unittest-adaptor 2> %t.err
 # RUN: FileCheck < %t.err %s
 #