-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Here we diverge from LLVM FileCheck for now. We don't implement its rather complex formatting for this option. Instead the raw input lines are printed as is. We might implement the original behavior later.
- Loading branch information
Showing
7 changed files
with
57 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/integration/tests/options/--dump-input/fail/01-dump-when-negative/filecheck.check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CHECK: foo |
1 change: 1 addition & 0 deletions
1
tests/integration/tests/options/--dump-input/fail/01-dump-when-negative/filecheck.input
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
hello |
14 changes: 14 additions & 0 deletions
14
tests/integration/tests/options/--dump-input/fail/01-dump-when-negative/sample.itest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
RUN: %cat "%S/filecheck.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" --dump-input=fail | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines | ||
|
||
CHECK:{{.*}}filecheck.check:1:8: error: CHECK: expected string not found in input{{$}} | ||
CHECK:{{^}}CHECK: foo{{$}} | ||
CHECK:{{^}} ^{{$}} | ||
CHECK:<stdin>:1:1: note: scanning from here | ||
CHECK:hello | ||
CHECK:^ | ||
CHECK:<stdin>:1:3: note: possible intended match here | ||
CHECK:hello | ||
CHECK: ^ | ||
CHECK-EMPTY: | ||
CHECK:Full input was: | ||
CHECK:{{.*}}hello |
1 change: 1 addition & 0 deletions
1
tests/integration/tests/options/--dump-input/fail/02-dont-dump-when-positive/filecheck.check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CHECK: hello |
1 change: 1 addition & 0 deletions
1
tests/integration/tests/options/--dump-input/fail/02-dont-dump-when-positive/filecheck.input
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
hello |
1 change: 1 addition & 0 deletions
1
tests/integration/tests/options/--dump-input/fail/02-dont-dump-when-positive/sample.itest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
RUN: %cat "%S/filecheck.input" | %expect_exit 0 --expect-no-content %FILECHECK_EXEC "%S/filecheck.check" |