diff options
author | Daniel Wagner <wagi@monom.org> | 2024-03-21 16:34:54 +0100 |
---|---|---|
committer | Anders Roxell <anders.roxell@gmail.com> | 2024-03-25 08:53:01 +0100 |
commit | eb22b4c670c7ae4e7ebb5fb5fd4a7b96e31e3d01 (patch) | |
tree | 53fd951d67ade2a9c4f8d2c40752106fd11349f3 /automated/linux/signaltest/signaltest.sh | |
parent | 69eabfb366da41c7f4f5c1f617be7e08c6b1a241 (diff) |
signaltest: add support to run a thread per cpu
Add the feature to run a thread per CPU automatically.
This simplifies setups with many different boards where the test should
run a thread per available CPU.
Signed-off-by: Daniel Wagner <wagi@monom.org>
Diffstat (limited to 'automated/linux/signaltest/signaltest.sh')
-rwxr-xr-x | automated/linux/signaltest/signaltest.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/automated/linux/signaltest/signaltest.sh b/automated/linux/signaltest/signaltest.sh index cb5478cb..e7db4f3a 100755 --- a/automated/linux/signaltest/signaltest.sh +++ b/automated/linux/signaltest/signaltest.sh @@ -31,6 +31,10 @@ done ! check_root && error_msg "Please run this script as root." create_out_dir "${OUTPUT}" +if [ "${THREADS}" -eq "0" ]; then + THREADS=$(nproc) +fi + # Run signaltest. if ! binary=$(command -v signaltest); then detect_abi |