X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/25a87df81e3eb9b6e0bff19a2197165b3c3ceb2a..151cc32b933d28ddbd15d5ce264d12805a169f01:/gw-tests/lib.sh?ds=sidebyside diff --git a/gw-tests/lib.sh b/gw-tests/lib.sh index 5108f8d..05b28d1 100644 --- a/gw-tests/lib.sh +++ b/gw-tests/lib.sh @@ -43,7 +43,7 @@ cleanupgw() { _plot() { local testname=`basename $0 .sh` - plot_cmds | sed -e "/set title/ s/[\"']\(.*\)[\"']/\"\1\\\\n($kvers)\"/" > plot.gp + plot_cmds | sed -e "/set title/ s/[\"']\(.*\)[\"']/\"\1\\\\n(GW kernel $kvers, traffic $traffic)\"/" > plot.gp if [[ ! -s plot.gp ]]; then return; fi if [ -z "$OPT_NO_X11" ]; then echo "set terminal x11 enhanced; $(< plot.gp)" | gnuplot -persist @@ -78,6 +78,12 @@ traffic_and_length() { echo $opts -l $1 } +start_load() { +} + +kill_load() { +} + _measure() { # Remove data from the last measurement rm -rf * @@ -103,8 +109,11 @@ _measure() { # Set the length of qdisc queue to avoid ENOBUFS errors ifconfig can0 txqueuelen 200 cleanupgw - + + prepare + start_load main + kill_load }