blob: fdc01b116bc24b57232ebd4450fbee8a1df8c086 [file] [log] [blame]
@echo off
setlocal
:: Get the directory of the script
set REPO=%~dp0\..\..\..
:: Get the Rust version, package, and objs path from arguments
set RUST_VERSION=%1
set RUST_PKG=%2
set OUT_PATH=%3
:: Set environment variables
set PATH=%PATH%;%OUT_PATH%\lib64
set CARGO_HOME=%OUT_PATH%\rust\.cargo
:: Build the package
cmake --build %OUT_PATH% %RUST_PKG%
:: Run the cargo command
cargo.exe test -vv --package %RUST_PKG% --manifest-path %REPO%\tools\netsim\rust\Cargo.toml