mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-28 10:35:42 +00:00
Use integration test suite instead of regression test suite
This commit is contained in:
parent
d39dd44d90
commit
5d969d59b1
3 changed files with 54 additions and 19 deletions
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
|
|
@ -1,16 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
cmd='/usr/libexec/tests/llvm/run-lit-tests --threads 1'
|
|
||||||
if [ `id -u` -eq 0 ]; then
|
|
||||||
# lit tests can't be run as root, so we need to run as a different user
|
|
||||||
user='llvm-regression-tests'
|
|
||||||
if ! id -u $user; then
|
|
||||||
useradd $user
|
|
||||||
fi
|
|
||||||
su $user -c "$cmd"
|
|
||||||
cmd="su $user -c $cmd"
|
|
||||||
else
|
|
||||||
exec $cmd
|
|
||||||
fi
|
|
|
@ -4,13 +4,25 @@
|
||||||
tags:
|
tags:
|
||||||
- classic
|
- classic
|
||||||
required_packages:
|
required_packages:
|
||||||
- llvm-test
|
|
||||||
- rust
|
- rust
|
||||||
- cargo
|
- cargo
|
||||||
- clang
|
|
||||||
- binutils
|
- binutils
|
||||||
|
# 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
|
||||||
tests:
|
tests:
|
||||||
- regression-tests
|
|
||||||
- rust-sanity:
|
- rust-sanity:
|
||||||
dir: ./
|
dir: ./
|
||||||
run: cargo new hello && cd hello && cargo run
|
run: cargo new hello && cd hello && cargo run
|
||||||
|
@ -33,3 +45,4 @@
|
||||||
- llvm-config:
|
- llvm-config:
|
||||||
dir: ./
|
dir: ./
|
||||||
run: llvm-config --version
|
run: llvm-config --version
|
||||||
|
- integration-test-suite
|
||||||
|
|
Loading…
Reference in a new issue