llvm/tests/integration-test-suite/test.sh
Nikita Popov 4ef9824648 Fix integration test suite for f36
Suppress libunwind tests (which don't have clang integration on
f36) and libcxx static tests (which is broken on f36 due to non-pic
libc++abi.a).
2023-01-18 17:41:42 +01:00

37 lines
821 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 .. -GNinja -DENABLE_LIBUNWIND=OFF -DENABLE_STATIC_LIBCXX=OFF ${CMAKE_CXXLIB:-}
cmake --build . $thread_args --target check