update scripts
authorLaurent MAZET <laurent.mazet@thalesgroup.com>
Thu, 2 Oct 2025 17:27:42 +0000 (19:27 +0200)
committerLaurent MAZET <laurent.mazet@thalesgroup.com>
Thu, 2 Oct 2025 17:27:42 +0000 (19:27 +0200)
sync.sh
test.sh

diff --git a/sync.sh b/sync.sh
index ad85a0280d1f1f778ec26dd59ba6f9e10a5370fd..41b739f066a2349d7cf4860512030e017cb88551 100755 (executable)
--- a/sync.sh
+++ b/sync.sh
@@ -2,6 +2,6 @@
 
 # ssh-keygen
 # cat ~/.ssh/id_rsa.pub | ssh mazet@192.168.1.1 "cat >> ~/.ssh/authorized_keys"
-for f in  cyclictest getinfo.sh gettable.awk hackbench load.exe mq.exe mutex.exe pipe.exe semaphore.exe test.sh thread.exe udp.exe; do
+for f in cyclictest hackbench '*.exe' '*.sh'; do
 scp mazet@192.168.1.1:benchmarks/$f .
 done
diff --git a/test.sh b/test.sh
index ee986e646c0ed7fd5987ef9afb2efc67ee8f1c63..e4bd24ebdaf4e7c300fb102455f21759b8f56cc4 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -4,10 +4,11 @@ export pid
 
 function run() {
   load=$1
-  for test in mutex semaphore thread mq pipe udp; do
+  for exe in *.exe; do
+    test=${exe/.exe/}
     ./getinfo.sh | tee $test-$load.log
     pid=-1
-    { ./$test.exe -d 1 -n 10000 -s -o $test-$load.dat | tee -a $test-$load.log; \
+    { ./$exe -d 1 -n 10000 -s -o $test-$load.dat | tee -a $test-$load.log; \
       kill -2 $(ps -e | awk '/[h]ackbench/ || /[s]leep/ { print $1 }') 2>/dev/null; } &
     case "$load" in
     0%) sleep 60;;