FileCheck.py
FileCheck.py copied to clipboard
Attempt to reimplement LLVM's FileCheck using Python.
We'd like to use FileCheck to check log files with floating point numbers (in scientific computing). Apparently neither the C++ filecheck nor the `FileCheck.py` knows about floating point numbers. Here...
LLVM FileCheck has the following regex validation: ``` .../sample.itest:12:19: error: invalid regex: parentheses not balanced CHECK-NEXT:hello{{(1|2}} ```
Similar to #100, please switch to testing against recent LLVM. Versions 8 and 9 are long obsolete and no longer included in modern Fedora. Additional Fedora LLVM package maintainer's policy...
- [x] Edge case: Matching greedy lines (CHECK: appears two and more times in a line) - [ ] Edge case: `CHECK: {{^}} ^{{$}}` – issue with spaces.
As asked and then checked by @AlexDenisov , it works like this: ``` RUN: %foo \ RUN: bar \ RUN: buzz | %FileCheck %s --match-full-lines ``` There might be a...
See `10-edge-case-llvm-vs-py-ghost-newline-in-llvm`: ``` ; RUN: echo -e "String1" | (%FILECHECK_EXEC %S/CHECK.check 2>&1; test $? = 1;) | %FILECHECK_EXEC %s --strict-whitespace --match-full-lines ; CHECK:{{^.*}}FileCheck{{(\.py)?$}} // TODO: Something wrong with the greediness...
We didn't know this was possible. While we don't agree that this behavior makes sense, we will still implement this behavior to be compatible. It is a good idea though...
This branch: bugs/20191121-CHECK_NOT has a reproducible crash of a C++ FileCheck. Would be nice to check it at some point. ``` Assertion failed: (AfterSuffix.data() >= Buffer.data() && AfterSuffix.data() < Buffer.data()...
Check file: ``` CHECK: String1 CHECK-EMPTY: CHECK: String2 ``` Test: ``` echo -e "String1\nString2" | (/Users/Stanislaw/workspace/inbox-active-code/FileCheck.py/tests/integration/tools/FileCheck/FileCheck /Users/Stanislaw/workspace/inbox-active-code/FileCheck.py/tests/integration/tests/examples/check-commands/CHECK-EMPTY/Failure/CHECK-EMPTY.check 2>&1; test $? = 1) /Users/Stanislaw/workspace/inbox-active-code/FileCheck.py/tests/integration/tools/FileCheck /Users/Stanislaw/workspace/inbox-active-code/FileCheck.py/tests/integration/tests/examples/check-commands/CHECK-EMPTY/Failure/CHECK-EMPTY.check:2:13: error: CHECK-EMPTY: is not on the...