File Check - Validate Files with Patterns | Online Free DevTools by Hexmos
Validate files with FileCheck using flexible pattern matching. Check input file content, customize prefixes, and verify LLVM code. Free online tool, no registration required.
filecheck
Flexible pattern matching file verifier. It is typically used from LLVM regression tests and forms a part of a
littest. More information: https://llvm.org/docs/CommandGuide/FileCheck.html.
- Match
input_filecontent with pattern filecheck_file:
FileCheck --input-file={{path/to/input_file}} {{path/to/check_file}}
- Match input from the
stdinwith pattern filecheck_file:
echo "{{some_text}}" | FileCheck {{path/to/check_file}}
- Match with the specified custom check
prefix(Note: The default prefix isCHECK):
echo "{{some_text}}" | FileCheck --check-prefix={{prefix}} {{path/to/check_file}}
- Print good directive pattern matches:
echo "{{some_text}}" | FileCheck -v {{path/to/check_file}}
- Input
llvm_code.llinto llvm-as, then pipe the output into FileCheck to match:
llvm-as {{path/to/llvm_code.ll}} | FileCheck {{path/to/check_file}}
