File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
2526test-stream : init
27+ @echo " test stream macros"
2628 cargo test -p razor-stream -- --nocapture
2729
2830.PHONY : test-api
2931test-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+
4250pressure : init
4351 cargo test -p razor-rpc-test ${ARGS} --release -- --nocapture --test-threads=1
4452
You can’t perform that action at this time.
0 commit comments