Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PH] Update to test harness python package #92

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
23aa009
Merge pull request #10689 from EOSIO/pdr/EPE-9
praphael Sep 16, 2021
f40e17d
address plugin_http_api_test failure and build failure
ClaytonCalabrese Jul 14, 2022
ed13718
remove duplicate code. increase max_body_size
ClaytonCalabrese Jul 19, 2022
b2e7127
run beast_http and common through clang format.
ClaytonCalabrese Aug 4, 2022
d0192ce
Merge remote-tracking branch 'origin/main' into replace_websocketpp_w…
ClaytonCalabrese Aug 18, 2022
3273bd3
Mandel-297 Refactor producer_plugin to consolidate controller push_tr…
heifner Aug 19, 2022
a0aa347
Reorder logging to be consist with other logging.
heifner Aug 19, 2022
1ad2ea4
GH-18 Update max-scheduled-transaction-time-per-block-ms description …
heifner Aug 22, 2022
cc74890
fix compile warnings in trace_api_plugin
linh2931 Aug 22, 2022
f35c5e6
Merge branch 'main' into prod-plugin-push-trx
heifner Aug 22, 2022
8d7d041
trace_api_plugin.cpp: remove trace_api_plugin_impl::set_program_options
linh2931 Aug 22, 2022
81a249c
Fix for channels::transaction_ack not always being called on expired …
heifner Aug 23, 2022
5156037
Merge branch 'prod-plugin-push-trx' of https://github.com/AntelopeIO/…
heifner Aug 23, 2022
850de1c
Consolidate more logging into log_trx_result method.
heifner Aug 23, 2022
762ae01
Factor out calls to process_incoming_transaction_async to better hand…
heifner Aug 23, 2022
448921c
Merge remote-tracking branch 'origin/main' into prod-plugin-push-trx
heifner Aug 23, 2022
fc4d60c
Merge remote-tracking branch 'origin/main' into prod-plugin-push-trx
heifner Aug 23, 2022
6fb59bc
bump version to 3.1.0
spoonincode Aug 23, 2022
3c9661e
Merge pull request #43 from AntelopeIO/bump-310
spoonincode Aug 23, 2022
492aaa4
Merge branch 'main' into prod-plugin-push-trx
heifner Aug 25, 2022
52dc205
Merge branch 'main' into trace_api_plugin_warnings_fixes
linh2931 Aug 25, 2022
5b61b95
Disconnect if not seen a block from connection for 2x heart-beat time…
heifner Aug 25, 2022
3091b8d
GH-49 Revert close if not seen block. You might not see a block if yo…
heifner Aug 25, 2022
c285e9f
change long remaining = loc; to auto remaining = loc; to keep the typ…
linh2931 Aug 25, 2022
12c4972
add a final job that passes if all tests pass
spoonincode Aug 25, 2022
297ab7c
remove lr-tests from all-passing job
spoonincode Aug 25, 2022
b14d7b4
Cleanup from peer review comments
heifner Aug 25, 2022
25b1029
always make the all-passing test bubble up success or fail
spoonincode Aug 26, 2022
50894ac
Merge pull request #56 from AntelopeIO/final_ci_job_31x
spoonincode Aug 26, 2022
7413ef1
Merge remote-tracking branch 'origin/release/3.1' into final_ci_job_m…
spoonincode Aug 26, 2022
d45aba4
Merge pull request #57 from AntelopeIO/final_ci_job_merge
spoonincode Aug 26, 2022
df9529c
Merge branch 'main' into trace_api_plugin_warnings_fixes
spoonincode Aug 26, 2022
c14eefb
Convert regression test framework into a Python package and update tests
jgiszczak Aug 26, 2022
e5217f1
Merge branch 'main' into test_harness_python_package
jgiszczak Aug 26, 2022
48ea298
Additional cleanup for peer review
heifner Aug 26, 2022
10ea02f
Merge branch 'release/3.1' into GH-49-syncing-3.1
heifner Aug 26, 2022
106d596
Merge pull request #61 from AntelopeIO/test_harness_python_package
jgiszczak Aug 26, 2022
1549727
Merge branch 'main' into trace_api_plugin_warnings_fixes
linh2931 Aug 26, 2022
3779056
Merge pull request #35 from AntelopeIO/trace_api_plugin_warnings_fixes
linh2931 Aug 26, 2022
9766a7a
fix a number of issues with http-max-bytes-in-flight-mb configuration
linh2931 Aug 27, 2022
aa93694
Merge pull request #63 from AntelopeIO/http_bytes_in_flight_fix-3_1
linh2931 Aug 27, 2022
efd6d7e
resolve merge conflicts
linh2931 Aug 27, 2022
321f2da
Merge pull request #64 from AntelopeIO/http_bytes_in_flight_fix_main
linh2931 Aug 28, 2022
ea67d4b
Add auth to log
heifner Aug 29, 2022
9d138f7
Merge pull request #29 from AntelopeIO/prod-plugin-push-trx
heifner Aug 29, 2022
b3ecc6d
Merge branch 'main' into GH-18-max-scheduled-trx-desc
heifner Aug 29, 2022
25eb9bd
Merge pull request #34 from AntelopeIO/GH-18-max-scheduled-trx-desc
heifner Aug 29, 2022
6e100b2
temporarily point fc at branch to test in CI
ClaytonCalabrese Aug 29, 2022
097d6ca
remove nonworking Secure Enclave support from signature_provider_plugin
spoonincode Aug 29, 2022
205641c
remove YubiHSM support from keosd
spoonincode Aug 29, 2022
d7d21d1
merge from main
ClaytonCalabrese Aug 29, 2022
1a74608
Merge pull request #65 from AntelopeIO/remove_se_sigprovider
spoonincode Aug 29, 2022
817b24d
Merge remote-tracking branch 'origin/main' into replace_websocketpp_w…
ClaytonCalabrese Aug 29, 2022
d780fd8
GH-62 Fix python format issue that caused exception and test to fail.…
heifner Aug 29, 2022
31a7ce7
Merge pull request #69 from AntelopeIO/GH-62-test-fail-3.1
heifner Aug 29, 2022
45e1224
Merge remote-tracking branch 'origin/release/3.1' into GH-62-merge-to…
heifner Aug 29, 2022
ec78c8d
Merge pull request #70 from AntelopeIO/GH-62-merge-to-main
heifner Aug 29, 2022
41a5f89
replace git commands from nodeos & launcher with libversion
spoonincode Aug 30, 2022
212533c
GH-60 Do not throw exception in posted lambdas to main thread as this…
heifner Aug 30, 2022
d74d5c6
remove libraries/yubihsm submodule index I missed
spoonincode Aug 30, 2022
5c2f288
cleanup license file handling
spoonincode Aug 30, 2022
fe08531
Merge pull request #55 from AntelopeIO/GH-49-syncing-3.1
heifner Aug 30, 2022
76fceb9
Merge remote-tracking branch 'origin/release/3.1' into GH-49-merge-main
heifner Aug 30, 2022
48d0d23
Merge pull request #73 from AntelopeIO/less_license_pasta
spoonincode Aug 30, 2022
43aa906
Merge pull request #74 from AntelopeIO/GH-49-merge-main
heifner Aug 30, 2022
ac48773
Merge pull request #72 from AntelopeIO/GH-60-bind-crash-3.1
heifner Aug 30, 2022
f667192
Merge remote-tracking branch 'origin/release/3.1' into GH-60-merge-main
heifner Aug 30, 2022
076c98e
Merge pull request #75 from AntelopeIO/GH-60-merge-main
heifner Aug 30, 2022
b18eaec
Merge pull request #71 from AntelopeIO/remove_more_cmake_git
spoonincode Aug 30, 2022
92fa5c9
remove merge doubling of code
ClaytonCalabrese Aug 30, 2022
c88bfd7
faster builddir upload & separate leap-dev job for quicker builds
spoonincode Aug 30, 2022
56d94f2
Merge remote-tracking branch 'origin/main' into remove_yubihsm
spoonincode Aug 31, 2022
10d696f
Merge pull request #66 from AntelopeIO/remove_yubihsm
spoonincode Aug 31, 2022
67003ad
plugins/chain_api_plugin/chain.swagger.yaml: rename get_scheduled_tra…
pnx Aug 31, 2022
580f546
Merge branch 'main' into replace_websocketpp_with_boost_beast
heifner Aug 31, 2022
bebc33d
Merge pull request #78 from AntelopeIO/minor_build_speed_improvement
spoonincode Aug 31, 2022
e9cde7d
Merge pull request #79 from eosswedenorg/fix-chain-api-get-scheduled-…
heifner Aug 31, 2022
95321fc
run non-parallel tests in parallel via containers
spoonincode Aug 31, 2022
ea86288
move tests that are sub 3 minutes out of long running classification
spoonincode Aug 31, 2022
a7a1cbf
retarget fc to main again
ClaytonCalabrese Aug 31, 2022
bc7edb6
Merge pull request #22 from AntelopeIO/replace_websocketpp_with_boost…
ClaytonCalabrese Aug 31, 2022
9f4f9a7
Merge pull request #83 from AntelopeIO/parallel_nonparallel
spoonincode Aug 31, 2022
d3e8c4a
Merge pull request #84 from AntelopeIO/not_so_long_running
spoonincode Aug 31, 2022
ec4ff67
Merge branch 'main' into update_to_test_harness_python_package
oschwaldp-oci Sep 1, 2022
8dee4b1
Update import for new TestHarness package
oschwaldp-oci Sep 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .cicd/platforms/ubuntu18.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@ RUN apt-get update && apt-get upgrade -y && \
g++-8 \
git \
jq \
libcurl4-openssl-dev \
libgmp-dev \
libssl-dev \
libusb-1.0-0-dev \
llvm-7-dev \
ninja-build \
pkg-config \
python3 \
software-properties-common \
zlib1g-dev \
Expand Down
3 changes: 0 additions & 3 deletions .cicd/platforms/ubuntu20.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ RUN apt-get update && apt-get upgrade -y && \
git \
jq \
libboost-all-dev \
libcurl4-openssl-dev \
libgmp-dev \
libssl-dev \
libusb-1.0-0-dev \
llvm-11-dev \
ninja-build \
pkg-config \
zstd
3 changes: 0 additions & 3 deletions .cicd/platforms/ubuntu22.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ RUN apt-get update && apt-get upgrade -y && \
git \
jq \
libboost-all-dev \
libcurl4-openssl-dev \
libgmp-dev \
libssl-dev \
libusb-1.0-0-dev \
llvm-11-dev \
ninja-build \
pkg-config \
zstd
14 changes: 14 additions & 0 deletions .github/actions/parallel-ctest-containers/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'Parallel ctest'
description: 'Runs a set of ctests in parallel via multiple docker containers'
inputs:
container:
required: true
error-log-paths:
required: true
log-tarball-prefix:
required: true
tests:
required: true
runs:
using: 'node16'
main: 'dist/index.mjs'
3 changes: 3 additions & 0 deletions .github/actions/parallel-ctest-containers/dist/index.mjs

Large diffs are not rendered by default.

63 changes: 63 additions & 0 deletions .github/actions/parallel-ctest-containers/main.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
import child_process from 'node:child_process';
import process from 'node:process';
import stream from 'node:stream';
import fs from 'node:fs';
import zlib from 'node:zlib';
import tar from 'tar-stream';
import core from '@actions/core'

const container = core.getInput('container', {required: true});
const error_log_paths = JSON.parse(core.getInput('error-log-paths', {required: true}));
const log_tarball_prefix = core.getInput('log-tarball-prefix', {required: true});
const tests = JSON.parse(core.getInput('tests', {required: true}));

try {
if(child_process.spawnSync("docker", ["run", "--name", "base", "-v", `${process.cwd()}/build.tar.zst:/build.tar.zst`, "--workdir", "/__w/leap/leap", container, "tar", "--zstd", "-xf", "/build.tar.zst"], {stdio:"inherit"}).status)
throw new Error("Failed to create base container");
if(child_process.spawnSync("docker", ["commit", "base", "baseimage"], {stdio:"inherit"}).status)
throw new Error("Failed to create base image");
if(child_process.spawnSync("docker", ["rm", "base"], {stdio:"inherit"}).status)
throw new Error("Failed to remove base container");

let subprocesses = [];
tests.forEach(t => {
subprocesses.push(new Promise(resolve => {
child_process.spawn("docker", ["run", "--name", t, "--init", "baseimage", "bash", "-c", `cd build; ctest --output-on-failure -R '^${t}$'`], {stdio:"inherit"}).on('close', code => resolve(code));
}));
});

const results = await Promise.all(subprocesses);

for(let i = 0; i < results.length; ++i) {
if(results[i] === 0)
continue;

//failing test
core.setFailed("Some tests failed");

let extractor = tar.extract();
let packer = tar.pack();

extractor.on('entry', (header, stream, next) => {
if(!header.name.startsWith(`__w/leap/leap/build`)) {
stream.on('end', () => next());
stream.resume();
return;
}

header.name = header.name.substring(`__w/leap/leap/`.length);
if(header.name !== "build/" && error_log_paths.filter(p => header.name.startsWith(p)).length === 0) {
stream.on('end', () => next());
stream.resume();
return;
}

stream.pipe(packer.entry(header, next));
}).on('finish', () => {packer.finalize()});

child_process.spawn("docker", ["export", tests[i]]).stdout.pipe(extractor);
stream.promises.pipeline(packer, zlib.createGzip(), fs.createWriteStream(`${log_tarball_prefix}-${tests[i]}-logs.tar.gz`));
}
} catch(e) {
core.setFailed(`Uncaught exception ${e.message}`);
}
7 changes: 7 additions & 0 deletions .github/actions/parallel-ctest-containers/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"dependencies": {
"@actions/core": "^1.9.1",
"tar-stream": "^2.2.0"
}

}
110 changes: 65 additions & 45 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
push: true
tags: ${{fromJSON(needs.d.outputs.p)[matrix.platform].image}}
file: ${{fromJSON(needs.d.outputs.p)[matrix.platform].dockerfile}}

Build:
needs: [d, build-platforms]
if: always() && needs.d.result == 'success' && (needs.build-platforms.result == 'success' || needs.build-platforms.result == 'skipped')
Expand All @@ -65,6 +66,7 @@ jobs:
matrix:
platform: [ubuntu18, ubuntu20, ubuntu22]
outputs:
np-tests: ${{steps.build.outputs.np-tests}}
lr-tests: ${{steps.build.outputs.lr-tests}}
runs-on: ["self-hosted", "enf-x86-beefy"]
container: ${{fromJSON(needs.d.outputs.p)[matrix.platform].image}}
Expand All @@ -82,24 +84,40 @@ jobs:
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -GNinja ..
ninja
# the correct approach is by far "--show-only=json-v1 | jq '.tests[].name' | jq -sc" but that doesn't work on U18's cmake 3.10 since it lacks json-v1
echo ::set-output name=np-tests::$(ctest -L "nonparallelizable_tests" --show-only | head -n -1 | cut -d ':' -f 2 -s | jq -cnR '[inputs | select(length>0)[1:]]')
echo ::set-output name=lr-tests::$(ctest -L "long_running_tests" --show-only | head -n -1 | cut -d ':' -f 2 -s | jq -cnR '[inputs | select(length>0)[1:]]')
tar -pc -C .. --exclude "*.a" --exclude "*.o" build | zstd --long -T0 -9 > ../build.tar.gz
tar -pc -C .. --exclude "*.o" build | zstd --long -T0 -9 > ../build.tar.zst
- name: Upload builddir
uses: actions/upload-artifact@v3
uses: AntelopeIO/upload-artifact-large-chunks-action@v1
with:
name: ${{matrix.platform}}-build
path: build.tar.gz
- name: Build dev package (Ubuntu 20 only)
if: matrix.platform == 'ubuntu20'
run: |
cd build
ninja package
- name: Upload dev package (Ubuntu 20 only)
if: matrix.platform == 'ubuntu20'
uses: actions/upload-artifact@v3
with:
name: leap-dev-ubuntu20-amd64
path: build/leap-dev*.deb
path: build.tar.zst

dev-package:
name: Build leap-dev package
needs: [d, Build]
if: always() && needs.Build.result == 'success'
runs-on: ubuntu-latest
container: ${{fromJSON(needs.d.outputs.p)['ubuntu20'].image}}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Download builddir
uses: actions/download-artifact@v3
with:
name: ubuntu20-build
- name: Build dev package
run: |
zstdcat build.tar.zst | tar x
cd build
cpack
- name: Upload dev package
uses: actions/upload-artifact@v3
with:
name: leap-dev-ubuntu20-amd64
path: build/leap-dev*.deb

tests:
name: Tests
needs: [d, Build]
Expand All @@ -122,9 +140,10 @@ jobs:
run: |
# https://github.com/actions/runner/issues/2033 -- need this because of full version label test looking at git revs
chown -R $(id -u):$(id -g) $PWD
zstdcat build.tar.gz | tar x
zstdcat build.tar.zst | tar x
cd build
ctest --output-on-failure -j $(nproc) -LE "(nonparallelizable_tests|long_running_tests)"

np-tests:
name: NP Tests
needs: [d, Build]
Expand All @@ -133,30 +152,27 @@ jobs:
fail-fast: false
matrix:
platform: [ubuntu20]
runs-on: ubuntu-latest
container:
image: ${{fromJSON(needs.d.outputs.p)[matrix.platform].image}}
options: --init
runs-on: ["self-hosted", "enf-x86-midtier"]
steps:
- uses: actions/checkout@v3
- name: Download builddir
uses: actions/download-artifact@v3
with:
name: ${{matrix.platform}}-build
- name: Run NP Tests
run: |
zstdcat build.tar.gz | tar x
cd build
ctest --output-on-failure -L "nonparallelizable_tests"
- name: Bundle logs from failed tests
if: failure()
run: tar -czf ${{matrix.platform}}-serial-logs.tar.gz build/var build/etc
- name: Run tests in parallel containers
uses: ./.github/actions/parallel-ctest-containers
with:
container: ${{fromJSON(needs.d.outputs.p)[matrix.platform].image}}
error-log-paths: '["build/etc", "build/var", "build/leap-ignition-wd"]'
log-tarball-prefix: ${{matrix.platform}}
tests: ${{needs.Build.outputs.np-tests}}
- name: Upload logs from failed tests
uses: actions/upload-artifact@v3
if: failure()
with:
name: ${{matrix.platform}}-serial-logs
path: ${{matrix.platform}}-serial-logs.tar.gz
name: ${{matrix.platform}}-np-logs
path: '*-logs.tar.gz'

lr-tests:
name: LR Tests
needs: [d, Build]
Expand All @@ -165,28 +181,32 @@ jobs:
fail-fast: false
matrix:
platform: [ubuntu20]
test-name: ${{fromJSON(needs.Build.outputs.lr-tests)}}
runs-on: ubuntu-latest
container:
image: ${{fromJSON(needs.d.outputs.p)[matrix.platform].image}}
options: --init
runs-on: ["self-hosted", "enf-x86-lowtier"]
steps:
- uses: actions/checkout@v3
- name: Download builddir
uses: actions/download-artifact@v3
with:
name: ${{matrix.platform}}-build
- name: Run ${{matrix.test-name}} Test
run: |
zstdcat build.tar.gz | tar x
cd build
ctest --output-on-failure -R ${{matrix.test-name}}
- name: Bundle logs from failed tests
if: failure()
run: tar -czf ${{matrix.platform}}-${{matrix.test-name}}-logs.tar.gz build/var build/etc
- name: Upload logs from failed tests
- name: Run tests in parallel containers
uses: ./.github/actions/parallel-ctest-containers
with:
container: ${{fromJSON(needs.d.outputs.p)[matrix.platform].image}}
error-log-paths: '["build/etc", "build/var", "build/leap-ignition-wd"]'
log-tarball-prefix: ${{matrix.platform}}
tests: ${{needs.Build.outputs.lr-tests}}
- name: Upload logs from failed tests
uses: actions/upload-artifact@v3
if: failure()
with:
name: ${{matrix.platform}}-${{matrix.test-name}}-logs
path: ${{matrix.platform}}-${{matrix.test-name}}-logs.tar.gz
name: ${{matrix.platform}}-lr-logs
path: '*-logs.tar.gz'

all-passing:
name: All Required Tests Passed
needs: [dev-package, tests, np-tests]
if: always()
runs-on: ubuntu-latest
steps:
- if: needs.dev-package.result != 'success' || needs.tests.result != 'success' || needs.np-tests.result != 'success'
run: false
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
[submodule "libraries/softfloat"]
path = libraries/softfloat
url = https://github.com/AntelopeIO/berkeley-softfloat-3
[submodule "libraries/yubihsm"]
path = libraries/yubihsm
url = https://github.com/Yubico/yubihsm-shell
[submodule "tests/abieos"]
path = tests/abieos
url = https://github.com/AntelopeIO/abieos
Expand Down
39 changes: 10 additions & 29 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -218,32 +218,16 @@ install(FILES ${CMAKE_BINARY_DIR}/modules/leap-config.cmake DESTINATION ${CMAKE_
install(FILES ${CMAKE_BINARY_DIR}/modules/EosioTester.cmake DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}/cmake/leap COMPONENT dev EXCLUDE_FROM_ALL)
install(FILES ${CMAKE_SOURCE_DIR}/CMakeModules/EosioCheckVersion.cmake DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}/cmake/leap COMPONENT dev EXCLUDE_FROM_ALL)

configure_file(${CMAKE_SOURCE_DIR}/LICENSE
${CMAKE_BINARY_DIR}/licenses/leap/LICENSE COPYONLY)
configure_file(${CMAKE_SOURCE_DIR}/libraries/softfloat/COPYING.txt
${CMAKE_BINARY_DIR}/licenses/leap/LICENSE.softfloat COPYONLY)
configure_file(${CMAKE_SOURCE_DIR}/libraries/wasm-jit/LICENSE
${CMAKE_BINARY_DIR}/licenses/leap/LICENSE.wavm COPYONLY)
configure_file(${CMAKE_SOURCE_DIR}/libraries/fc/secp256k1/secp256k1/COPYING
${CMAKE_BINARY_DIR}/licenses/leap/LICENSE.secp256k1 COPYONLY)
configure_file(${CMAKE_SOURCE_DIR}/libraries/fc/include/fc/crypto/webauthn_json/license.txt
${CMAKE_BINARY_DIR}/licenses/leap/LICENSE.rapidjson COPYONLY)
configure_file(${CMAKE_SOURCE_DIR}/libraries/fc/src/network/LICENSE.go
${CMAKE_BINARY_DIR}/licenses/leap/LICENSE.go COPYONLY)
configure_file(${CMAKE_SOURCE_DIR}/libraries/yubihsm/LICENSE
${CMAKE_BINARY_DIR}/licenses/leap/LICENSE.yubihsm COPYONLY)
configure_file(${CMAKE_SOURCE_DIR}/libraries/eos-vm/LICENSE
${CMAKE_BINARY_DIR}/licenses/leap/LICENSE.eos-vm COPYONLY)

install(FILES LICENSE DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/licenses/leap/ COMPONENT base)
install(FILES libraries/softfloat/COPYING.txt DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/licenses/leap/ RENAME LICENSE.softfloat COMPONENT base)
install(FILES libraries/wasm-jit/LICENSE DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/licenses/leap/ RENAME LICENSE.wavm COMPONENT base)
install(FILES libraries/fc/secp256k1/secp256k1/COPYING DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/licenses/leap/ RENAME LICENSE.secp256k1 COMPONENT base)
install(FILES libraries/fc/include/fc/crypto/webauthn_json/license.txt DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/licenses/leap/ RENAME LICENSE.rapidjson COMPONENT base)
install(FILES libraries/fc/src/network/LICENSE.go DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/licenses/leap/ COMPONENT base)
install(FILES libraries/yubihsm/LICENSE DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/licenses/leap/ RENAME LICENSE.yubihsm COMPONENT base)
install(FILES libraries/eos-vm/LICENSE DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/licenses/leap/ RENAME LICENSE.eos-vm COMPONENT base)
install(FILES libraries/fc/libraries/ff/LICENSE DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/licenses/leap/ RENAME LICENSE.libff COMPONENT base)
configure_file(LICENSE licenses/leap/LICENSE COPYONLY)
configure_file(libraries/softfloat/COPYING.txt licenses/leap/LICENSE.softfloat COPYONLY)
configure_file(libraries/wasm-jit/LICENSE licenses/leap/LICENSE.wavm COPYONLY)
configure_file(libraries/fc/secp256k1/secp256k1/COPYING licenses/leap/LICENSE.secp256k1 COPYONLY)
configure_file(libraries/fc/include/fc/crypto/webauthn_json/license.txt licenses/leap/LICENSE.rapidjson COPYONLY)
configure_file(libraries/fc/src/network/LICENSE.go licenses/leap/LICENSE.go COPYONLY)
configure_file(libraries/eos-vm/LICENSE licenses/leap/LICENSE.eos-vm COPYONLY)
configure_file(libraries/fc/libraries/ff/LICENSE licenses/leap/LICENSE.libff COPYONLY)

install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/licenses/leap" DESTINATION "${CMAKE_INSTALL_FULL_DATAROOTDIR}/licenses/" COMPONENT base)

add_custom_target(dev-install
COMMAND "${CMAKE_COMMAND}" --build "${CMAKE_BINARY_DIR}"
Expand All @@ -252,9 +236,6 @@ add_custom_target(dev-install
USES_TERMINAL
)

get_property(_CTEST_CUSTOM_TESTS_IGNORE GLOBAL PROPERTY CTEST_CUSTOM_TESTS_IGNORE)
file(WRITE "${CMAKE_BINARY_DIR}/CTestCustom.cmake" "SET(CTEST_CUSTOM_TESTS_IGNORE ${_CTEST_CUSTOM_TESTS_IGNORE})")

include(doxygen)

include(package.cmake)
Expand Down
Loading