mirror of
https://github.com/QuixiAI/nvdriver.git
synced 2026-12-06 14:38:47 +00:00
Mechanical, behavior-neutral: edition/resolver keys, unsafe extern blocks, unsafe(no_mangle)/unsafe(export_name), unsafe blocks inside unsafe fn, r#gen renames, --edition flags in Makefiles/tools, rustfmt style_edition pinned to 2021 so formatting stays edition-independent, and clippy collapsible_if allowed workspace-wide (let-chain churn). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
20 lines
498 B
Bash
20 lines
498 B
Bash
#!/bin/bash
|
|
set -euo pipefail
|
|
repo=$(cd "$(dirname "$0")/.." && pwd)
|
|
work=$(mktemp -d)
|
|
trap 'rm -rf "$work"' EXIT
|
|
cat > "$work/Cargo.toml" <<EOF
|
|
[package]
|
|
name="nv-firmware-owner-test"
|
|
version="0.1.0"
|
|
edition="2024"
|
|
[dependencies]
|
|
nv-rs-core={path="$repo/src/nvidia"}
|
|
[[test]]
|
|
name="owner"
|
|
path="$repo/tests/firmware-unpack/owner.rs"
|
|
EOF
|
|
export PATH="$HOME/.cargo/bin:$PATH"
|
|
cargo test --manifest-path "$work/Cargo.toml"
|
|
cargo clippy --manifest-path "$work/Cargo.toml" --all-targets -- -D warnings
|