From 66d216dd52ef77e278d9965f968038777c698690 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Sep 24 2019 23:27:54 +0000 Subject: Enable multiple threads by default --- diff --git a/abi-test-suite/runtest.sh b/abi-test-suite/runtest.sh index fa369b4..1e3dff0 100755 --- a/abi-test-suite/runtest.sh +++ b/abi-test-suite/runtest.sh @@ -7,9 +7,9 @@ usage() { echo " --compiler [gcc|clang] The compiler to test." } -threads="1" testsuite_dir="/usr/share/llvm-test-suite/" compiler="clang" +thread_args="" while [ $# -gt 0 ]; do case $1 in @@ -35,9 +35,13 @@ while [ $# -gt 0 ]; do shift done +if [ -n "$threads" ]; then + thread_args="-j$threads" +fi + set -xe cd $(mktemp -d) cp -r $testsuite_dir/ABI-Testsuite . cd ABI-Testsuite -python3 linux-x86.py $compiler test -v -j $threads +python3 linux-x86.py $compiler test -v $thread_args diff --git a/test-suite/runtest.sh b/test-suite/runtest.sh index a9049ad..76f1c2a 100755 --- a/test-suite/runtest.sh +++ b/test-suite/runtest.sh @@ -7,10 +7,10 @@ usage() { echo " --compiler [gcc|clang] The compiler to test." } -threads="1" cc="clang" cxx="clang++" testsuite_dir="/usr/share/llvm-test-suite/" +thread_args="" while [ $# -gt 0 ]; do case $1 in @@ -50,6 +50,10 @@ while [ $# -gt 0 ]; do shift done +if [ -n "$threads" ]; then + thread_args="-j$threads" +fi + set -xe cd $(mktemp -d) @@ -57,6 +61,6 @@ cd $(mktemp -d) cmake -G Ninja $testsuite_dir \ -DCMAKE_C_COMPILER=$cc \ -DCMAKE_CXX_COMPILER=$cxx \ - -DTEST_SUITE_LIT_FLAGS="-svj$threads" + -DTEST_SUITE_LIT_FLAGS="-sv$thread_args" -ninja -j $threads check +ninja $thread_args check