FileCheck - Flexible pattern matching file verifier
FileCheck match-filename [--check-prefix=XXX] [--strict-whitespace]
FileCheck reads two files (one from standard input, and one specified on the command line) and uses one to verify the other. This behavior is particularly useful for the testsuite, which wants to verify that the output of some tool (e.g. llc) contains the expected information (for example, a movsd from esp or whatever is interesting). This is similar to using grep, but it is optimized for matching multiple different inputs in one file in a specific order.
The match-filename file specifies the file that contains the patterns to match. The file to verify is always read from standard input.
The input and output of FileCheck is beyond the scope of this short introduction. Please see the TestingGuide page in the LLVM documentation.
If FileCheck verifies that the file matches the expected contents, it exits with 0. Otherwise, if not, or if an error occurs, it will exit with a non-zero value.
Maintained by The LLVM Team (http://llvm.org).