8 #Check that the test wasn't skipped.
9 if [ "$(ls -A ../user)" ]; then
10 #Otherwise this would create *.txt file and plot.sh and break the automation
17 #ADDITIONAL_PLOTS=detail
20 if [[ "$1" = detail ]]; then
26 if [ -s user2-msgs.txt ]; then
27 min=$(head -n 1 user2-msgs.txt | awk '{ print $2 }')
29 min=$(head -n 1 user8-msgs.txt | awk '{ print $2 }')
32 set title "Single GW rule for all messages, no modifications"
33 set grid xtics ytics mytics lw 1, lw 0.5
34 set xlabel "Experiment time [s]"
35 set ylabel "GW latency [ms]"
37 "user2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Userspace GW, 2 byte messages", \\
38 "user8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Userspace GW, 8 byte messages", \\
39 "kern2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Kernel GW, 2 byte messages", \\
40 "kern8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Kernel GW, 8 byte messages"