Skip to content

Commit 57f9170

Browse files
authored
Merge pull request #128 from benthecarman/e2e-tests
Add end-to-end test framework
2 parents a580057 + 97963db commit 57f9170

10 files changed

Lines changed: 5613 additions & 4 deletions

File tree

.github/workflows/integration-tests-events-rabbitmq.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: RabbitMQ Integration Tests
1+
name: Integration Tests
22

33
on: [ push, pull_request ]
44

@@ -28,7 +28,30 @@ jobs:
2828
- name: Checkout code
2929
uses: actions/checkout@v4
3030

31+
- name: Enable caching for bitcoind
32+
id: cache-bitcoind
33+
uses: actions/cache@v4
34+
with:
35+
path: bin/bitcoind-${{ runner.os }}-${{ runner.arch }}
36+
key: bitcoind-${{ runner.os }}-${{ runner.arch }}
37+
38+
- name: Download bitcoind
39+
if: steps.cache-bitcoind.outputs.cache-hit != 'true'
40+
run: |
41+
source ./scripts/download_bitcoind.sh
42+
mkdir -p bin
43+
mv "$BITCOIND_EXE" bin/bitcoind-${{ runner.os }}-${{ runner.arch }}
44+
45+
- name: Set bitcoind environment variable
46+
run: echo "BITCOIND_EXE=$( pwd )/bin/bitcoind-${{ runner.os }}-${{ runner.arch }}" >> "$GITHUB_ENV"
47+
3148
- name: Run RabbitMQ integration tests
3249
run: cargo test --features integration-tests-events-rabbitmq --verbose --color=always -- --nocapture
3350
env:
3451
RUST_BACKTRACE: 1
52+
53+
- name: Run end-to-end tests
54+
run: cargo test --manifest-path e2e-tests/Cargo.toml --verbose --color=always -- --test-threads=4 --nocapture
55+
env:
56+
RUST_BACKTRACE: 1
57+
BITCOIND_SKIP_DOWNLOAD: 1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/target
2+
/*/target

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[workspace]
22
resolver = "2"
3-
members = [ "ldk-server-cli", "ldk-server-client", "ldk-server-protos", "ldk-server"]
3+
members = ["ldk-server-cli", "ldk-server-client", "ldk-server-protos", "ldk-server"]
4+
exclude = ["e2e-tests"]
45

56
[profile.release]
67
panic = "abort"

0 commit comments

Comments
 (0)