#!/bin/bash
-TESTS="step-22 tablehandler"
+source testlist.sh
PREVREVISION="`svn info deal.II | grep Revision | sed s/Revision://`"
-HEADREVISION="`svn info http://www.dealii.org/svn/dealii | grep Revision | sed s/Revision://`"
-MAKECMD="make -j2"
+HEADREVISION="`svn info https://svn.dealii.org/trunk/deal.II | grep Revision | sed s/Revision://`"
+MAKECMD="nice make -j20"
export MAKECMD
echo "previous $PREVREVISION"
while [ $PREVREVISION -lt $HEADREVISION ] ; do
- NEXTREVISION=`expr $PREVREVISION "+" 100`
+ NEXTREVISION=`expr $PREVREVISION "+" 10`
echo "Updating from $PREVREVISION to $NEXTREVISION"
cd deal.II
- svn up -r$NEXTREVISION >/dev/null
+ svn up -r$NEXTREVISION || exit 1
if test -z "`svn diff -r$PREVREVISION:$NEXTREVISION .`" ; then
echo "Skipping revision $NEXTREVISION" ;
+ PREVREVISION=$NEXTREVISION
+ cd ..
continue ;
fi
PREVREVISION=$NEXTREVISION
echo "configure"
- ./configure --disable-threads --with-petsc=no >/dev/null
+ ./configure --disable-threads --with-petsc=no || exit 2
echo "compiling"
- $MAKECMD optimized>/dev/null
+ $MAKECMD optimized || exit 3
cd ..
echo "** working on $test"
make clean >/dev/null
echo -n "" > temp.txt
- for a in {1..3}; do
+ for a in {1..5}; do
echo "*" >> temp.txt
make run | grep "|" >> temp.txt
done
./../gettimes/gettimes > names.test
if [[ -s names.test ]] ; then
- cp names.test ../names.$test
+ words=`wc -w names.test | cut -f1 -d' '`
+ if [ "$words" -gt "0" ] ; then
+ cp names.test ../names.$test
+ fi ;
fi ;
./../gettimes/gettimes $NEXTREVISION >>../datatable.$test
cd ..
+#!/bin/bash
+#launch with the name of test to generate the .eps for
+cat <<EOF
+set terminal postscript eps color enh
+set key left bottom
+set output "$1.eps"
+set log y
+set xlabel 'revision'
+set title 'benchmark $1 - rev $2'
+EOF
+#echo "set terminal x11 persist"
-echo "set terminal x11 persist"
-echo "set log y"
echo "plot \\"
n=1
for i in `cat names.$1`
do
n=`expr $n "+" 1`
- echo "'datatable.$1' using 1:$n title '$i' w lp,\\";
+ echo "'datatable.$1' using 1:(int(\$$n*10.0+0.5)/10.0) title '$i' w lp,\\";
+# echo "'datatable.$1' using 1:$n title '$i' w lp,\\";
done
-echo "0"
+# this forces 0.01 to be in the yrange and ends the plot list (trailing comma above)
+echo "0.01 title ''"
-echo "pause -1"
+#echo "pause -1"
+++ /dev/null
-set terminal x11 persist
-set log y
-plot \
-'datatable.step-22' using 1:2 title 'assembly' w lp,\
-'datatable.step-22' using 1:3 title 'refine' w lp,\
-'datatable.step-22' using 1:4 title 'results' w lp,\
-'datatable.step-22' using 1:5 title 'setup' w lp,\
-'datatable.step-22' using 1:6 title 'solver' w lp,\
-0
-pause -1