23 #ifndef XAPIAN_INCLUDED_TESTRUNNER_H 24 #define XAPIAN_INCLUDED_TESTRUNNER_H 116 virtual int run()
const = 0;
119 #endif // XAPIAN_INCLUDED_TESTRUNNER_H virtual int run() const =0
Run the tests with a particular backend.
const char * backend_name(int code)
BackendManager * backendmanager
backendmanager is global so that it can be accessed by individual tests.
std::string srcdir
The source directory, read from the test driver.
void set_properties_for_backend(const std::string &backend_name)
Set the property flags to those for the named backend.
virtual ~TestRunner()
Virtual destructor - needed for abstract class.
int run_tests(int argc, char **argv)
Run all the tests.
bool use_backend(const std::string &backend_name)
Return true iff we should use the named backend.
void do_tests_for_backend(BackendManager &manager)
int result_so_far
Result of running tests so far.
void do_tests_for_backend_(BackendManager *manager)
A test runner, which runs the tests (implemented by subclassing it) with a variety of backends...
Requires get_database_path() or similar.
void do_tests_for_backend(BackendManager &&manager)
Run the tests with the specified backend.
Supports Xapian::Database::check().
std::string user_backend
Backend specified by the user (or empty if none was specified).
unsigned properties
Property bitmask.