2015-03-03 16:49:12 +01:00
|
|
|
#ifndef BITCOIN_TEST_TEST_BITCOIN_H
|
|
|
|
#define BITCOIN_TEST_TEST_BITCOIN_H
|
|
|
|
|
|
|
|
#include "txdb.h"
|
|
|
|
|
|
|
|
#include <boost/filesystem.hpp>
|
|
|
|
#include <boost/thread.hpp>
|
|
|
|
|
2015-03-12 09:34:42 +01:00
|
|
|
/** Basic testing setup.
|
|
|
|
* This just configures logging and chain parameters.
|
|
|
|
*/
|
|
|
|
struct BasicTestingSetup {
|
|
|
|
BasicTestingSetup();
|
|
|
|
~BasicTestingSetup();
|
|
|
|
};
|
|
|
|
|
|
|
|
/** Testing setup that configures a complete environment.
|
|
|
|
* Included are data directory, coins database, script check threads
|
|
|
|
* and wallet (if enabled) setup.
|
|
|
|
*/
|
|
|
|
struct TestingSetup: public BasicTestingSetup {
|
2015-03-03 16:49:12 +01:00
|
|
|
CCoinsViewDB *pcoinsdbview;
|
|
|
|
boost::filesystem::path pathTemp;
|
|
|
|
boost::thread_group threadGroup;
|
|
|
|
|
|
|
|
TestingSetup();
|
|
|
|
~TestingSetup();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|