Skip to content

Commit

Permalink
split test files
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWillard committed May 4, 2024
1 parent d87dbd9 commit 77e7b63
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 30 deletions.
8 changes: 0 additions & 8 deletions tests/real_virtuality/pbo_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,3 @@ fn sign_test() {

assert!(pbo.verify(&pub_key, &sig).is_ok());
}

//projeta3-10.pbo

#[test]
#[serial]
fn alrayak_test() {
let _pbo = Pbo::from_path(format!("{}projeta3-10.pbo", INPUT_PATH_PREFIX)).unwrap();
}
11 changes: 0 additions & 11 deletions tests/real_virtuality/wrp_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,3 @@ fn fjaderholmarna_test() {
let mut file = File::open(format!("{}fjaderholmarna.wrp", INPUT_PATH_PREFIX)).unwrap();
let _ = OPRW::from_read(&mut file).unwrap();
}

#[test]
#[serial]
fn al_rayak() {
let mut file = File::open(format!("{}pja310.wrp", INPUT_PATH_PREFIX)).unwrap();

let wrp = OPRW::from_read(&mut file).unwrap();

dbg!(wrp.road_net.len());
dbg!(&wrp.road_net[123]);
}
25 changes: 14 additions & 11 deletions tests/test-data-setup/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,21 @@ fn main() {
println!(".env not found...");
}

println!("Extracting test data...");
for i in 1..4 {
let file = format!("tests/test-data/rv-test-data-part-{i}.7z");

sevenz_rust::decompress_file_with_password(
"tests/test-data/rv-test-data.7z",
"tests/real_virtuality/",
env::var("AFF_TEST_DATA_PW")
.expect("AFF_TEST_DATA_PW not set")
.to_string()
.as_str()
.into(),
)
.expect("Test data decompression failed");
println!("Extracting test data: {file}");
sevenz_rust::decompress_file_with_password(
file,
"tests/real_virtuality/",
env::var("AFF_TEST_DATA_PW")
.expect("AFF_TEST_DATA_PW not set")
.to_string()
.as_str()
.into(),
)
.expect("Test data decompression failed");
}

println!("Done!");
}
Binary file added tests/test-data/rv-test-data-part-1.7z
Binary file not shown.
Binary file added tests/test-data/rv-test-data-part-2.7z
Binary file not shown.
Binary file added tests/test-data/rv-test-data-part-3.7z
Binary file not shown.

0 comments on commit 77e7b63

Please sign in to comment.