This is a minimal example of showing usage of lit out of the llvm-project.
The codes should tell themself, you can read the comment in the files to understand how to do it.
Here is a recommended reading order:
CMakeLists.txt
: Tells you how to integrate lit into cmakelit.site.cfg
: Tells you how to bridge cmake and litlit.cfg
: Tells you how to setup a common configtests/
andsrcs/
: Tell you how to uselit.local.cfg
and how to add new tests
If you can read chinese (or you may use chrome translation), my post lit and filecheck may help you too.