Test Metall for Development
There are two types of tests programs in Metall.
Google Test
Build
To run tests using Google Test, please see this page about building the test programs.
Run
make test
The test programs make data stores into /tmp
by default.
To change the location, use an environmental value 'METALL_TEST_DIR'.
env METALL_TEST_DIR="/mnt/ssd/" make test
Manual Test
There is another test program in Metall's repository.
The test program uses Adjacency List Benchmark.
One program creates a graph data and another program opens it.
This test is useful to make sure that Metall can store data persistently.
Here is how to run the test with small data.
cd metall/build/bench/adjacency_list/
sh ../../../bench/adjacency_list/test/test.sh -d/path/to/store/data/store
Here is how to run the test with large data.
cd metall/build/bench/adjacency_list/
sh ../../../bench/adjacency_list/test/test_large.sh -d/path/to/store/data/store -v17
In test_large.sh, the input data is generated on the fly using an R-MAT graph generator.
-vN
option controls the size of the graph to generate, where N is a int number called SCALE.
The number of vertices in a generated R-MAT graph is 2^N
and that of edges (undirected) is 16 x 2^N
.