diff --git a/integration-test-suite/runtest.sh b/integration-test-suite/runtest.sh new file mode 100755 index 0000000..d0f5342 --- /dev/null +++ b/integration-test-suite/runtest.sh @@ -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) +git clone $repo_url +cd llvm-toolchain-integration-test-suite +mkdir _build && cd _build +cmake .. -GNinja "-DLLVM_CMAKE_PREFIX_PATH=`echo /usr/lib*/cmake/llvm`" +ninja $thread_args check diff --git a/tests.yml b/tests.yml index 0ef7978..4cb605f 100644 --- a/tests.yml +++ b/tests.yml @@ -5,8 +5,19 @@ - classic required_packages: - llvm-test-suite + - llvm-devel - clang + - clang-analyzer + - clang-tools-extra + - compiler-rt - ninja-build + - libcxx-devel + - libomp-devel + - lld + - lldb + - git + - make tests: - test-suite - abi-test-suite + - integration-test-suite