update scripts
authorLaurent MAZET <laurent.mazet@thalesgroup.com>
Mon, 6 Oct 2025 17:37:22 +0000 (19:37 +0200)
committerLaurent MAZET <laurent.mazet@thalesgroup.com>
Mon, 6 Oct 2025 17:37:22 +0000 (19:37 +0200)
sync.sh
test.sh

diff --git a/sync.sh b/sync.sh
index 7c0e17a37f11cfdb71afdc7c19de2dee83df772a..75300a012503a2d04e865cd0445eca720f0b1ada 100755 (executable)
--- a/sync.sh
+++ b/sync.sh
@@ -1,8 +1,13 @@
 #!/bin/sh
 
+HOST=mazet@192.168.1.1
+
 # ssh-keygen
-# cat ~/.ssh/id_rsa.pub | ssh mazet@192.168.1.1 "cat >> ~/.ssh/authorized_keys"
+# cat ~/.ssh/id_rsa.pub | ssh $HOST "cat >> ~/.ssh/authorized_keys"
+
+date $(ssh $HOST date +%m%d%H%M%Y)
+
 for f in cyclictest hackbench '*.exe' '*.sh'; do
-scp mazet@192.168.1.1:benchmarks/$f .
+    scp $HOST:benchmarks/$f .
 done
 rm load.exe
diff --git a/test.sh b/test.sh
index e4bd24ebdaf4e7c300fb102455f21759b8f56cc4..eca0eb2f376edb09aa9882cd33880f54ba880647 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -6,6 +6,7 @@ function run() {
   load=$1
   for exe in *.exe; do
     test=${exe/.exe/}
+    echo -e "\033[0;1mTest $test\033[0;0m"
     ./getinfo.sh | tee $test-$load.log
     pid=-1
     { ./$exe -d 1 -n 10000 -s -o $test-$load.dat | tee -a $test-$load.log; \