An agglomeration of integration tests for the LLVM Toolchain. Unlike the various existing llvm testing suites, this is meant to be used in an installed environment to detect packaging issues.
This is an initiative started by Debian/Ubuntu and Fedora maintainers to agregate the testing effort. Hopefully, this project will be also a forcing function to bring more consistency in the LLVM toolchain packaging.
The lit tool is used to run the tests and cmake is used for the configuration step.
From source directory:
> mkdir _build && cd _build
> cmake ..
> make check
LIT
: path to the lit programCLANG_BINARY
: path to the clang binary to checkCLANGXX_BINARY
: path to the clang++ binary to checkCLANG_TIDY_BINARY
: path to the clang tidy binary to checkLLD_BINARY
: path to the lld binary to checkLLDB_BINARY
: path to the lldb binary to checkENABLE_COMPILER_RT
: ON (the default) if we assume compiler-rt is availableENABLE_LIBCXX
: ON (the default) if we assume libc++ is availableENABLE_STATIC_LIBCXX
: ON (the default) if we assume libc++.a is availableENABLE_LIBUNWIND
: ON (the default) if we assume libunwind is availableENABLE_HWASAN
: Run hwasan tests. Autodetected based on the host system.ENABLE_LIBOMP
: Run libomp tests. Autodetected based on the system. It can- be manually forced via -DENABLE_LIBOMP=<ON|OFF> at cmake configure time
Just drop a new file under tests/
, using the lit format. Please use the following substitutions and requirements:
%clang
%clangxx
%clang-tidy
%lldb
%lld
%scan-build
%scan-view
%scan-build-py
- clang
- clangxx
- clang-tidy
- lldb
- lld
- scanbuild
- scanbuild-py
- scanview
See LICENSE.txt