Files
thehub/testing/bitcoin-protocol/main.cpp
T

99 lines
2.4 KiB
C++
Raw Permalink Normal View History

2018-12-28 12:10:28 +01:00
/*
* This file is part of the Flowee project
2021-06-20 22:44:44 +02:00
* Copyright (C) 2018 Tom Zander <tom@flowee.org>
2018-12-28 12:10:28 +01: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, either version 3 of the License, or
* (at your option) any later version.
*
* 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/>.
*/
#include "bip32_tests.h"
2020-04-01 22:24:26 +02:00
#include "bloom_tests.h"
#include "uint256_tests.h"
2018-12-28 12:10:28 +01:00
#include "checkdatasig_tests.h"
#include "pow_tests.h"
2020-04-01 22:51:47 +02:00
#include "pmt_tests.h"
2018-12-28 12:10:28 +01:00
#include "script_P2SH_tests.h"
#include "script_tests.h"
#include "scriptnum_tests.h"
#include "transaction_tests.h"
2019-09-02 23:35:43 +02:00
#include "DoubleSpendProofTest.h"
#include "multisig_tests.h"
2020-04-10 14:14:42 +02:00
#include "TestReverseBytes.h"
2020-07-05 16:07:53 +02:00
#include "crypto_tests.h"
2020-07-05 19:07:02 +02:00
#include "merkle_tests.h"
2018-12-28 12:10:28 +01:00
int main(int, char **)
2018-12-28 12:10:28 +01:00
{
int rc = 0;
{
TestBip32 test;
rc = QTest::qExec(&test);
}
if (!rc) {
TestUint256 test;
rc = QTest::qExec(&test);
}
2018-12-28 12:10:28 +01:00
if (!rc) {
CheckDataSig test;
rc = QTest::qExec(&test);
}
if (!rc) {
POWTests test;
rc = QTest::qExec(&test);
}
if (!rc) {
TestPaymentToScriptHash test;
rc = QTest::qExec(&test);
}
if (!rc) {
TestScript test;
rc = QTest::qExec(&test);
}
if (!rc) {
TestScriptNum test;
rc = QTest::qExec(&test);
}
if (!rc) {
TransactionTests test;
rc = QTest::qExec(&test);
}
2019-09-02 23:35:43 +02:00
if (!rc) {
DoubleSpendProofTest test;
rc = QTest::qExec(&test);
}
if (!rc) {
MultiSigTests test;
rc = QTest::qExec(&test);
}
2020-04-01 22:24:26 +02:00
if (!rc) {
TestBloom test;
rc = QTest::qExec(&test);
}
2020-04-01 22:51:47 +02:00
if (!rc) {
PMTTests test;
rc = QTest::qExec(&test);
}
2020-04-10 14:14:42 +02:00
if (!rc) {
TestReverseBytes test;
rc = QTest::qExec(&test);
}
2020-07-05 16:07:53 +02:00
if (!rc) {
CryptoTests test;
rc = QTest::qExec(&test);
}
2020-07-05 19:07:02 +02:00
if (!rc) {
TestMerkle test;
rc = QTest::qExec(&test);
}
2018-12-28 12:10:28 +01:00
return rc;
}