mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-25 01:35:17 +00:00
18f0d9a072
ninja-build is distributed from extra repos such as epel. Unfortunately this is not available in all supported archs which makes it impossible to test with ninja-build.
39 lines
916 B
Bash
Executable file
39 lines
916 B
Bash
Executable file
#!/bin/sh -eux
|
|
|
|
usage() {
|
|
echo "usage `basename $0` [OPTIONS]"
|
|
echo " --threads NUM The number of threads to use for running tests."
|
|
}
|
|
|
|
threads=0
|
|
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 [ "$threads" -ge 1 ]; then
|
|
thread_args="-j$threads"
|
|
fi
|
|
|
|
cd $(mktemp -d -p /var/tmp)
|
|
git clone $repo_url
|
|
cd llvm-toolchain-integration-test-suite
|
|
mkdir _build && cd _build
|
|
cmake .. ${CMAKE_CXXLIB:-}
|
|
# Do not run with make as it will return 2 in case of failures, which will be
|
|
# reported by tmt as error instead failure. Run with lit so it returns 1.
|
|
lit --show-unsupported --show-xfail -v tests
|