*/
test_callback_fn *_flush;
- private:
- /*
- Run before and after the runnner is executed.
- */
- test_callback_fn *pre_run;
- test_callback_fn *post_run;
-
public:
Item() :
_startup(NULL),
- _flush(NULL),
- pre_run(NULL),
- post_run(NULL)
+ _flush(NULL)
{ }
void set_startup(test_callback_fn *arg)
_flush= arg;
}
- void set_pre(test_callback_fn *arg)
- {
- pre_run= arg;
- }
-
- void set_post(test_callback_fn *arg)
- {
- pre_run= arg;
- }
-
- test_return_t pre(void *arg);
test_return_t flush(void* arg, test_st* run);
- test_return_t post(void *arg);
} item;
{
_servers.set_socket();
}
+
+ void set_sasl(const std::string& username_arg, const std::string& password_arg)
+ {
+ _servers.set_sasl(username_arg, password_arg);
+ }
+
+ libtest::server_startup_st& servers()
+ {
+ return _servers;
+ }
/**
Runner represents the callers for the tests. If not implemented we will use
libtest::server_startup_st _servers;
bool _socket;
void *_creators_ptr;
+ unsigned long int _servers_to_run;
};