-
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.
Merge pull request #3 from stanislaw/develop
CHECK-NOT command: more tests
- Loading branch information
Showing
10 changed files
with
27 additions
and
3 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
...basic_functionality/check_commands/CHECK-NOT/one_string/02-positive_match/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-NOT: hello |
1 change: 1 addition & 0 deletions
1
...basic_functionality/check_commands/CHECK-NOT/one_string/02-positive_match/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 @@ | ||
foo |
3 changes: 3 additions & 0 deletions
3
...ts/basic_functionality/check_commands/CHECK-NOT/one_string/02-positive_match/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,3 @@ | ||
; RUN: cat %S/filecheck.input | (%FILECHECK_EXEC %S/filecheck.check 2>&1; test $? == 0;) | %FILECHECK_TESTER_EXEC %s | ||
; CHECK: {{^.*}}FileCheck | ||
; CHECK-EMPTY: |
1 change: 1 addition & 0 deletions
1
...functionality/check_commands/CHECK-NOT/one_string/03-negative_match_regex/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-NOT: {{^h.l.o$}} |
1 change: 1 addition & 0 deletions
1
...functionality/check_commands/CHECK-NOT/one_string/03-negative_match_regex/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 |
12 changes: 12 additions & 0 deletions
12
...ic_functionality/check_commands/CHECK-NOT/one_string/03-negative_match_regex/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,12 @@ | ||
; RUN: cat %S/filecheck.input | (%FILECHECK_EXEC %S/filecheck.check 2>&1; test $? == 1;) | %FILECHECK_TESTER_EXEC %s | ||
; CHECK: {{^.*}}FileCheck | ||
; CHECK-NEXT: {{^.*}}filecheck.check:1:14: error: CHECK-NOT: excluded string found in input{{$}} | ||
; TODO: Here we could do a better match. | ||
; CHECK-NEXT: {{^; CHECK-NOT: ...h.l.o...$}} | ||
; TODO: Real FileCheck ignores whitespaces even when regex is passed. | ||
; TODO: The next step is to check the --strict-whitespace option. | ||
; CHECK-NEXT: {{^ \^$}} | ||
; CHECK-NEXT: {{^<stdin>:.*:.*: note: found here$}} | ||
; CHECK-NEXT: {{^}}hello{{$}} | ||
; CHECK-NEXT: {{^}}^~~~~{{$}} | ||
; CHECK-EMPTY: |
1 change: 1 addition & 0 deletions
1
...functionality/check_commands/CHECK-NOT/one_string/04-positive_match_regex/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-NOT: {{hello}} |
1 change: 1 addition & 0 deletions
1
...functionality/check_commands/CHECK-NOT/one_string/04-positive_match_regex/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 @@ | ||
foo |
3 changes: 3 additions & 0 deletions
3
...ic_functionality/check_commands/CHECK-NOT/one_string/04-positive_match_regex/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,3 @@ | ||
; RUN: cat %S/filecheck.input | (%FILECHECK_EXEC %S/filecheck.check 2>&1; test $? == 0;) | %FILECHECK_TESTER_EXEC %s | ||
; CHECK: {{^.*}}FileCheck | ||
; CHECK-EMPTY: |