Files
p2pool-salvium/tests/src/main.cpp

41 lines
1.1 KiB
C++
Raw Normal View History

2021-09-03 11:12:22 +02:00
/*
* This file is part of the Monero P2Pool <https://github.com/SChernykh/p2pool>
2024-01-02 14:06:19 +01:00
* Copyright (c) 2021-2024 SChernykh <https://github.com/SChernykh>
2021-09-03 11:12:22 +02:00
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2024-12-03 21:05:27 +01:00
#include "common.h"
#include "util.h"
#include "pool_block.h"
2021-09-03 11:12:22 +02:00
#include "gtest/gtest.h"
2022-02-21 09:32:32 +01:00
void p2pool_usage() {}
2024-12-03 21:05:27 +01:00
using namespace p2pool;
2022-02-21 09:32:32 +01:00
2021-09-03 11:12:22 +02:00
int main(int argc, char** argv)
{
2024-12-03 21:05:27 +01:00
set_main_thread();
PoolBlock::s_precalculatedSharesLock = new ReadWriteLock();
2021-09-03 11:12:22 +02:00
testing::InitGoogleTest(&argc, argv);
2024-12-03 21:05:27 +01:00
const int result = RUN_ALL_TESTS();
delete PoolBlock::s_precalculatedSharesLock;
return result;
2021-09-03 11:12:22 +02:00
}