42 gen.seed(g_random_seed);
46 extern unsigned int randint(
unsigned int s)
48 uniform_int_distribution<> distribution(0, s - 1);
49 return static_cast<unsigned int>(distribution(
gen));
68 int main(
int argc,
char **argv)
Run multiple tests for different backends.
a generic test suite engine
int main(int argc, char **argv)
static void add_command_line_option(const std::string &l, char s, std::string *arg)
Add a test-specific command line option.
int run_tests(int argc, char **argv)
Run all the tests.
static unsigned int g_random_seed
std::ostringstream tout
The debug printing stream.
A test runner, which runs the tests (implemented by subclassing it) with a variety of backends...
int run() const
Run the tests with a particular backend.
unsigned int randint(unsigned int s)
Return a random integer in the range 0 to s-1.
Long-running "soak" tests for Xapian.
unsigned int initrand()
Initialise the random number generator with the seed.