From a84cc4e933948ea053daeb349f2359cf32870509 Mon Sep 17 00:00:00 2001 From: Tulio Magno Quites Machado Filho Date: Thu, 7 Aug 2025 09:55:14 -0300 Subject: [PATCH] llvm-test-suite: Remove argument handling This script is called from tmt, which does not pass any arguments. --- tests/llvm-test-suite/test.sh | 55 ++--------------------------------- 1 file changed, 2 insertions(+), 53 deletions(-) diff --git a/tests/llvm-test-suite/test.sh b/tests/llvm-test-suite/test.sh index 0dbb599..1f7b9b7 100755 --- a/tests/llvm-test-suite/test.sh +++ b/tests/llvm-test-suite/test.sh @@ -1,59 +1,8 @@ #!/bin/bash -usage() { - echo "usage `basename $0` [OPTIONS]" - echo " --threads NUM The number of threads to use for running tests." - echo " --testsuite-dir DIR Directory containing the test-suite source." - echo " --compiler [gcc|clang] The compiler to test." -} - cc="clang" cxx="clang++" testsuite_dir="/usr/share/llvm-test-suite/" -thread_args="" - -while [ $# -gt 0 ]; do - case $1 in - --threads) - shift - threads="$1" - ;; - --testsuite-dir) - shift - testsuire_dir="$1" - ;; - --compiler) - shift - compiler="$1" - case $compiler in - clang) - cc="clang" - cxx="clang++" - ;; - gcc) - cc="gcc" - cxx="g++" - ;; - *) - echo "unknown compiler: $1" - exit 1 - ;; - esac - ;; - * ) - echo "unknown option: $1" - echo "" - usage - exit 1 - ;; - esac - shift -done - -if [ -n "$threads" ]; then - thread_args_ninja="-j$threads" - thread_args_lit="j$threads" -fi set -xe @@ -66,9 +15,9 @@ pushd $tmpdir cmake -G Ninja $testsuite_dir \ -DCMAKE_C_COMPILER=$cc \ -DCMAKE_CXX_COMPILER=$cxx \ - -DTEST_SUITE_LIT_FLAGS="-sv$thread_args_lit" + -DTEST_SUITE_LIT_FLAGS="-sv" -if ! ninja $thread_args_ninja check ; then +if ! ninja check ; then # The following code helps with troubleshooting an issue with miniFE. # Collect more information about the OS and server that reproduced the # issue.