From ff18241f6f27136f718e85218a38636b403c9a5f Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 27 Jun 2010 00:59:28 -0400 Subject: [PATCH] Unit Tests - Enhanced 'run_all' so that by default, it does not run the benchmark.t script, but does if the 'slow' argument is specified. --- src/tests/run_all | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/tests/run_all b/src/tests/run_all index 2f30fd1da..270065c00 100755 --- a/src/tests/run_all +++ b/src/tests/run_all @@ -2,6 +2,14 @@ date > all.log +MODE=quick +if [ "x$1" == 'xslow' ]; then + echo 'Including benchmarks' + MODE=slow +else + echo 'Skipping benchmarks' +fi + VRAMSTEG=/usr/local/bin/vramsteg BAR=0 if [ -x $VRAMSTEG ]; then @@ -18,7 +26,9 @@ do COUNT=$[COUNT + 1] fi - ./$i >> all.log 2>&1 + if [[ $MODE == 'slow' || $i != 'benchmark.t' ]]; then + ./$i >> all.log 2>&1 + fi done if [ $BAR == 1 ]; then