Further reading
Currently, the source code for FileCheck – written in C++ – is still inside LLVM's source tree. Try to replicate its functionality using Python (https://github.com/mull-project/FileCheck.py), which will effectively help you use FileCheck without building LLVM, just like LIT!