Skip to content

Commit 6419b36

Browse files
committed
Update Makefile with Rust unit testing
1 parent 73c9cb2 commit 6419b36

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ RUST_LIB_WINDOWS_LIB = $(RUST_DIR)/target/release/rpc.dll.lib
1212
# build Rust library
1313
RUST_BUILD_CMD = cargo build --release
1414

15+
RUST_TEST_CMD = cargo test
16+
1517
allLinux: build_rust copy_libs_linux run_go
1618

1719
allWindows: build_rust copy_libs_windows run_go
@@ -37,6 +39,10 @@ run_rust:
3739
@echo "Running Rust code..."
3840
cd $(RUST_DIR) && cargo run
3941

42+
test_rust:
43+
@echo "Running Rust unit tests..."
44+
cd $(RUST_DIR) && $(RUST_TEST_CMD)
45+
4046
clean:
4147
@echo "Cleaning up..."
4248
rm -rf $(RUST_DIR)/target

0 commit comments

Comments
 (0)