* Move nano::establish_tcp into nano::test namespace * Move system.hpp declarations into namespace nano::test * Move telemetry test code to namespace nano::test * Move testutil declarations into namespace nano::test
26 lines
590 B
C++
26 lines
590 B
C++
#include <nano/node/common.hpp>
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
#include <QApplication>
|
|
QApplication * test_application = nullptr;
|
|
namespace nano
|
|
{
|
|
namespace test
|
|
{
|
|
void cleanup_dev_directories_on_exit ();
|
|
}
|
|
void force_nano_dev_network ();
|
|
}
|
|
|
|
int main (int argc, char ** argv)
|
|
{
|
|
nano::force_nano_dev_network ();
|
|
nano::node_singleton_memory_pool_purge_guard memory_pool_cleanup_guard;
|
|
QApplication application (argc, argv);
|
|
test_application = &application;
|
|
testing::InitGoogleTest (&argc, argv);
|
|
auto res = RUN_ALL_TESTS ();
|
|
nano::test::cleanup_dev_directories_on_exit ();
|
|
return res;
|
|
}
|