Files
nvdriver/reports/checkpoints/timeout-runtime-419052f720b4/tools/test_timeout_runtime.sh
nvidia-driver-rs 4526e6a816 Baseline: validated 30/30 tree with passing Level 7 hardware regression
- Updated tools/post_reboot.sh to check kernel oops taint bit and stuck driver tasks instead of <86400s uptime
- Level 7 hardware regression passed on 0000:b3:00.0 (module 37e6fa430835eee2b426019db3ad70eeb7a9e9070c09c84bd9b973cf56cbe529, 107 inventory words, 0 static mismatches, CUDA baseline verified before and after)
- Updated .gitignore to exclude build archives (*.a, *.rlib), __pycache__, and raw trace dumps
2026-11-23 23:48:38 +00:00

21 lines
1.7 KiB
Bash
Executable File

#!/bin/sh
set -eu
TASK_ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
cd "$TASK_ROOT"
TASK_OUT="$TASK_ROOT/target/timeout-runtime"
mkdir -p "$TASK_OUT"
RUSTC=${RUSTC:-$HOME/.cargo/bin/rustc}
cc -std=c11 -Wall -Wextra -Werror -c tests/timeout-runtime/ffi.c -o "$TASK_OUT/cpu.o"
cc -std=c11 -D_GNU_SOURCE -Wall -Wextra -Werror -c tests/pf-software/registry.c -o "$TASK_OUT/registry.o"
cc -std=c11 -pthread -Wall -Wextra -Werror -c tests/thread-state/ffi.c -o "$TASK_OUT/thread.o"
"$RUSTC" --edition=2021 --crate-name nv_rs_abi --crate-type=rlib src/common/abi/src/lib.rs -o "$TASK_OUT/libnv_rs_abi.rlib"
"$RUSTC" --edition=2021 --crate-name nv_rs_core --crate-type=rlib src/nvidia/src/lib.rs --extern nv_rs_abi="$TASK_OUT/libnv_rs_abi.rlib" -o "$TASK_OUT/libnv_rs_core.rlib"
"$RUSTC" --edition=2021 --test --crate-name nv_timeout_runtime tests/timeout-runtime/fixture.rs --extern nv_rs_abi="$TASK_OUT/libnv_rs_abi.rlib" --extern nv_rs_core="$TASK_OUT/libnv_rs_core.rlib" -L dependency="$TASK_OUT" -C link-arg="$TASK_OUT/cpu.o" -C link-arg="$TASK_OUT/registry.o" -C link-arg="$TASK_OUT/thread.o" -C link-arg=-pthread -o "$TASK_OUT/fixture"
"$TASK_OUT/fixture"
if "$RUSTC" --edition=2021 --test --cfg nv_rs_timeout_bad_lifetime --crate-name nv_timeout_runtime_negative tests/timeout-runtime/fixture.rs --extern nv_rs_abi="$TASK_OUT/libnv_rs_abi.rlib" --extern nv_rs_core="$TASK_OUT/libnv_rs_core.rlib" -L dependency="$TASK_OUT" -o "$TASK_OUT/invalid-lifetime" 2>"$TASK_OUT/invalid-lifetime.log"; then
echo 'ERROR: temporary identity pin was accepted' >&2
exit 1
fi
rg -q 'binding.*does not live long enough' "$TASK_OUT/invalid-lifetime.log"
echo 'Identity lifetime compile-fail check passed'