Skip to content

Fractal tree unit tests

Rik Prohaska edited this page Apr 12, 2015 · 6 revisions

Fractal tree unit tests

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 avilable.

Get the code. Use the commit ID for the version under test.

git clone -b ID https://github.com/Tokutek/ft-index ft-index

Get jemalloc from either Tokutek's repository or from jemalloc's repository

git clone -b ID https://github.com/Tokutek/jemalloc jemalloc
OR
git clone -b 3.6.0 https://github.com/jemalloc/jemalloc 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

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

Clone this wiki locally