Add generic integration test suite gating
This commit is contained in:
parent
8ef0cdb22d
commit
2afe5dbfcc
38
tests/integration-test-suite/runtest.sh
Executable file
38
tests/integration-test-suite/runtest.sh
Executable file
@ -0,0 +1,38 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
echo "usage `basename $0` [OPTIONS]"
|
||||||
|
echo " --threads NUM The number of threads to use for running tests."
|
||||||
|
}
|
||||||
|
|
||||||
|
thread_args=""
|
||||||
|
repo_url=https://github.com/opencollab/llvm-toolchain-integration-test-suite
|
||||||
|
|
||||||
|
while [ $# -gt 0 ]; do
|
||||||
|
case $1 in
|
||||||
|
--threads)
|
||||||
|
shift
|
||||||
|
threads="$1"
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
echo "unknown option: $1"
|
||||||
|
echo ""
|
||||||
|
usage
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ -n "$threads" ]; then
|
||||||
|
thread_args="-j$threads"
|
||||||
|
fi
|
||||||
|
|
||||||
|
set -xe
|
||||||
|
|
||||||
|
cd $(mktemp -d -p /var/tmp)
|
||||||
|
git clone $repo_url
|
||||||
|
cd llvm-toolchain-integration-test-suite
|
||||||
|
mkdir _build && cd _build
|
||||||
|
cmake .. -GNinja
|
||||||
|
ninja $thread_args check
|
@ -26,6 +26,23 @@
|
|||||||
- redhat-rpm-config
|
- redhat-rpm-config
|
||||||
# Required for clang-format-diff
|
# Required for clang-format-diff
|
||||||
- clang-tools-extra
|
- clang-tools-extra
|
||||||
|
# the requirements below are for the integration suite
|
||||||
|
- cmake
|
||||||
|
- llvm-devel
|
||||||
|
- clang
|
||||||
|
- clang-analyzer
|
||||||
|
- clang-tools-extra
|
||||||
|
- compiler-rt
|
||||||
|
- ninja-build
|
||||||
|
- libcxx-devel
|
||||||
|
- libomp-devel
|
||||||
|
- python-lit
|
||||||
|
- lld
|
||||||
|
- lldb
|
||||||
|
- git
|
||||||
|
- make
|
||||||
|
- libstdc++-static
|
||||||
|
- clang-devel
|
||||||
|
|
||||||
repositories:
|
repositories:
|
||||||
- repo: "https://src.fedoraproject.org/rpms/llvm-test-suite.git"
|
- repo: "https://src.fedoraproject.org/rpms/llvm-test-suite.git"
|
||||||
@ -43,3 +60,4 @@
|
|||||||
- fedora-flags
|
- fedora-flags
|
||||||
- toolchains
|
- toolchains
|
||||||
- clang-format-diff
|
- clang-format-diff
|
||||||
|
- integration-test-suite
|
||||||
|
Loading…
Reference in New Issue
Block a user