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