llvm.org GIT mirror llvm / 2b89a6a
Adding information on what testing support is provided by the LLVM build system. Currently, it is not much. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9348 91177308-0d34-0410-b5e6-96231b3b80d8 John Criswell 15 years ago
1 changed file(s) with 34 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
187187 code for executables. For each program that you build, you
188188 will have one directory in tools that will contain that
189189 program's source code.
190

191
192
test
193
194 This subdirectory should contain tests that verify that your code
195 works correctly. Automated tests are especially useful.
196

197 Currently, the LLVM build system provides little support for tests,
198 although some exists. Expanded support for tests will hopefully
199 occur in the future. In the meantime, the LLVM system does provide the
200 following:
201
202
  • 203 LLVM provides several QMTest test classes that can be used to
    204 create tests. They can be found in
    205 llvm/test/QMTest/llvm.py. These test classes perform a
    206 variety of functions, including code optimization tests, assembly
    207 tests, and code analysis tests. The Makefile in
    208 llvm/test provides the QMTest context needed by LLVM test
    209 classes.
    210

    211
    212
  • 213 The LLVM source tree provides benchmarks and programs which are
    214 known to compile with the LLVM GCC front ends. You can use these
    215 programs to test your code, gather statistics information, and
    216 compare it to the current LLVM performance statistics. These
    217 programs are found in the llvm/test/Programs directory.
    218

    219 Currently, there is no way to hook your tests directly into the
    220 llvm/test/Programs testing harness. You will simply
    221 need to find a way to use the source provided within that directory
    222 on your own.
    223
    190224
    191225
    192226 Typically, you will want to build your lib directory first