2018-12-28 12:10:28 +01:00
|
|
|
/*
|
|
|
|
|
* This file is part of the Flowee project
|
|
|
|
|
* Copyright (C) 2018 Tom Zander <tomz@freedommail.ch>
|
|
|
|
|
*
|
|
|
|
|
* 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"
|
2019-07-29 21:45:25 +02:00
|
|
|
#include "uint256_tests.h"
|
2018-12-28 12:10:28 +01:00
|
|
|
#include "checkdatasig_tests.h"
|
|
|
|
|
#include "pow_tests.h"
|
|
|
|
|
#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"
|
2019-10-13 16:53:25 +02:00
|
|
|
#include "multisig_tests.h"
|
2018-12-28 12:10:28 +01:00
|
|
|
|
2019-10-13 16:53:25 +02:00
|
|
|
int main(int, char **)
|
2018-12-28 12:10:28 +01:00
|
|
|
{
|
|
|
|
|
int rc = 0;
|
|
|
|
|
{
|
|
|
|
|
TestBip32 test;
|
|
|
|
|
rc = QTest::qExec(&test);
|
|
|
|
|
}
|
2019-07-29 21:45:25 +02:00
|
|
|
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);
|
|
|
|
|
}
|
2019-10-13 16:53:25 +02:00
|
|
|
if (!rc) {
|
|
|
|
|
MultiSigTests test;
|
|
|
|
|
rc = QTest::qExec(&test);
|
|
|
|
|
}
|
2018-12-28 12:10:28 +01:00
|
|
|
return rc;
|
|
|
|
|
}
|