Commit 5ca88614 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#4084 speed up build.check.icc.bash refs[t:4084]

git-svn-id: file:///svn/toku/tokudb@38652 c7de825b-a66e-492c-adef-691d508d4ae1
parent df7e42c6
...@@ -8,16 +8,15 @@ ...@@ -8,16 +8,15 @@
function usage() { function usage() {
echo "build tokudb and run regressions" echo "build tokudb and run regressions"
echo "--windows=$dowindows (if yes/1 must be first option)" echo "--windows=$dowindows (if yes/1 must be first option)"
echo "--branch=$branch" echo "--branch=$branch --tokudb=$tokudb --revision=$revision"
echo "--tokudb=$tokudb" echo "--debugtests=$debugtest --releasetests=$releasetests"
echo "--revision=$revision"
echo "--bdb=$bdb"
echo "--valgrind=$dovalgrind --VALGRIND=$VALGRIND" echo "--valgrind=$dovalgrind --VALGRIND=$VALGRIND"
echo "--commit=$docommit"
echo "--j=$makejobs" echo "--j=$makejobs"
echo "--deleteafter=$deleteafter" echo "--deleteafter=$deleteafter"
echo "--doclean=$doclean" echo "--doclean=$doclean"
echo "--cc=$cc --cxx=$cxx" echo "--cc=$cc --cxx=$cxx"
echo "--commit=$docommit"
echo "--bdb=$bdb"
} }
function retry() { function retry() {
...@@ -178,6 +177,8 @@ function build() { ...@@ -178,6 +177,8 @@ function build() {
# checkout into $productbuilddir # checkout into $productbuilddir
runcmd 0 $productbuilddir retry svn checkout -q -r $revision $svnserver/$checkout . >>$tracefile 2>&1 runcmd 0 $productbuilddir retry svn checkout -q -r $revision $svnserver/$checkout . >>$tracefile 2>&1
if [ $debugtests != 0 ] ; then
# portability # portability
runcmd 0 $productbuilddir/$oschoice make local DEBUG=1 CC=icc HAVE_CILK=0 >>$tracefile 2>&1 runcmd 0 $productbuilddir/$oschoice make local DEBUG=1 CC=icc HAVE_CILK=0 >>$tracefile 2>&1
runcmd 0 $productbuilddir/$oschoice/tests make check -k -s SUMMARIZE=1 DEBUG=1 CC=icc HAVE_CILK=0 >>$tracefile 2>&1 runcmd 0 $productbuilddir/$oschoice/tests make check -k -s SUMMARIZE=1 DEBUG=1 CC=icc HAVE_CILK=0 >>$tracefile 2>&1
...@@ -202,9 +203,12 @@ function build() { ...@@ -202,9 +203,12 @@ function build() {
runcmd 0 $productbuilddir/src/tests make tests.tdb -j$makejobs -k -s SUMMARIZE=1 DEBUG=1 CC=icc HAVE_CILK=0 >>$tracefile 2>&1 runcmd 0 $productbuilddir/src/tests make tests.tdb -j$makejobs -k -s SUMMARIZE=1 DEBUG=1 CC=icc HAVE_CILK=0 >>$tracefile 2>&1
runcmd 0 $productbuilddir/src/tests make check.tdb -j$makejobs -k -s SUMMARIZE=1 DEBUG=1 CC=icc HAVE_CILK=0 >>$tracefile 2>&1 runcmd 0 $productbuilddir/src/tests make check.tdb -j$makejobs -k -s SUMMARIZE=1 DEBUG=1 CC=icc HAVE_CILK=0 >>$tracefile 2>&1
runcmd 0 $productbuilddir/src/tests make stress_tests.drdrun -j$makejobs -k -s SUMMARIZE=1 DEBUG=1 CC=icc HAVE_CILK=0 >>$tracefile 2>&1 runcmd 0 $productbuilddir/src/tests make stress_tests.drdrun -j$makejobs -k -s SUMMARIZE=1 DEBUG=1 CC=icc HAVE_CILK=0 >>$tracefile 2>&1
runcmd 0 $productbuilddir/src/tests make stress_tests.tdbrun -j$makejobs -k -s SUMMARIZE=1 DEBUG=1 CC=icc HAVE_CILK=0 VGRIND= >>$tracefile 2>&1
# upgrade tests # upgrade tests
if [ $upgradetests != 0 ] ; then
runcmd 0 $productbuilddir/src/tests make upgrade-tests.tdbrun -k -s SUMMARIZE=1 DEBUG=1 CC=icc HAVE_CILK=0 >>$tracefile 2>&1 runcmd 0 $productbuilddir/src/tests make upgrade-tests.tdbrun -k -s SUMMARIZE=1 DEBUG=1 CC=icc HAVE_CILK=0 >>$tracefile 2>&1
fi
# benchmark tests # benchmark tests
runcmd 0 $productbuilddir/db-benchmark-test make -k -j$makejobs DEBUG=1 CC=icc HAVE_CILK=0 >>$tracefile 2>&1 runcmd 0 $productbuilddir/db-benchmark-test make -k -j$makejobs DEBUG=1 CC=icc HAVE_CILK=0 >>$tracefile 2>&1
...@@ -213,22 +217,30 @@ function build() { ...@@ -213,22 +217,30 @@ function build() {
# run the brtloader tests with a debug build # run the brtloader tests with a debug build
runcmd 0 $productbuilddir/newbrt/tests make check_brtloader -k -j$makejobs -s SUMMARIZE=1 DEBUG=1 CC=icc HAVE_CILK=0 >>$tracefile 2>&1 runcmd 0 $productbuilddir/newbrt/tests make check_brtloader -k -j$makejobs -s SUMMARIZE=1 DEBUG=1 CC=icc HAVE_CILK=0 >>$tracefile 2>&1
runcmd 0 $productbuilddir/src/tests make loader-tests -k -j$makejobs -s SUMMARIZE=1 DEBUG=1 CC=icc HAVE_CILK=0 >>$tracefile 2>&1 runcmd 0 $productbuilddir/src/tests make loader-tests -k -j$makejobs -s SUMMARIZE=1 DEBUG=1 CC=icc HAVE_CILK=0 >>$tracefile 2>&1
fi
if [ $releasetests != 0 ] ; then
# release build # release build
runcmd 0 $productbuilddir make clean >>$tracefile 2>&1 runcmd 0 $productbuilddir make clean >>$tracefile 2>&1
runcmd 0 $productbuilddir make release CC=icc >>$tracefile 2>&1 runcmd 0 $productbuilddir make release CC=icc HAVE_CILK=0 >>$tracefile 2>&1
runcmd 0 $productbuilddir/utils make CC=icc >>$tracefile 2>&1 runcmd 0 $productbuilddir/utils make CC=icc HAVE_CILK=0 >>$tracefile 2>&1
# release tests # release tests
runcmd 0 $productbuilddir/newbrt/tests make check -j$makejobs -k -s SUMMARIZE=1 CC=icc VGRIND= >>$tracefile 2>&1 runcmd 0 $productbuilddir/newbrt/tests make check -j$makejobs -k -s SUMMARIZE=1 CC=icc HAVE_CILK=0 VGRIND= >>$tracefile 2>&1
runcmd 0 $productbuilddir/newbrt/tests make check_brtloader -k -j$makejobs -s SUMMARIZE=1 CC=icc VGRIND= >>$tracefile 2>&1 runcmd 0 $productbuilddir/newbrt/tests make check_brtloader -k -j$makejobs -s SUMMARIZE=1 CC=icc HAVE_CILK=0 VGRIND= >>$tracefile 2>&1
runcmd 0 $productbuilddir/src/tests make tests.tdb -j$makejobs -k -s SUMMARIZE=1 CC=icc >>$tracefile 2>&1 runcmd 0 $productbuilddir/src/tests make tests.tdb -j$makejobs -k -s SUMMARIZE=1 CC=icc HAVE_CILK=0 >>$tracefile 2>&1
runcmd 0 $productbuilddir/src/tests make check.tdb -j$makejobs -k -s SUMMARIZE=1 CC=icc VGRIND= >>$tracefile 2>&1 runcmd 0 $productbuilddir/src/tests make check.tdb -j$makejobs -k -s SUMMARIZE=1 CC=icc HAVE_CILK=0 VGRIND= >>$tracefile 2>&1
runcmd 0 $productbuilddir/src/tests make stress_tests.drdrun -j$makejobs -k -s SUMMARIZE=1 CC=icc HAVE_CILK=0 >>$tracefile 2>&1
runcmd 0 $productbuilddir/src/tests make stress_tests.tdbrun -j$makejobs -k -s SUMMARIZE=1 CC=icc HAVE_CILK=0 VGRIND= >>$tracefile 2>&1
fi
# cilk tests # cilk tests
if [ 0 = 1 ] ; then
runcmd 0 $productbuilddir make clean >>$tracefile 2>&1 runcmd 0 $productbuilddir make clean >>$tracefile 2>&1
runcmd 0 $productbuilddir make release CC=icc DEBUG=1 >>$tracefile 2>&1 runcmd 0 $productbuilddir make release CC=icc DEBUG=1 >>$tracefile 2>&1
runcmd 0 $productbuilddir/newbrt/tests make cilkscreen_brtloader -k -s SUMMARIZE=1 CC=icc DEBUG=1 >>$tracefile 2>&1 runcmd 0 $productbuilddir/newbrt/tests make cilkscreen_brtloader -k -s SUMMARIZE=1 CC=icc DEBUG=1 >>$tracefile 2>&1
fi
# cxx # cxx
if [ 0 = 1 ] ; then if [ 0 = 1 ] ; then
...@@ -320,6 +332,9 @@ deleteafter=0 ...@@ -320,6 +332,9 @@ deleteafter=0
j=-1 j=-1
cc=icc cc=icc
cxx=icpc cxx=icpc
debugtests=1
releasetests=1
upgradetests=0
arg=$1; arg=$1;
shopt -s compat31 #Necessary in some flavors of linux and windows shopt -s compat31 #Necessary in some flavors of linux and windows
...@@ -381,5 +396,6 @@ if [ $dovalgrind = 0 ] ; then export VGRIND=""; fi ...@@ -381,5 +396,6 @@ if [ $dovalgrind = 0 ] ; then export VGRIND=""; fi
# limit execution time to 2 hours # limit execution time to 2 hours
ulimit -t 7200 ulimit -t 7200
ulimit -c unlimited
build $bdb build $bdb
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment