mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-07 20:36:06 +00:00

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 llvm-svn: 309123
33 lines
1.2 KiB
Python
33 lines
1.2 KiB
Python
# 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
|
|
# RUN: FileCheck < %t.cmd.out %s
|
|
|
|
# Check that the per test timeout is enforced when running GTest tests via
|
|
# the configuration file
|
|
#
|
|
# RUN: not %{lit} -j 1 -v %{inputs}/googletest-timeout \
|
|
# RUN: --param set_timeout=1 > %t.cfgset.out 2> %t.cfgset.err
|
|
# RUN: FileCheck < %t.cfgset.out %s
|
|
|
|
# CHECK: -- Testing:
|
|
# CHECK: PASS: googletest-timeout :: DummySubDir/OneTest/FirstTest.subTestA
|
|
# CHECK: TIMEOUT: googletest-timeout :: DummySubDir/OneTest/FirstTest.subTestB
|
|
# CHECK: TIMEOUT: googletest-timeout :: DummySubDir/OneTest/FirstTest.subTestC
|
|
# CHECK: Expected Passes : 1
|
|
# CHECK: Individual Timeouts: 2
|
|
|
|
# Test per test timeout via a config file and on the command line.
|
|
# The value set on the command line should override the config file.
|
|
# RUN: not %{lit} -j 1 -v %{inputs}/googletest-timeout \
|
|
# RUN: --param set_timeout=1 --timeout=2 > %t.cmdover.out 2> %t.cmdover.err
|
|
# RUN: FileCheck < %t.cmdover.out %s
|
|
# RUN: FileCheck --check-prefix=CHECK-CMDLINE-OVERRIDE-ERR < %t.cmdover.err %s
|
|
|
|
# CHECK-CMDLINE-OVERRIDE-ERR: Forcing timeout to be 2 seconds
|