Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; CHECK: hello
; CHECK-EMPTY:
; CHECK: hello
; CHECK-EMPTY:
CHECK: hello
CHECK-EMPTY:
CHECK: hello
CHECK-EMPTY:
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
; CHECK: string 1
; CHECK-NEXT: foo
CHECK: string 1
CHECK-NEXT: foo
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
; RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines
RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines

; CHECK:{{.*}}filecheck.check:2:15: error: CHECK-NEXT: expected string not found in input
; CHECK:; CHECK-NEXT: foo
; CHECK: ^
; CHECK:<stdin>:2:1: note: scanning from here
; CHECK:string 2
; CHECK:^
; CHECK-EMPTY:
CHECK:{{.*}}filecheck.check:2:13: error: CHECK-NEXT: expected string not found in input
CHECK:CHECK-NEXT: foo
CHECK: ^
CHECK:<stdin>:2:1: note: scanning from here
CHECK:string 2
CHECK:^
CHECK-EMPTY:
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
; CHECK: string 1
; CHECK-NEXT: string 3
CHECK: string 1
CHECK-NEXT: string 3
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
; RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines
RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines

; CHECK:{{.*}}filecheck.check:2:15: error: CHECK-NEXT: is not on the line after the previous match{{$}}
; CHECK-NEXT:; CHECK-NEXT: string 3
; CHECK-NEXT: ^
; CHECK-NEXT:<stdin>:3:1: note: 'next' match was here
; CHECK-NEXT:string 3
; CHECK-NEXT:^
; CHECK-NEXT:<stdin>:1:9: note: previous match ended here
; CHECK-NEXT:string 1
; CHECK-NEXT: ^
; CHECK-NEXT:<stdin>:2:1: note: non-matching line after previous match is here
; CHECK-NEXT:string 2
; CHECK-NEXT:^
CHECK:{{.*}}filecheck.check:2:13: error: CHECK-NEXT: is not on the line after the previous match{{$}}
CHECK-NEXT:CHECK-NEXT: string 3
CHECK-NEXT: ^
CHECK-NEXT:<stdin>:3:1: note: 'next' match was here
CHECK-NEXT:string 3
CHECK-NEXT:^
CHECK-NEXT:<stdin>:1:9: note: previous match ended here
CHECK-NEXT:string 1
CHECK-NEXT: ^
CHECK-NEXT:<stdin>:2:1: note: non-matching line after previous match is here
CHECK-NEXT:string 2
CHECK-NEXT:^
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; RUN: %cat "%S/filecheck.input" | %expect_exit 2 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines
RUN: %cat "%S/filecheck.input" | %expect_exit 2 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines

; CHECK:{{^.*}}filecheck.check:1:4: error: found 'CHECK-NEXT' without previous 'CHECK: line{{$}}
; CHECK:// CHECK-NEXT: 2
; CHECK: ^
; CHECK-EMPTY:
CHECK:{{^.*}}filecheck.check:1:4: error: found 'CHECK-NEXT' without previous 'CHECK: line{{$}}
CHECK:// CHECK-NEXT: 2
CHECK: ^
CHECK-EMPTY:
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
; CHECK: string 1
; CHECK-NEXT: {{string 3}}
CHECK: string 1
CHECK-NEXT: {{string 3}}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
; RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines
RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines

; CHECK:{{.*}}filecheck.check:2:15: error: CHECK-NEXT: is not on the line after the previous match{{$}}
; CHECK-NEXT:{{^; CHECK-NEXT: ..string 3..$}}
; CHECK-NEXT: ^
; CHECK-NEXT:<stdin>:3:1: note: 'next' match was here
; CHECK-NEXT:string 3
; CHECK-NEXT:^
; CHECK-NEXT:<stdin>:1:9: note: previous match ended here
; CHECK-NEXT:string 1
; CHECK-NEXT: ^
; CHECK-NEXT:<stdin>:2:1: note: non-matching line after previous match is here
; CHECK-NEXT:string 2
; CHECK-NEXT:^
CHECK:{{.*}}filecheck.check:2:13: error: CHECK-NEXT: is not on the line after the previous match{{$}}
CHECK-NEXT:{{^CHECK-NEXT: ..string 3..$}}
CHECK-NEXT: ^
CHECK-NEXT:<stdin>:3:1: note: 'next' match was here
CHECK-NEXT:string 3
CHECK-NEXT:^
CHECK-NEXT:<stdin>:1:9: note: previous match ended here
CHECK-NEXT:string 1
CHECK-NEXT: ^
CHECK-NEXT:<stdin>:2:1: note: non-matching line after previous match is here
CHECK-NEXT:string 2
CHECK-NEXT:^
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
; CHECK-NOT:{{.*String1.*}}
; CHECK:String2
CHECK-NOT:{{.*String1.*}}
CHECK:String2
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
; RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines
RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines

; CHECK:{{^.*}}:1:13: error: CHECK-NOT: excluded string found in input
; CHECK:{{; CHECK-NOT:..\.\*String1.*..}}
; CHECK:{{^ \^$}}
; CHECK:<stdin>:2:1: note: found here
; CHECK:String1
; CHECK:^~~~~~~
; CHECK-EMPTY:
CHECK:{{^.*}}:1:11: error: CHECK-NOT: excluded string found in input
CHECK:{{CHECK-NOT:..\.\*String1.*..}}
CHECK:{{^ \^$}}
CHECK:<stdin>:2:1: note: found here
CHECK:String1
CHECK:^~~~~~~
CHECK-EMPTY:
Original file line number Diff line number Diff line change
@@ -1 +1 @@
; CHECK-NOT:String5
CHECK-NOT:String5
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
; RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines
RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines

; CHECK:{{^.*}}filecheck.check:1:13: error: CHECK-NOT: excluded string found in input{{$}}
; CHECK:; CHECK-NOT:String5
; CHECK: ^
; CHECK:<stdin>:5:1: note: found here
; CHECK:String5
; CHECK:^~~~~~~
; CHECK-EMPTY:
CHECK:{{^.*}}filecheck.check:1:11: error: CHECK-NOT: excluded string found in input{{$}}
CHECK:CHECK-NOT:String5
CHECK: ^
CHECK:<stdin>:5:1: note: found here
CHECK:String5
CHECK:^~~~~~~
CHECK-EMPTY:
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
; CHECK:String2
; CHECK-NOT:{{.*String1.*}}
CHECK:String2
CHECK-NOT:{{.*String1.*}}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
; CHECK:String2
; CHECK-NOT:{{.*String1.*}}
; CHECK:String3
CHECK:String2
CHECK-NOT:{{.*String1.*}}
CHECK:String3
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
; RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines
RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines

; CHECK:{{^.*}}filecheck.check:3:9: error: CHECK: expected string not found in input{{$}}
; CHECK:; CHECK:String3
; CHECK: ^
; TODO: Without --match-full-lines, LLVM FileCheck allows multiple checks on a same line #52
; TODO: https://github.com/stanislaw/FileCheck.py/issues/52
; CHECK:{{<stdin>:(1|2):(8|1): note: scanning from here}}
; CHECK:{{.*}}
; CHECK:{{.*^}}
; TODO: "note: possible intended match here" feature: not clear when FileCheck decides to show it or not #63
; TODO: https://github.com/stanislaw/FileCheck.py/issues/63
; CHECK-EMPTY
CHECK:{{^.*}}filecheck.check:3:7: error: CHECK: expected string not found in input{{$}}
CHECK:CHECK:String3
CHECK: ^
TODO: Without --match-full-lines, LLVM FileCheck allows multiple checks on a same line #52
TODO: https://github.com/stanislaw/FileCheck.py/issues/52
CHECK:{{<stdin>:(1|2):(8|1): note: scanning from here}}
CHECK:{{.*}}
CHECK:{{.*^}}
TODO: "note: possible intended match here" feature: not clear when FileCheck decides to show it or not #63
TODO: https://github.com/stanislaw/FileCheck.py/issues/63
CHECK-EMPTY
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
; CHECK-NOT:warning
; CHECK-NOT:error
CHECK-NOT:warning
CHECK-NOT:error
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines
RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines

; CHECK:; CHECK-NOT:warning
; CHECK: ^
; CHECK:<stdin>:2:1: note: found here
; CHECK:warning
; CHECK:^~~~~~~
CHECK:CHECK-NOT:warning
CHECK: ^
CHECK:<stdin>:2:1: note: found here
CHECK:warning
CHECK:^~~~~~~
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
; CHECK-NOT:warning
; CHECK-NOT:error
CHECK-NOT:warning
CHECK-NOT:error
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
; RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines
RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines

; CHECK:{{^.*}}filecheck.check:1:13: error: CHECK-NOT: excluded string found in input
; CHECK:; CHECK-NOT:warning
; CHECK: ^
; CHECK:<stdin>:1:1: note: found here
; CHECK:warning
; CHECK:^~~~~~~
; CHECK-EMPTY:
CHECK:{{^.*}}filecheck.check:1:11: error: CHECK-NOT: excluded string found in input
CHECK:CHECK-NOT:warning
CHECK: ^
CHECK:<stdin>:1:1: note: found here
CHECK:warning
CHECK:^~~~~~~
CHECK-EMPTY:
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
; CHECK-NOT:String1
; CHECK:String2
CHECK-NOT:String1
CHECK:String2
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
; RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines
RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines

; CHECK:{{^.*}}filecheck.check:2:9: error: CHECK: expected string not found in input
; CHECK:; CHECK:String2
; CHECK: ^
; CHECK:<stdin>:1:1: note: scanning from here
; CHECK:String1
; CHECK:^
; TODO: Difference in behavior: FileCheck.py prints possible intended match,
; TODO: while FileCheck C++ does not.
; CHECK-EMPTY
CHECK:{{^.*}}filecheck.check:2:7: error: CHECK: expected string not found in input
CHECK:CHECK:String2
CHECK: ^
CHECK:<stdin>:1:1: note: scanning from here
CHECK:String1
CHECK:^

TODO: Difference in behavior: FileCheck.py prints possible intended match,
TODO: while FileCheck C++ does not.
CHECK-EMPTY
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
; CHECK-NOT:{{.*String2.*}}
; CHECK:String3
CHECK-NOT:{{.*String2.*}}
CHECK:String3
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
; RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines
RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines

; CHECK:{{^.*}}:2:9: error: CHECK: expected string not found in input
; CHECK:; CHECK:String3
; CHECK: ^
; CHECK:<stdin>:1:1: note: scanning from here
; CHECK:String1
; CHECK:^
; TODO: Difference in behavior: FileCheck.py prints possible intended match,
; TODO: while FileCheck C++ does not.
; CHECK-EMPTY
CHECK:{{^.*}}:2:7: error: CHECK: expected string not found in input
CHECK:CHECK:String3
CHECK: ^
CHECK:<stdin>:1:1: note: scanning from here
CHECK:String1
CHECK:^

TODO: Difference in behavior: FileCheck.py prints possible intended match,
TODO: while FileCheck C++ does not.
CHECK-EMPTY
Original file line number Diff line number Diff line change
@@ -1 +1 @@
; CHECK-NOT: hello
CHECK-NOT: hello
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
; RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines
RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines

; CHECK:{{^.*}}filecheck.check:1:14: error: CHECK-NOT: excluded string found in input{{$}}
; CHECK-NEXT:; CHECK-NOT: hello
; CHECK-NEXT: ^
; CHECK-NEXT:<stdin>:1:1: note: found here
; CHECK-NEXT:hello
; CHECK-NEXT:^~~~~
; CHECK-EMPTY:
CHECK:{{^.*}}filecheck.check:1:12: error: CHECK-NOT: excluded string found in input{{$}}
CHECK-NEXT:CHECK-NOT: hello
CHECK-NEXT: ^
CHECK-NEXT:<stdin>:1:1: note: found here
CHECK-NEXT:hello
CHECK-NEXT:^~~~~
CHECK-EMPTY:
Original file line number Diff line number Diff line change
@@ -1 +1 @@
; CHECK-NOT: hello world
CHECK-NOT: hello world
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
; RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines
RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines

; CHECK:{{^.*}}filecheck.check:1:14: error: CHECK-NOT: excluded string found in input{{$}}
; CHECK-NEXT:{{^; CHECK-NOT: hello world$}}
; CHECK-NEXT:{{^ \^$}}
; CHECK-NEXT:<stdin>:1:1: note: found here
; CHECK-NEXT:{{^hello world$}}
; CHECK-NEXT:{{^\^~+$}}
; CHECK-EMPTY:
CHECK:{{^.*}}filecheck.check:1:12: error: CHECK-NOT: excluded string found in input{{$}}
CHECK-NEXT:{{^CHECK-NOT: hello world$}}
CHECK-NEXT:{{^ \^$}}
CHECK-NEXT:<stdin>:1:1: note: found here
CHECK-NEXT:{{^hello world$}}
CHECK-NEXT:{{^\^~+$}}
CHECK-EMPTY: