]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - tests/01-rtt-history.sh
rtt-history is a separate test (with plot cmd only)
[can-benchmark.git] / tests / 01-rtt-history.sh
diff --git a/tests/01-rtt-history.sh b/tests/01-rtt-history.sh
new file mode 100755 (executable)
index 0000000..23d0a4a
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+. _lib.sh
+
+t() {
+    # Data are reused from 'rtt' test
+    true
+}
+
+p() { cat <<EOF
+set title "Round-trip time history"
+set logscale y
+set grid
+set xlabel "Ping number"
+set ylabel "Round-trip time [{/Symbol m}s]"
+plot "../00-rtt/socketcan-times-1000.dat" with lines, "../00-rtt/lincan-times-1000.dat" with lines
+EOF
+}