-
Notifications
You must be signed in to change notification settings - Fork 122
Fractal tree unit tests
Rik Prohaska edited this page May 1, 2015
·
6 revisions
The fractal tree unit tests verify the fractal tree code.
Get the data files
svn checkout --depth immediates https://svn.tokutek.com/tokudb
cd svn.tokutek.com/tokudb/tokudb.data
svn up --depth infinity
Some of the tests will be skipped if the data files are not available.
Get the fractal tree source. Use the commit ID or tag for the version under test.
git clone -b ID https://github.com/Tokutek/ft-index ft-index
Get the jemalloc source from either Tokutek's repository or from jemalloc's repository
git clone -b ID https://github.com/Tokutek/jemalloc ft-index/third_party/jemalloc
OR
git clone -b 3.6.0 https://github.com/jemalloc/jemalloc ft-index/third_party/jemalloc
Jemalloc is NOT necessary to run the tests.
Build the code
mkdir ft-index-build && cd ft-index-build
cmake -DCMAKE_BUILD_TYPE=Release ../ft-index
make -j8
Could also use Debug build.
Run tests
ctest -j8 >ctest.out
Expected results: all test should pass except
Run tests with valgrind
ctest -j8 -D ExperimentalMemCheck >ctest.valgrind.out
Expected results: all tests pass except