]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/user-time.sh
Gzip ramdisk - booting is faster
[can-benchmark.git] / gw-tests / user-time.sh
index a6221ec0ad10b0f1741ec712c84f5a067e18de6b..c68408bf4b627cea7793e97098c459b74c61c580 100755 (executable)
@@ -5,7 +5,13 @@
 NO_GW_NEEDED=true
 
 main() {
-       ln -s ../user/*.txt .
+    #Check that the test wasn't skipped.
+    if [ "$(ls -A ../user)" ]; then
+        #Otherwise this would create *.txt file and plot.sh and break the automation
+        ln -s ../user/*.txt .
+    else
+        SKIPPED=1; return;
+    fi;
 }
 
 #ADDITIONAL_PLOTS=detail
@@ -26,11 +32,11 @@ plot_cmds() {
 set title "Single GW rule for all messages, no modifications"
 set grid xtics ytics mytics lw 1, lw 0.5
 set xlabel "Experiment time [s]"
-set ylabel "Latency [ms]"
-plot [:] [$range] \
-          "user2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Userspace GW, 2 byte messages", \
-          "user8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Userspace GW, 8 byte messages", \
-          "kern2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Kernel GW, 2 byte messages", \
+set ylabel "GW latency [ms]"
+plot [:] [$range] \\
+          "user2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Userspace GW, 2 byte messages", \\
+          "user8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Userspace GW, 8 byte messages", \\
+          "kern2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Kernel GW, 2 byte messages", \\
           "kern8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Kernel GW, 8 byte messages"
 EOF
 }