Skip to content

Commit eb8608b

Browse files
committed
Makefile: Add test-leak
1 parent 0b6236e commit eb8608b

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,22 @@ fmt: init
1414
cargo fmt
1515

1616
.PHONY: test-all
17-
test-all: test-codec test-stream test-api test
17+
test-all: test-codec test-stream test-api test-leak test
1818
echo run all tests
1919

2020
.PHONY: test-codec
21+
@echo "test razor-rpc-codec"
2122
cargo check -p razor-rpc-codec
2223
cargo test -p razor-rpc-codec
2324

2425
.PHONY: test-stream
2526
test-stream: init
27+
@echo "test stream macros"
2628
cargo test -p razor-stream -- --nocapture
2729

2830
.PHONY: test-api
2931
test-api: init
32+
@echo "test api macros"
3033
RUST_BACKTRACE=1 cargo test -p razor-rpc -- --nocapture
3134

3235
# usage:
@@ -39,6 +42,11 @@ test: init
3942
cargo test -p razor-rpc-test ${ARGS} -- --nocapture --test-threads=1
4043
@echo "Done"
4144

45+
.PHONY: test_leak
46+
test-leak:
47+
@echo "Run integration tests with LSAN"
48+
RUSTFLAGS="-Zsanitizer=leak" cargo +nightly test -p razor-rpc-test ${ARGS} -- --nocapture --test-threads=1
49+
4250
pressure: init
4351
cargo test -p razor-rpc-test ${ARGS} --release -- --nocapture --test-threads=1
4452

0 commit comments

Comments
 (0)