llvm.org GIT mirror llvm / 8cf2609
[lit] Don't run `slow.py` in `shtest-timeout.py` test. The program used to be used in `quick_then_slow.py` but that was removed in r328702. The tests always run `slow.py` on its own but this doesn't really test additional code so we'll just drop running `slow.py` so the tests run faster. rdar://problem/40221572 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332986 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Liew 1 year, 4 months ago
2 changed file(s) with 2 addition(s) and 27 deletion(s). Raw diff Collapse all Expand all
+0
-9
utils/lit/tests/Inputs/shtest-timeout/slow.py less more
None # RUN: %{python} %s
1 from __future__ import print_function
2
3 import time
4 import sys
5
6 print("Running slow program")
7 sys.stdout.flush() # Make sure the print gets flushed so it appears in lit output.
8 time.sleep(6)
66 # RUN: not %{lit} \
77 # RUN: %{inputs}/shtest-timeout/infinite_loop.py \
88 # RUN: %{inputs}/shtest-timeout/short.py \
9 # RUN: %{inputs}/shtest-timeout/slow.py \
109 # RUN: -j 1 -v --debug --timeout 1 --param external=1 > %t.extsh.out 2> %t.extsh.err
1110 # RUN: FileCheck --check-prefix=CHECK-OUT-COMMON < %t.extsh.out %s
1211 # RUN: FileCheck --check-prefix=CHECK-EXTSH-ERR < %t.extsh.err %s
1716 # RUN: not %{lit} \
1817 # RUN: %{inputs}/shtest-timeout/infinite_loop.py \
1918 # RUN: %{inputs}/shtest-timeout/short.py \
20 # RUN: %{inputs}/shtest-timeout/slow.py \
2119 # RUN: -j 1 -v --debug --timeout 1 --param external=0 > %t.intsh.out 2> %t.intsh.err
2220 # RUN: FileCheck --check-prefix=CHECK-OUT-COMMON < %t.intsh.out %s
2321 # RUN: FileCheck --check-prefix=CHECK-INTSH-OUT < %t.intsh.out %s
2725 # CHECK-INTSH-OUT: command output:
2826 # CHECK-INTSH-OUT: command reached timeout: True
2927
30 # CHECK-INTSH-OUT: TIMEOUT: per_test_timeout :: slow.py
31 # CHECK-INTSH-OUT: command output:
32 # CHECK-INTSH-OUT: command reached timeout: True
33
3428 # CHECK-INTSH-ERR: Using internal shell
3529
3630 # Test per test timeout set via a config file rather than on the command line
3731 # RUN: not %{lit} \
3832 # RUN: %{inputs}/shtest-timeout/infinite_loop.py \
3933 # RUN: %{inputs}/shtest-timeout/short.py \
40 # RUN: %{inputs}/shtest-timeout/slow.py \
4134 # RUN: -j 1 -v --debug --param external=0 \
4235 # RUN: --param set_timeout=1 > %t.cfgset.out 2> %t.cfgset.err
4336 # RUN: FileCheck --check-prefix=CHECK-OUT-COMMON < %t.cfgset.out %s
5144
5245 # CHECK-OUT-COMMON: PASS: per_test_timeout :: short.py
5346
54 # CHECK-OUT-COMMON: TIMEOUT: per_test_timeout :: slow.py
55 # CHECK-OUT-COMMON: Timeout: Reached timeout of 1 seconds
56 # CHECK-OUT-COMMON: Command {{([0-9]+ )?}}Output
57
5847 # CHECK-OUT-COMMON: Expected Passes{{ *}}: 1
59 # CHECK-OUT-COMMON: Individual Timeouts{{ *}}: 2
48 # CHECK-OUT-COMMON: Individual Timeouts{{ *}}: 1
6049
6150 # Test per test timeout via a config file and on the command line.
6251 # The value set on the command line should override the config file.
6352 # RUN: not %{lit} \
6453 # RUN: %{inputs}/shtest-timeout/infinite_loop.py \
6554 # RUN: %{inputs}/shtest-timeout/short.py \
66 # RUN: %{inputs}/shtest-timeout/slow.py \
6755 # RUN: -j 1 -v --debug --param external=0 \
6856 # RUN: --param set_timeout=1 --timeout=2 > %t.cmdover.out 2> %t.cmdover.err
6957 # RUN: FileCheck --check-prefix=CHECK-CMDLINE-OVERRIDE-OUT < %t.cmdover.out %s
7765
7866 # CHECK-CMDLINE-OVERRIDE-OUT: PASS: per_test_timeout :: short.py
7967
80 # CHECK-CMDLINE-OVERRIDE-OUT: TIMEOUT: per_test_timeout :: slow.py
81 # CHECK-CMDLINE-OVERRIDE-OUT: Timeout: Reached timeout of 2 seconds
82 # CHECK-CMDLINE-OVERRIDE-OUT: Command {{([0-9]+ )?}}Output
83
8468 # CHECK-CMDLINE-OVERRIDE-OUT: Expected Passes{{ *}}: 1
85 # CHECK-CMDLINE-OVERRIDE-OUT: Individual Timeouts{{ *}}: 2
69 # CHECK-CMDLINE-OVERRIDE-OUT: Individual Timeouts{{ *}}: 1