2019-05-24 23:32:20 +02:00
|
|
|
# This file is part of the Flowee project
|
2024-09-04 22:17:45 +02:00
|
|
|
# Copyright (C) 2019-2024 Tom Zander <tom@flowee.org>
|
2019-05-24 23:32:20 +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, 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/>.
|
|
|
|
|
|
|
|
|
|
project (api)
|
|
|
|
|
include (testlib)
|
|
|
|
|
|
2019-06-16 00:23:09 +02:00
|
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
|
|
|
|
|
|
configure_file(
|
|
|
|
|
blk00000.dat
|
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/blk00000.dat
|
|
|
|
|
COPYONLY)
|
|
|
|
|
|
2021-03-19 14:18:40 +01:00
|
|
|
set (LIBS flowee_testlib flowee_networkmanager flowee_utils ${TEST_LIBS} ${OPENSSL_LIBRARIES})
|
|
|
|
|
set (COMMONSRC BlackBoxTest.cpp data.qrc)
|
|
|
|
|
|
|
|
|
|
##### LIVE
|
|
|
|
|
|
|
|
|
|
add_executable(test_api_live
|
|
|
|
|
${COMMONSRC}
|
|
|
|
|
TestLive.cpp
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(test_api_live ${LIBS})
|
|
|
|
|
add_test(NAME HUB_test_api_live COMMAND test_api_live)
|
2024-09-04 22:17:45 +02:00
|
|
|
add_dependencies(test_api_live hub)
|
2021-03-19 14:18:40 +01:00
|
|
|
|
|
|
|
|
##### Blockchain
|
|
|
|
|
|
|
|
|
|
add_executable(test_api_blockchain
|
|
|
|
|
${COMMONSRC}
|
|
|
|
|
TestBlockchain.cpp
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(test_api_blockchain ${LIBS})
|
|
|
|
|
add_test(NAME HUB_test_api_blockchain COMMAND test_api_blockchain)
|
2024-09-04 22:17:45 +02:00
|
|
|
add_dependencies(test_api_blockchain hub)
|
2021-03-19 14:18:40 +01:00
|
|
|
|
|
|
|
|
##### Address Monitor
|
|
|
|
|
|
|
|
|
|
add_executable(test_api_address_monitor
|
|
|
|
|
${COMMONSRC}
|
|
|
|
|
TestAddressMonitor.cpp
|
|
|
|
|
TestData.cpp
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(test_api_address_monitor ${LIBS})
|
|
|
|
|
add_test(NAME HUB_test_api_address_monitor COMMAND test_api_address_monitor)
|
2024-09-04 22:17:45 +02:00
|
|
|
add_dependencies(test_api_address_monitor hub)
|
2021-03-19 14:18:40 +01:00
|
|
|
|
|
|
|
|
##### Double Spend Proof Monitor
|
|
|
|
|
|
|
|
|
|
add_executable(test_api_double_spend_monitor
|
|
|
|
|
${COMMONSRC}
|
|
|
|
|
TestData.cpp
|
|
|
|
|
TestDoubleSpendProofMonitor.cpp
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(test_api_double_spend_monitor ${LIBS})
|
|
|
|
|
add_test(NAME HUB_test_api_double_spend_monitor COMMAND test_api_double_spend_monitor)
|
2024-09-04 22:17:45 +02:00
|
|
|
add_dependencies(test_api_double_spend_monitor hub)
|
2021-03-19 14:18:40 +01:00
|
|
|
|
|
|
|
|
##### TXID Monitor
|
|
|
|
|
|
|
|
|
|
add_executable(test_api_txid_monitor
|
|
|
|
|
${COMMONSRC}
|
|
|
|
|
TestData.cpp
|
|
|
|
|
TestTxIdMonitor.cpp
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(test_api_txid_monitor ${LIBS})
|
|
|
|
|
add_test(NAME HUB_test_api_txid_monitor COMMAND test_api_txid_monitor)
|
2024-09-04 22:17:45 +02:00
|
|
|
add_dependencies(test_api_txid_monitor hub)
|