1 ; Test two trailing NOT strings
3 ; RUN: echo "LEADING: placeholder1" >>%t && echo "MIDDLE-NOT: placeholder2" >>%t && echo "TRAILING-NOT: placeholder3" >>%t && \
4 ; RUN: %ProtectFileCheckOutput not FileCheck --strict-whitespace --check-prefixes LEADING,MIDDLE,TRAILING --dump-input=never --input-file %t %t 2>&1 | \
5 ; RUN: FileCheck --check-prefix TEST1 %s
7 ; Test NOT string occurring in between two allowable strings
9 ; RUN: echo "LEADING: placeholder1" >>%t && echo "MIDDLE-NOT: placeholder2" >>%t && echo "TRAILING: placeholder3" >>%t && \
10 ; RUN: %ProtectFileCheckOutput not FileCheck --strict-whitespace --check-prefixes LEADING,MIDDLE,TRAILING --dump-input=never --input-file %t %t 2>&1 | \
11 ; RUN: FileCheck --check-prefix TEST2 %s
13 ; Test first prefix found being the NOT string
15 ; RUN: echo "LEADING-NOT: placeholder1" >>%t && echo "MIDDLE: placeholder2" >>%t && echo "TRAILING: placeholder3" >>%t && \
16 ; RUN: %ProtectFileCheckOutput not FileCheck --strict-whitespace --check-prefixes LEADING,MIDDLE,TRAILING --dump-input=never --input-file %t %t 2>&1 | \
17 ; RUN: FileCheck --check-prefix TEST3 %s
19 ; Test all given prefixes being NOT strings
21 ; RUN: echo "LEADING-NOT: placeholder1" >>%t && echo "MIDDLE-NOT: placeholder2" >>%t && echo "TRAILING-NOT: placeholder3" >>%t && \
22 ; RUN: %ProtectFileCheckOutput not FileCheck --strict-whitespace --check-prefixes LEADING,MIDDLE,TRAILING --dump-input=never --input-file %t %t 2>&1 | \
23 ; RUN: FileCheck --check-prefix TEST4 %s
25 ; TEST1: error: MIDDLE-NOT: excluded string found in input
26 ; TEST1-NEXT: MIDDLE-NOT: placeholder2
27 ; TEST1-NEXT: {{^}} ^{{$}}
28 ; TEST1-NEXT: note: found here
29 ; TEST1-NEXT: MIDDLE-NOT: placeholder2
30 ; TEST1-NEXT: {{^}} ^~~~~~~~~~~~{{$}}
31 ; TEST1-NEXT: error: TRAILING-NOT: excluded string found in input
32 ; TEST1-NEXT: TRAILING-NOT: placeholder3
33 ; TEST1-NEXT: {{^}} ^{{$}}
34 ; TEST1-NEXT: note: found here
35 ; TEST1-NEXT: TRAILING-NOT: placeholder3
36 ; TEST1-NEXT: {{^}} ^~~~~~~~~~~~{{$}}
38 ; TEST2: error: MIDDLE-NOT: excluded string found in input
39 ; TEST2-NEXT: MIDDLE-NOT: placeholder2
40 ; TEST2-NEXT: {{^}} ^{{$}}
41 ; TEST2-NEXT: note: found here
42 ; TEST2-NEXT: MIDDLE-NOT: placeholder2
43 ; TEST2-NEXT: {{^}} ^~~~~~~~~~~~{{$}}
45 ; TEST3: error: LEADING-NOT: excluded string found in input
46 ; TEST3-NEXT: LEADING-NOT: placeholder1
47 ; TEST3-NEXT: {{^}} ^{{$}}
48 ; TEST3-NEXT: note: found here
49 ; TEST3-NEXT: LEADING-NOT: placeholder1
50 ; TEST3-NEXT: {{^}} ^~~~~~~~~~~~{{$}}
52 ; TEST4: error: LEADING-NOT: excluded string found in input
53 ; TEST4-NEXT: LEADING-NOT: placeholder1
54 ; TEST4-NEXT: {{^}} ^{{$}}
55 ; TEST4-NEXT: note: found here
56 ; TEST4-NEXT: LEADING-NOT: placeholder1
57 ; TEST4-NEXT: {{^}} ^~~~~~~~~~~~{{$}}
58 ; TEST4-NEXT: error: MIDDLE-NOT: excluded string found in input
59 ; TEST4-NEXT: MIDDLE-NOT: placeholder2
60 ; TEST4-NEXT: {{^}} ^{{$}}
61 ; TEST4-NEXT: note: found here
62 ; TEST4-NEXT: MIDDLE-NOT: placeholder2
63 ; TEST4-NEXT: {{^}} ^~~~~~~~~~~~{{$}}
64 ; TEST4-NEXT: error: TRAILING-NOT: excluded string found in input
65 ; TEST4-NEXT: TRAILING-NOT: placeholder3
66 ; TEST4-NEXT: {{^}} ^{{$}}
67 ; TEST4-NEXT: note: found here
68 ; TEST4-NEXT: TRAILING-NOT: placeholder3
69 ; TEST4-NEXT: {{^}} ^~~~~~~~~~~~{{$}}