mirror of
https://github.com/MariaDB/server.git
synced 2025-11-30 05:23:50 +03:00
move the fractal tree build scripts from tokudb.build to tokudb/scripts so we can branch properly
git-svn-id: file:///svn/toku/tokudb@20822 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
committed by
Yoni Fogel
parent
01755d03e1
commit
f5ead6763b
42
scripts/coverage.bash
Normal file
42
scripts/coverage.bash
Normal file
@@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
# measure code coverage of the tokudb tests
|
||||
|
||||
tokudb_version=tokudb
|
||||
tokudb=$tokudb_version
|
||||
tokudb_checkout_dir=$tokudb
|
||||
|
||||
while [ $# -gt 0 ] ; do
|
||||
arg=$1; shift
|
||||
if [[ $arg =~ "--tokudb=(.*)" ]] ; then
|
||||
tokudb_version=${BASH_REMATCH[1]}
|
||||
tokudb="tokudb-$tokudb_version"
|
||||
tokudb_checkout_dir="tokudb.branches/$tokudb_version"
|
||||
fi
|
||||
done
|
||||
|
||||
echo $tokudb
|
||||
echo $tokudb_checkout_dir
|
||||
|
||||
coveragedir=~/svn.coverage.$tokudb.`date +%Y%m%d`
|
||||
mkdir $coveragedir
|
||||
cd $coveragedir
|
||||
svn co -q https://svn.tokutek.com/tokudb/$tokudb_checkout_dir
|
||||
if [ $tokudb != "tokudb" ] ; then
|
||||
mv $tokudb_version $tokudb
|
||||
fi
|
||||
cd $tokudb
|
||||
|
||||
# build tokudb with coverage enable
|
||||
make -k build-coverage
|
||||
|
||||
# run the tests
|
||||
make -k check-coverage
|
||||
(cd src/tests;make -k all.recover VGRIND="")
|
||||
|
||||
# make -k measure-coverage
|
||||
rm $coveragedir/raw.test.coverage
|
||||
for d in newbrt src utils cxx src/range_tree src/lock_tree; do
|
||||
(cd $d; python ~/bin/gcovsumdir.py -b *.c *.cpp >>$coveragedir/raw.test.coverage)
|
||||
done
|
||||
python ~/bin/gcovsumsum.py $coveragedir/raw.test.coverage >$coveragedir/test.coverage
|
||||
|
||||
Reference in New Issue
Block a user