-
Notifications
You must be signed in to change notification settings - Fork 4
/
justfile
48 lines (39 loc) · 1.05 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
default:
just --list
# Build the project
build:
cargo build
# Format code with rust
fmt:
cargo fmt
# Lint code with clippy
lint:
cargo fmt --all -- --check
cargo clippy --all-targets --all-features
# Run unit tests against the current platform
unit-test:
cargo nextest run
cargo test --doc
# Run integration tests against the current platform (Require sudo)
integration-test: integration-test-native-tun integration-test-wiretun-to-wiretun integration-test-wireguard-to-wiretun
# Run integration test scenario: native TUN
integration-test-native-tun:
#!/usr/bin/env bash
set -e
pushd integration-tests
just test-native-tun
popd
# Run integration test scenario: WireTun to WireTun
integration-test-wiretun-to-wiretun:
#!/usr/bin/env bash
set -e
pushd integration-tests
just test-wiretun-to-wiretun
popd
# Run integration test scenario: WireGuard to WireTun
integration-test-wireguard-to-wiretun:
#!/usr/bin/env bash
set -e
pushd integration-tests
just test-wireguard-to-wiretun
popd