diff --git a/tests/real_virtuality/pbo_test.rs b/tests/real_virtuality/pbo_test.rs index 6cc4c41..1e099e9 100644 --- a/tests/real_virtuality/pbo_test.rs +++ b/tests/real_virtuality/pbo_test.rs @@ -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(); -} diff --git a/tests/real_virtuality/wrp_test.rs b/tests/real_virtuality/wrp_test.rs index 9a18aab..94251e6 100644 --- a/tests/real_virtuality/wrp_test.rs +++ b/tests/real_virtuality/wrp_test.rs @@ -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]); -} diff --git a/tests/test-data-setup/src/main.rs b/tests/test-data-setup/src/main.rs index 4838100..36ba836 100644 --- a/tests/test-data-setup/src/main.rs +++ b/tests/test-data-setup/src/main.rs @@ -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!"); } diff --git a/tests/test-data/rv-test-data-part-1.7z b/tests/test-data/rv-test-data-part-1.7z new file mode 100644 index 0000000..65363a2 Binary files /dev/null and b/tests/test-data/rv-test-data-part-1.7z differ diff --git a/tests/test-data/rv-test-data-part-2.7z b/tests/test-data/rv-test-data-part-2.7z new file mode 100644 index 0000000..3be4f19 Binary files /dev/null and b/tests/test-data/rv-test-data-part-2.7z differ diff --git a/tests/test-data/rv-test-data-part-3.7z b/tests/test-data/rv-test-data-part-3.7z new file mode 100644 index 0000000..fd1c19a Binary files /dev/null and b/tests/test-data/rv-test-data-part-3.7z differ