xapian-core
1.4.27
|
Long-running "soak" tests for Xapian. More...
#include <config.h>
#include "soaktest/soaktest.h"
#include "soaktest/soaktest_all.h"
#include "testrunner.h"
#include "testsuite.h"
#include <random>
#include "soaktest/soaktest_collated.h"
Go to the source code of this file.
Classes | |
class | SoakTestRunner |
Functions | |
unsigned int | initrand () |
Initialise the random number generator with the seed. More... | |
unsigned int | randint (unsigned int s) |
Return a random integer in the range 0 to s-1. More... | |
int | main (int argc, char **argv) |
Variables | |
static unsigned int | g_random_seed |
static mt19937 | gen |
Long-running "soak" tests for Xapian.
Definition in file soaktest.cc.
unsigned int initrand | ( | ) |
Initialise the random number generator with the seed.
Definition at line 39 of file soaktest.cc.
References g_random_seed, gen, and tout.
Referenced by DEFINE_TESTCASE().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 68 of file soaktest.cc.
References TestRunner::run_tests().
unsigned int randint | ( | unsigned int | s | ) |
Return a random integer in the range 0 to s-1.
Definition at line 46 of file soaktest.cc.
References gen.
Referenced by builddb_queries1(), combine_AND(), combine_OR(), combine_XOR(), QueryBuilder::make_query(), and push_leaf_N().
|
static |
Definition at line 35 of file soaktest.cc.
Referenced by initrand(), and SoakTestRunner::run().
|
static |
Definition at line 37 of file soaktest.cc.
Referenced by get_database(), BackendManager::get_database(), get_database_path(), BackendManager::get_database_path(), BackendManager::get_datadir(), initrand(), and randint().