Alexander Richardson | 46e1fd6 | 2017-11-07 13:24:44 +0000 | [diff] [blame] | 1 | ; RUN: FileCheck -DVALUE=10 -input-file %s %s |
| 2 | ; RUN: not FileCheck -DVALUE=20 -input-file %s %s 2>&1 | FileCheck %s -check-prefix ERRMSG |
Joel E. Denny | dc5ba31 | 2018-07-13 03:08:23 +0000 | [diff] [blame] | 3 | ; |
| 4 | ; RUN: not FileCheck -DVALUE=10 -check-prefix NOT -input-file %s %s 2>&1 | FileCheck %s -check-prefix NOT-ERRMSG |
| 5 | ; RUN: FileCheck -DVALUE=20 -check-prefix NOT -input-file %s %s |
Thomas Preud'homme | a5e233b | 2019-02-05 14:17:28 +0000 | [diff] [blame^] | 6 | ; RUN: not FileCheck -DVALUE10 -input-file %s %s 2>&1 | FileCheck %s -check-prefix ERRCLIEQ1 |
| 7 | ; RUN: not FileCheck -D -input-file %s %s 2>&1 | FileCheck %s -check-prefix ERRCLIEQ2 |
| 8 | ; RUN: not FileCheck -D=10 -input-file %s %s 2>&1 | FileCheck %s -check-prefix ERRCLIVAR1 |
| 9 | ; RUN: not FileCheck -D= -input-file %s %s 2>&1 | FileCheck %s -check-prefix ERRCLIVAR2 |
| 10 | ; RUN: FileCheck -DVALUE= -check-prefix EMPTY -input-file %s %s 2>&1 |
Alexander Richardson | 46e1fd6 | 2017-11-07 13:24:44 +0000 | [diff] [blame] | 11 | |
| 12 | Value = 10 |
| 13 | ; CHECK: Value = [[VALUE]] |
Joel E. Denny | dc5ba31 | 2018-07-13 03:08:23 +0000 | [diff] [blame] | 14 | ; NOT-NOT: Value = [[VALUE]] |
Alexander Richardson | 46e1fd6 | 2017-11-07 13:24:44 +0000 | [diff] [blame] | 15 | |
Thomas Preud'homme | a5e233b | 2019-02-05 14:17:28 +0000 | [diff] [blame^] | 16 | ; ERRMSG: defines.txt:[[@LINE-3]]:10: error: CHECK: expected string not found in input |
Joel E. Denny | dc5ba31 | 2018-07-13 03:08:23 +0000 | [diff] [blame] | 17 | ; ERRMSG: defines.txt:1:1: note: scanning from here |
Alexander Richardson | 46e1fd6 | 2017-11-07 13:24:44 +0000 | [diff] [blame] | 18 | ; ERRMSG: defines.txt:1:1: note: with variable "VALUE" equal to "20" |
Thomas Preud'homme | a5e233b | 2019-02-05 14:17:28 +0000 | [diff] [blame^] | 19 | ; ERRMSG: defines.txt:[[@LINE-7]]:1: note: possible intended match here |
Joel E. Denny | dc5ba31 | 2018-07-13 03:08:23 +0000 | [diff] [blame] | 20 | |
Thomas Preud'homme | a5e233b | 2019-02-05 14:17:28 +0000 | [diff] [blame^] | 21 | ; NOT-ERRMSG: defines.txt:[[@LINE-7]]:12: error: {{NOT}}-NOT: excluded string found in input |
| 22 | ; NOT-ERRMSG: defines.txt:[[@LINE-10]]:1: note: found here |
| 23 | ; NOT-ERRMSG: defines.txt:[[@LINE-11]]:1: note: with variable "VALUE" equal to "10" |
| 24 | |
| 25 | ; ERRCLIEQ1: Missing equal sign in command-line definition '-DVALUE10' |
| 26 | |
| 27 | ; ERRCLIEQ2: FileCheck{{[^:]*}}: for the -D option: requires a value! |
| 28 | |
| 29 | ; ERRCLIVAR1: Missing pattern variable name in command-line definition '-D=10' |
| 30 | |
| 31 | ; ERRCLIVAR2: Missing pattern variable name in command-line definition '-D=' |
| 32 | |
| 33 | Empty value = @@ |
| 34 | ; EMPTY: Empty value = @[[VALUE]]@ |