]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/filter-time.sh
Add a CC license
[can-benchmark.git] / gw-tests / filter-time.sh
index 082e506a8d882c825fd50d2c0262e89a3d061ff4..ed500ace04105e5d7b6578ac7ded71b77802b02d 100755 (executable)
@@ -5,7 +5,13 @@
 NO_GW_NEEDED=true
 
 main() {
-       ln -s ../filter/*.txt .
+    #Check that the test wasn't skipped.
+    if [ "$(ls -A ../filter)" ]; then
+        #Otherwise this would create *.txt file and plot.sh and break the automation
+        ln -s ../filter/*.txt .
+    else
+        SKIPPED=1; return;
+    fi;
 }
 
 ids="0 $(seq 255 256 2047)"
@@ -23,8 +29,8 @@ plot_cmds() {
     cat <<EOF
 set title "2048 GW rules (one per id, mask 0x7FF), no modifications"
 set grid xtics ytics mytics lw 1, lw 0.5
-set xlabel "Time [s]"
-set ylabel "Latency [ms]"
+set xlabel "Experiment time [s]"
+set ylabel "GW latency [ms]"
 plot [:] [$range] \\
 EOF
     lt=1