1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-22 20:57:46 +00:00
physis/tests/integration_test.rs

22 lines
653 B
Rust
Raw Normal View History

2022-07-19 19:29:41 -04:00
use std::env;
use physis::index;
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();
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();
let mut gamedata = physis::gamedata::GameData::from_existing(format!("{}/game", game_dir).as_str()).unwrap();
gamedata.reload_repositories();
assert!(gamedata.extract("exd/root.exl").is_some());
}