File: not-calls-external.txt

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,998,520 kB
  • sloc: cpp: 6,951,680; ansic: 1,486,157; asm: 913,598; python: 232,024; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,009; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,167; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (66 lines) | stat: -rw-r--r-- 1,933 bytes parent folder | download | duplicates (21)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# RUN: echo foo > %t.in
# RUN: echo bar >> %t.in


# Simple uses of 'not'

# RUN: not %{python} fail.py
# RUN: not not %{python} pass.py
# RUN: not not not %{python} fail.py
# RUN: not not not not %{python} pass.py


# Simple uses of 'not --crash'

# RUN: not not --crash %{python} pass.py
# RUN: not not --crash %{python} fail.py
# RUN: not not --crash not %{python} pass.py
# RUN: not not --crash not  %{python} fail.py


# Various patterns of 'not' and 'env'
#
# There's no particular pattern to the 'env' arguments except we try not to
# do the same thing every time.

# RUN: env not %{python} fail.py | FileCheck -check-prefixes=FOO-NO,BAR-NO %s
# RUN: not env %{python} fail.py | FileCheck -check-prefixes=FOO-NO,BAR-NO %s

# RUN: env FOO=1 not %{python} fail.py \
# RUN: | FileCheck -check-prefixes=FOO1,BAR-NO %s

# RUN: not env FOO=1 BAR=1 %{python} fail.py \
# RUN: | FileCheck -check-prefixes=FOO1,BAR1 %s

# RUN: env FOO=1 BAR=1 not env -u FOO BAR=2 %{python} fail.py \
# RUN: | FileCheck -check-prefixes=FOO-NO,BAR2 %s

# RUN: not env FOO=1 BAR=1 not env -u FOO -u BAR %{python} pass.py \
# RUN: | FileCheck -check-prefixes=FOO-NO,BAR-NO %s

# RUN: not not env FOO=1 env FOO=2 BAR=1 %{python} pass.py \
# RUN: | FileCheck -check-prefixes=FOO2,BAR1 %s

# RUN: env FOO=1 -u BAR env -u FOO BAR=1 not not %{python} pass.py \
# RUN: | FileCheck -check-prefixes=FOO-NO,BAR1 %s


# Various patterns of 'not', 'not --crash', and 'env'

# RUN: not env FOO=1 BAR=1 env FOO=2 BAR=2 not --crash %{python} pass.py \
# RUN: | FileCheck -check-prefixes=FOO2,BAR2 %s

# RUN: not env FOO=1 BAR=1 not --crash not %{python} pass.py \
# RUN: | FileCheck -check-prefixes=FOO1,BAR1 %s

# RUN: not not --crash env -u BAR not env -u FOO BAR=1 %{python} pass.py \
# RUN: | FileCheck -check-prefixes=FOO-NO,BAR1 %s


# FOO-NO: FOO = [undefined]
# FOO1:   FOO = 1
# FOO2:   FOO = 2

# BAR-NO: BAR = [undefined]
# BAR1:   BAR = 1
# BAR2:   BAR = 2