1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-24 13:37:44 +00:00
physis/tests/integration_test.rs

26 lines
677 B
Rust
Raw Normal View History

use physis::index;
2022-08-16 11:52:07 -04:00
use std::env;
2022-07-19 19:29:41 -04:00
#[test]
#[cfg_attr(not(feature = "retail_game_testing"), ignore)]
2022-07-19 19:29:41 -04:00
fn test_index_read() {
let game_dir = env::var("FFXIV_GAME_DIR").unwrap();
2022-08-16 11:52:07 -04:00
index::IndexFile::from_existing(
format!("{}/game/sqpack/ffxiv/000000.win32.index", game_dir).as_str(),
);
2022-07-19 19:29:41 -04:00
}
#[test]
#[cfg_attr(not(feature = "retail_game_testing"), ignore)]
2022-07-19 19:29:41 -04:00
fn test_gamedata_extract() {
let game_dir = env::var("FFXIV_GAME_DIR").unwrap();
2022-08-16 11:52:07 -04:00
let mut gamedata =
physis::gamedata::GameData::from_existing(format!("{}/game", game_dir).as_str()).unwrap();
2022-07-19 19:29:41 -04:00
gamedata.reload_repositories();
assert!(gamedata.extract("exd/root.exl").is_some());
2022-08-16 11:52:07 -04:00
}