File tree Expand file tree Collapse file tree 17 files changed +102
-110
lines changed
tests/integration/tests/check_commands/CHECK
03-negative_match_first_string
04-negative_match_first_string_scanning_for_the_best_match
05-negative_match_first_string_no_best_match
06-negative_match_second_string
07-negative_match_third_string
03-negative_match_first_string
04-negative_match_second_string
04-wip-negative_match_second_string Expand file tree Collapse file tree 17 files changed +102
-110
lines changed Original file line number Diff line number Diff line change 1- ; CHECK: foo
2- ; CHECK: hello2
3- ; CHECK: hello3
1+ CHECK: foo
2+ CHECK: hello2
3+ CHECK: hello3
Original file line number Diff line number Diff line change 1- ; RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --match-full-lines
1+ RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --match-full-lines --strict-whitespace
22
3- ; CHECK: {{.*filecheck.check:1:.*: error: CHECK: expected string not found in input$}}
4- ; CHECK-NEXT: {{^}}; CHECK: foo{{$}}
5- ; CHECK-NEXT: {{^}} ^{{$}}
6- ; CHECK-NEXT: {{^<stdin>:.*:.*: note: scanning from here$}}
7- ; CHECK-NEXT: hello1
8- ; CHECK-NEXT: {{^\^$}}
9- ; CHECK-NEXT: {{^<stdin>:.*:.*: note: possible intended match here$}}
10- ; CHECK: {{^.*$}}
11- ; CHECK: {{^ \^$}}
12- ; CHECK-EMPTY:
3+ CHECK:{{.*filecheck.check:1:.*: error: CHECK: expected string not found in input$}}
4+ CHECK-NEXT:CHECK: foo
5+ CHECK-NEXT: ^
6+ CHECK-NEXT:{{^<stdin>:.*:.*: note: scanning from here$}}
7+ CHECK-NEXT:hello1
8+ CHECK-NEXT:^
9+ CHECK-NEXT:{{^<stdin>:.*:.*: note: possible intended match here$}}
10+
11+ TODO: Difference with LLVM FileCheck
12+ CHECK-NEXT:{{hello(1|3)}}
13+ CHECK:{{^ ?\^}}
14+ CHECK-EMPTY:
Original file line number Diff line number Diff line change 1- ; CHECK: foo
2- ; CHECK: hello2
3- ; CHECK: hello3
1+ CHECK: foo
2+ CHECK: hello2
3+ CHECK: hello3
Original file line number Diff line number Diff line change 1- ; RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --match-full-lines
1+ RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --match-full-lines --strict-whitespace
22
3- ; CHECK: {{.*filecheck.check:1:.*: error: CHECK: expected string not found in input$}}
4- ; CHECK-NEXT: {{^}}; CHECK: foo{{$}}
5- ; CHECK-NEXT: {{^}} ^{{$}}
6- ; CHECK-NEXT: {{^<stdin>:.*:.*: note: scanning from here$}}
7- ; CHECK-NEXT: hello1
8- ; CHECK-NEXT: {{^\^$}}
9- ; CHECK-NEXT: {{^<stdin>:.*:.*: note: possible intended match here$}}
10- ; CHECK-NEXT: {{^fo$}}
3+ CHECK:{{.*filecheck.check:1:.*: error: CHECK: expected string not found in input$}}
4+ CHECK-NEXT:CHECK: foo
5+ CHECK-NEXT: ^
6+ CHECK-NEXT:{{^<stdin>:.*:.*: note: scanning from here$}}
7+ CHECK-NEXT:hello1
8+ CHECK-NEXT:^
9+ CHECK-NEXT:{{^<stdin>:.*:.*: note: possible intended match here$}}
10+ CHECK-NEXT:fo
1111
12- ; TODO: https://github.com/stanislaw/FileCheck.py/issues/38
13- ; CHECK-NEXT: {{^ ?\^$}}
14- ; CHECK-EMPTY:
12+ TODO: https://github.com/stanislaw/FileCheck.py/issues/38
13+ CHECK-NEXT:{{^ ?\^$}}
14+ CHECK-EMPTY:
Original file line number Diff line number Diff line change 1- ; CHECK: foo
2- ; CHECK: hello2
3- ; CHECK: hello3
1+ CHECK: foo
2+ CHECK: hello2
3+ CHECK: hello3
Original file line number Diff line number Diff line change 1- ; RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --match-full-lines
1+ RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --match-full-lines --strict-whitespace
22
3- ; CHECK: {{.*filecheck.check:1:.*: error: CHECK: expected string not found in input$}}
4- ; CHECK-NEXT: {{^}}; CHECK: foo{{$}}
5- ; CHECK-NEXT: {{^}} ^{{$}}
6- ; CHECK-NEXT: {{^<stdin>:.*:.*: note: scanning from here$}}
7- ; CHECK-NEXT: {{^ bar$}}
8- ; CHECK-NEXT: {{^\^$}}
9- ; CHECK-EMPTY:
3+ CHECK:{{.*filecheck.check:1:.*: error: CHECK: expected string not found in input$}}
4+ CHECK-NEXT:CHECK: foo
5+ CHECK-NEXT: ^
6+ CHECK-NEXT:{{^<stdin>:.*:.*: note: scanning from here$}}
7+ CHECK-NEXT:bar
8+ CHECK-NEXT:^
9+ CHECK-EMPTY:
Original file line number Diff line number Diff line change 1- ; CHECK: hello1
2- ; CHECK: foo
3- ; CHECK: hello3
1+ CHECK: hello1
2+ CHECK: foo
3+ CHECK: hello3
Original file line number Diff line number Diff line change 1- ; RUN: %cat "%S/filecheck.input" | (%FILECHECK_EXEC "%S/filecheck.check" 2>&1 || true) | %FILECHECK_TESTER_EXEC "%s" --match-full-lines
1+ RUN: %cat "%S/filecheck.input" | (%FILECHECK_EXEC "%S/filecheck.check" 2>&1 || true) | %FILECHECK_TESTER_EXEC "%s" --match-full-lines --strict-whitespace
22
3- ; CHECK: {{.*filecheck.check:2:10: error: CHECK: expected string not found in input$}}
4- ; CHECK: {{^}}; CHECK: foo{{$}}
5- ; CHECK: {{^}} ^{{$}}
6- ; CHECK: {{^<stdin>:.*:.*: note: scanning from here$}}
7- ; CHECK: hello2
8- ; CHECK: ^{{$}}
9- ; CHECK: {{^<stdin>:.*:.*: note: possible intended match here$}}
10- ; CHECK: hello2
11- ; CHECK: ^
12- ; CHECK-EMPTY:
3+ CHECK:{{.*filecheck.check:2:8: error: CHECK: expected string not found in input$}}
4+ CHECK-NEXT:CHECK: foo
5+ CHECK-NEXT: ^
6+ CHECK-NEXT:{{^<stdin>:.*:.*: note: scanning from here$}}
7+ CHECK-NEXT:hello2
8+ CHECK-NEXT:^
9+ CHECK-NEXT:{{^<stdin>:.*:.*: note: possible intended match here$}}
10+ CHECK-NEXT:hello2
11+
12+ TODO: Difference with LLVM FileCheck
13+ CHECK-NEXT:{{ ?\^}}
14+
15+ CHECK-EMPTY:
Original file line number Diff line number Diff line change 1- ; CHECK: hello1
2- ; CHECK: hello2
3- ; CHECK: foo
1+ CHECK: hello1
2+ CHECK: hello2
3+ CHECK: foo
Original file line number Diff line number Diff line change 1- ; RUN: %cat "%S/filecheck.input" | (%FILECHECK_EXEC "%S/filecheck.check" 2>&1 || true) | %FILECHECK_TESTER_EXEC "%s" --match-full-lines
1+ RUN: %cat "%S/filecheck.input" | (%FILECHECK_EXEC "%S/filecheck.check" 2>&1 || true) | %FILECHECK_TESTER_EXEC "%s" --match-full-lines --strict-whitespace
22
3- ; CHECK: {{.*filecheck.check:3:10 : error: CHECK: expected string not found in input$}}
4- ; CHECK: {{^}}; CHECK: foo{{$}}
5- ; CHECK: {{^}} ^{{$}}
6- ; CHECK: {{^<stdin>:.*:.*: note: scanning from here$}}
7- ; CHECK: hello3
8- ; CHECK: ^{{$}}
9- ; CHECK: {{^<stdin>:.*:.*: note: possible intended match here$}}
10- ; CHECK: hello3
11- ; CHECK: ^
12- ; CHECK-EMPTY:
3+ CHECK:{{.*filecheck.check:3:8 : error: CHECK: expected string not found in input$}}
4+ CHECK-NEXT: CHECK: foo
5+ CHECK-NEXT: ^
6+ CHECK-NEXT: {{^<stdin>:.*:.*: note: scanning from here$}}
7+ CHECK-NEXT: hello3
8+ CHECK-NEXT:^
9+ CHECK-NEXT: {{^<stdin>:.*:.*: note: possible intended match here$}}
10+ CHECK-NEXT: hello3
11+ CHECK-NEXT: {{ ?}} ^
12+ CHECK-EMPTY:
You can’t perform that action at this time.
0 commit comments