robustness
authorLaurent MAZET <laurent.mazet@thalesgroup.com>
Wed, 3 Dec 2025 09:51:35 +0000 (10:51 +0100)
committerLaurent MAZET <laurent.mazet@thalesgroup.com>
Wed, 3 Dec 2025 09:51:35 +0000 (10:51 +0100)
test.sh

diff --git a/test.sh b/test.sh
index aa6486990560e7dceefb5eb9ab4e17fa493d2c22..69e980ff1b28f80ed5c633dffe8054e565700630 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -28,6 +28,7 @@ run() {
     echo "CPU load: $load% ($lcpu/$nbcpu)" | tee -a $name.log
     { ./$exe -d 1 -k $dcore -m $mode -n $nbtests -s -o $name.dat | tee -a $name.log; \
       kill -2 $(ps -e | awk '/[l]oad/ || /[s]leep/ { print $1 }') 2>/dev/null; } &
+    which taskset && which chrt && \
     { sleep 2; check $exe | tee -a $name.log; } &
     ./load -r -1 -n $lcpu >/dev/null
     echo "Cleaning..."