mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 16:08:37 +00:00
What changed: - victory/ is now d3d12/; - its crates are leonida-* (leonida_* code paths); - the program is leonida.exe; - settings are LEONIDA_*, and the older VICTORY_* names still work through apps/leonida/src/leonida.rs; - the config file is leonida.toml; - log names and user-facing text say Leonida. What did not change: lines that credit upstream projects or people, URLs, copyright notices and the GPL-3.0 LICENSE. d3d12/README.md opens with a Leonida section that says the runtime grew from Marvisak/VIctory through trustno1-coder/VIctory-NVIDIA. The rest of that README is labelled as trustno1-coder's. The launchers (scripts/play-d3d12.ps1, scripts/play-linux.sh), docs/linux.md and scripts/sync_victory.py (prefix d3d12) follow the move. Future upstream merges will need a mapping from upstream's names onto these. Builds with `cargo build --profile diag -p leonida --features diagnostics`. The settings alias tests pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
35 lines
1.1 KiB
Rust
35 lines
1.1 KiB
Rust
use std::path::Path;
|
|
use std::process::Command;
|
|
|
|
#[test]
|
|
fn census_fails_when_a_requested_path_is_missing() {
|
|
let valid = Path::new(env!("CARGO_MANIFEST_DIR")).join("Cargo.toml");
|
|
let missing = valid.with_extension("missing-census-input");
|
|
assert!(!missing.exists());
|
|
|
|
let output = Command::new(env!("CARGO_BIN_EXE_leonida"))
|
|
.arg("census")
|
|
.args([&valid, &missing])
|
|
.output()
|
|
.unwrap();
|
|
let stderr = String::from_utf8_lossy(&output.stderr);
|
|
assert!(
|
|
!output.status.success(),
|
|
"census succeeded: {}",
|
|
String::from_utf8_lossy(&output.stdout)
|
|
);
|
|
assert!(stderr.contains("Cargo.missing-census-input"), "{stderr}");
|
|
}
|
|
|
|
#[test]
|
|
fn census_accepts_a_valid_path_with_no_pe_images() {
|
|
let valid = Path::new(env!("CARGO_MANIFEST_DIR")).join("Cargo.toml");
|
|
let output = Command::new(env!("CARGO_BIN_EXE_leonida"))
|
|
.arg("census")
|
|
.arg(valid)
|
|
.output()
|
|
.unwrap();
|
|
assert!(output.status.success(), "{output:?}");
|
|
assert!(String::from_utf8_lossy(&output.stdout).contains("0 images scanned, 0 unreadable"));
|
|
}
|