Stop using 7z binaries in test cases

They're not reliably available and are now causing CI failures. Instead
use libloot for the test cases that used 7z, and update it because older
versions of libloot incorrectly use "ProductVERSION " instead of
"ProductVersion".
This commit is contained in:
Oliver Hamlet
2022-11-09 00:04:38 +00:00
parent d283bae744
commit f7db75bfea
5 changed files with 62 additions and 53 deletions
+3 -4
View File
@@ -124,10 +124,9 @@ fn criterion_benchmark(c: &mut Criterion) {
c.bench_function("Expression.eval() version(executable)", |b| {
let state = State::new(GameType::Oblivion, ".".into(), ".".into());
let expression = Expression::from_str(
"version(\"tests/loot_api_win32/loot_api.dll\", \"0.13.8.0\", ==)",
)
.unwrap();
let expression =
Expression::from_str("version(\"tests/libloot_win32/loot.dll\", \"0.18.2.0\", ==)")
.unwrap();
b.iter(|| {
assert!(expression.eval(&state).unwrap());