Skip to content

Commit

Permalink
add udt-init for setup udt development and testing
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyukang committed Jun 10, 2024
1 parent 8b1664f commit 1fc617f
Show file tree
Hide file tree
Showing 7 changed files with 2,832 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
- 3-nodes-transfer
- invoice-ops
- open-use-close-a-channel
- udt
release:
- "0.116.1"
name: e2e test for ${{ matrix.workflow }}
Expand Down
8 changes: 8 additions & 0 deletions tests/deploy/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -xeuo pipefail

script_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
data_dir="$script_dir/node-data"
udt_init_dir="$script_dir/udt-init"
cd "$script_dir" || exit 1

miner_key_file="$data_dir/specs/miner.key"
Expand Down Expand Up @@ -55,9 +56,16 @@ deploy_and_generate_blocks() {
generate_blocks
}

run_udt_init() {
export $(xargs <".env")
cd "$udt_init_dir" || exit 1
cargo run -- "$@"
}

deploy_and_generate_blocks always_success
deploy_and_generate_blocks funding-lock
deploy_and_generate_blocks commitment-lock
deploy_and_generate_blocks simple-udt

./create-dotenv-file.sh >.env
run_udt_init
1 change: 1 addition & 0 deletions tests/deploy/udt-init/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target
Loading

0 comments on commit 1fc617f

Please sign in to comment.