File tree 4 files changed +19
-250
lines changed 4 files changed +19
-250
lines changed Original file line number Diff line number Diff line change 82
82
run : cmake -S . -B build
83
83
- name : Build, debug configuration
84
84
run : cmake --build build --config Debug
85
- - name : Client-server test, debug
86
- run : python tests/client-server.py build/tests/Debug/client.exe build/tests/Debug/server.exe
85
+ env :
86
+ CLIENT_BINARY : build/tests/Debug/client.exe
87
+ SERVER_BINARY : build/tests/Debug/server.exe
87
88
88
89
test-windows-cmake-release :
89
90
name : Windows CMake, Release configuration
98
99
run : cmake -S . -B build
99
100
- name : Build, release configuration
100
101
run : cmake --build build --config Release
101
- - name : Client-server test, release
102
- run : python tests/client-server.py build/tests/Release/client.exe build/tests/Release/server.exe
102
+ env :
103
+ CLIENT_BINARY : build/tests/Release/client.exe
104
+ SERVER_BINARY : build/tests/Release/server.exe
103
105
104
106
ensure-header-updated :
105
107
runs-on : ubuntu-latest
@@ -149,6 +151,9 @@ jobs:
149
151
- name : Install rust toolchain
150
152
uses : dtolnay/rust-toolchain@nightly
151
153
154
+ - name : Build client/server binaries
155
+ run : make target/client target/server
156
+
152
157
- name : cargo test (debug; all features; -Z minimal-versions)
153
158
run : cargo -Z minimal-versions test --all-features --locked
154
159
Original file line number Diff line number Diff line change @@ -28,12 +28,12 @@ endif
28
28
29
29
all : target/client target/server
30
30
31
- test : all test-rust
32
- ./tests/client-server.py ./target/client ./target/server
33
-
34
- test-rust :
31
+ test : all
35
32
${CARGO} test --locked
36
33
34
+ integration : all
35
+ ${CARGO} test --locked -- --ignored
36
+
37
37
target :
38
38
mkdir -p $@
39
39
@@ -75,4 +75,4 @@ format-check:
75
75
! -wholename ' ./src/rustls.h' | \
76
76
xargs clang-format --dry-run -Werror -i
77
77
78
- .PHONY : all clean test format format-check
78
+ .PHONY : all clean test integration format format-check
Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ test: all
40
40
$(call green_msg, Running 'cargo test')
41
41
cargo test --locked
42
42
43
+ integration: all
44
+ $(call green_msg, Running 'cargo test -- --ignored')
45
+ cargo test --locked -- --ignored
46
+
43
47
$(RUSTLS_LIB): src/lib.rs Cargo.toml
44
48
$(call green_msg, Building '$@')
45
49
RUSTFLAGS="--print native-static-libs" cargo build --release --locked
@@ -63,3 +67,4 @@ define link_EXE
63
67
@echo
64
68
endef
65
69
70
+ .PHONY: all clean test integration
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments