dncurrency/nano/qt_test/entry.cpp
Dimitrios Siganos 78631a6b1c
Move test code into namespace nano::test (#3890)
* 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
2022-08-10 20:48:31 +01:00

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;
}