]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
Finish ploting
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 7 Dec 2010 22:39:53 +0000 (23:39 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 7 Dec 2010 22:39:53 +0000 (23:39 +0100)
gw-tests/Makefile
gw-tests/lib.sh

index 2f1cf862cb9e92d54275999a92ed037eca2927b2..ac9760f2c2ff244c3c789c0375bfc5777dfa7ae2 100644 (file)
@@ -12,7 +12,7 @@ $(T):%:
 
 .PHONY: plot
 plot:
 
 .PHONY: plot
 plot:
-       $(MAKE) TEST_FLAGS="-p -X"
+       find results -name plot.sh -exec '{}' -X ';'
 
 .PHONY: html
 html:
 
 .PHONY: html
 html:
index f4e74aca3eff66e1e802457fa9114d736577d66f..b5719967dead0817b43ef598306a98240aab1cde 100644 (file)
@@ -88,7 +88,7 @@ _measure() {
        export hostkvers=$hostkvers
        export traffic=$traffic
        cd \$(dirname \$0)/$(dirname $script)
        export hostkvers=$hostkvers
        export traffic=$traffic
        cd \$(dirname \$0)/$(dirname $script)
-       exec ./$(basename $script) --plot
+       exec ./$(basename $script) --plot "\$@"
        EOF
     chmod +x plot.sh
     # Set can interfaces up
        EOF
     chmod +x plot.sh
     # Set can interfaces up
@@ -126,12 +126,7 @@ _run() {
            _measure
        fi
        if [[ ! "$OPT_PLOT_DISABLE" ]]; then
            _measure
        fi
        if [[ ! "$OPT_PLOT_DISABLE" ]]; then
-           if [[ "$OPT_PLOT_ONLY" ]]; then
-               _plot
-           else
-               # Call ourselves once again
-               ./plot.sh
-           fi
+           _plot
        fi
        cd -
     done
        fi
        cd -
     done