diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -129,6 +129,8 @@ add_subdirectory(test) +add_subdirectory(electrum) + add_subdirectory(contrib) add_subdirectory(doc) diff --git a/contrib/teamcity/build-configurations.yml b/contrib/teamcity/build-configurations.yml --- a/contrib/teamcity/build-configurations.yml +++ b/contrib/teamcity/build-configurations.yml @@ -675,6 +675,12 @@ templates: - js-mocha + electrum-tests: + runOnDiffRegex: + - electrum/ + targets: + - - check-electrum + preview-e.cash: docker: context: web/e.cash diff --git a/contrib/utils/install-dependencies-bullseye.sh b/contrib/utils/install-dependencies-bullseye.sh --- a/contrib/utils/install-dependencies-bullseye.sh +++ b/contrib/utils/install-dependencies-bullseye.sh @@ -181,3 +181,7 @@ cmake -S${CORROSION_SRC_FOLDER} -B${CORROSION_BUILD_FOLDER} -DCMAKE_BUILD_TYPE=Release cmake --build ${CORROSION_BUILD_FOLDER} --config Release cmake --install ${CORROSION_BUILD_FOLDER} --config Release + +# Install Electrum ABC test dependencies +here=$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")") +pip3 install -r ${here}/../../electrum/contrib/requirements/requirements.txt diff --git a/electrum/CMakeLists.txt b/electrum/CMakeLists.txt new file mode 100644 --- /dev/null +++ b/electrum/CMakeLists.txt @@ -0,0 +1,11 @@ +include(MakeLink) +make_link(test_runner.py) + +add_custom_target(check-electrum + COMMENT "Run Electrum ABC unit tests..." + COMMAND "${Python_EXECUTABLE}" ./test_runner.py + DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/test_runner.py +) + +add_dependencies(check-all check-electrum) +add_dependencies(check-extended check-electrum)