]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
extract script to benchmark the current revision
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 8 Feb 2013 16:59:01 +0000 (16:59 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 8 Feb 2013 16:59:01 +0000 (16:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@28280 0785d39b-7218-0410-832d-ea1e28bc413d

tests/benchmarks/bench.sh
tests/benchmarks/benchrev.sh [new file with mode: 0644]

index 950ca4cbf385e76db84be4a368f1f47a78dd8cb2..d6c465a5a6ace9d668452a4264e8b68516d29e7e 100644 (file)
@@ -1,11 +1,7 @@
 #!/bin/bash
 
-source testlist.sh
-
 PREVREVISION="`svn info deal.II | grep Revision | sed s/Revision://`"
 HEADREVISION="`svn info https://svn.dealii.org/trunk/deal.II | grep Revision | sed s/Revision://`"
-MAKECMD="nice make -j10"
-export MAKECMD
 
 echo "previous $PREVREVISION"
 echo "HEAD: $HEADREVISION"
@@ -23,36 +19,9 @@ while [ $PREVREVISION -lt $HEADREVISION ] ; do
       continue ;
   fi
 
+  cd ..      
   PREVREVISION=$NEXTREVISION
-
-  echo "configure"
-  ./configure --disable-threads --with-petsc=no || exit 2
-  echo "compiling" 
-  $MAKECMD optimized || exit 3
-  
-  cd ..
-
-  for test in $TESTS ; do
-      cd $test
-      echo "** working on $test"
-      make clean >/dev/null
-      echo -n "" > temp.txt
-      for a in {1..5}; do
-         echo "*" >> temp.txt
-          make run | grep "|" >> temp.txt
-      done
-      ./../gettimes/gettimes > names.test
-      if [[ -s names.test ]] ; then
-      words=`wc -w names.test | cut -f1 -d' '`
-      if [ "$words" -gt "0" ] ; then
-         cp names.test ../names.$test
-      fi ;
-      rm -rf names.test
-      fi ;
-      ./../gettimes/gettimes $NEXTREVISION >>../datatable.$test
-      cd ..      
-  
-  done  
+  . benchrev.sh 
 
 done
 
diff --git a/tests/benchmarks/benchrev.sh b/tests/benchmarks/benchrev.sh
new file mode 100644 (file)
index 0000000..2e18255
--- /dev/null
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+source testlist.sh
+
+PREVREVISION="`svn info deal.II | grep Revision | sed s/Revision://`"
+MAKECMD="nice make -j10"
+export MAKECMD
+
+echo "testing $PREVREVISION"
+
+cd deal.II
+  echo "configure"
+  ./configure --disable-threads --with-petsc=no || exit 2
+  echo "compiling" 
+  $MAKECMD optimized || exit 3
+  
+  cd ..
+
+  for test in $TESTS ; do
+      cd $test
+      echo "** working on $test"
+      make clean >/dev/null
+      echo -n "" > temp.txt
+      for a in {1..5}; do
+         echo "*" >> temp.txt
+          make run | grep "|" >> temp.txt
+      done
+      ./../gettimes/gettimes > names.test
+      if [[ -s names.test ]] ; then
+      words=`wc -w names.test | cut -f1 -d' '`
+      if [ "$words" -gt "0" ] ; then
+         cp names.test ../names.$test
+      fi ;
+      rm -rf names.test
+      fi ;
+      ./../gettimes/gettimes $NEXTREVISION >>../datatable.$test
+      cd ..      
+  
+  done  

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.