Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
24 changes: 23 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,29 @@ jobs:
- name: Run tests
run: |
cargo nextest run


integration-test:
name: Integration test
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
override: true
- name: Install just
uses: extractions/setup-just@v1
- name: Run tests
run: |
just integration-test

lint:
name: Coding style check
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/target
**/target
/Cargo.lock
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ futures = "0.3"
async-trait = "0.1"
tokio = { version = "1.27", features = ["full"] }
chacha20poly1305 = "0.10"
x25519-dalek = { version = "2.0.0-pre.1", features = ["reusable_secrets"] }
x25519-dalek = { version = "2.0.0-rc.2", features = ["reusable_secrets", "static_secrets"] }
blake2 = "0.10"
hmac = "0.12"
ip_network = "0.4.1"
Expand Down
4 changes: 4 additions & 0 deletions integration-tests/wiretun-to-wiretun/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**/*.log
wiretun-peer1
wiretun-peer2
wiretun-tester
7 changes: 7 additions & 0 deletions integration-tests/wiretun-to-wiretun/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Test Case: WireTun to WireTun

## Setup

- [peer1](./peer1) is a WireTun instance running on the host machine with NativeTun.
- [peer2](./peer2) is a WireTun instance running on the host machine with MemoryTun which will not create any tun device.
- [tester](./tester) will run test cases to verify the connectivity between peer1 and peer2.
19 changes: 19 additions & 0 deletions integration-tests/wiretun-to-wiretun/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

set -e

pushd peer1
cargo build
popd

pushd peer2
cargo build
popd

pushd tester
cargo build
popd

cp peer1/target/debug/wiretun-peer1 wiretun-peer1
cp peer2/target/debug/wiretun-peer2 wiretun-peer2
cp tester/target/debug/wiretun-tester wiretun-tester
Loading