Home
last modified time | relevance | path

Searched refs:test_dir (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Virtualization/microdroid_manager/src/
Dioutil.rs76 let test_dir = tempfile::TempDir::new().unwrap(); in test_wait_for_file() localVariable
77 let test_file = test_dir.path().join("test.txt"); in test_wait_for_file()
78 let temp_file = test_dir.path().join("test.txt~"); in test_wait_for_file()
88 let test_file = test_dir.path().join("test.txt"); in test_wait_for_file()
98 let test_dir = tempfile::TempDir::new().unwrap(); in test_wait_for_file_fails() localVariable
99 let test_file = test_dir.path().join("test.txt"); in test_wait_for_file_fails()
/packages/modules/Virtualization/apkdmverity/src/
Dmain.rs197 fn prepare_inputs(test_dir: &Path, apk: &[u8], idsig: &[u8]) -> (PathBuf, PathBuf) { in prepare_inputs()
198 let apk_path = test_dir.join("test.apk"); in prepare_inputs()
199 let idsig_path = test_dir.join("test.apk.idsig"); in prepare_inputs()
216 let test_dir = tempfile::TempDir::new().unwrap(); in run_test_with_hash() localVariable
217 let (apk_path, idsig_path) = prepare_inputs(test_dir.path(), apk, idsig); in run_test_with_hash()
338 let test_dir = tempfile::TempDir::new().unwrap(); in inputs_are_block_devices() localVariable
339 let (apk_path, idsig_path) = prepare_inputs(test_dir.path(), apk, idsig); in inputs_are_block_devices()
/packages/modules/Virtualization/libs/devicemapper/src/
Dlib.rs262 fn prepare_tmpfile(test_dir: &Path, filename: &str, sz: u64) -> PathBuf { in prepare_tmpfile()
263 let filepath = test_dir.join(filename); in prepare_tmpfile()
324 let test_dir = tempfile::TempDir::new().unwrap(); in mapping_again_keeps_data() localVariable
325 let backing_file = prepare_tmpfile(test_dir.path(), "storage", sz); in mapping_again_keeps_data()
368 let test_dir = tempfile::TempDir::new().unwrap(); in data_inaccessible_with_diff_key() localVariable
369 let backing_file = prepare_tmpfile(test_dir.path(), "storage", sz); in data_inaccessible_with_diff_key()
/packages/modules/Virtualization/libs/vbmeta/src/
Dlib.rs211 let test_dir = TempDir::new().unwrap(); in unsigned_image_does_not_have_public_key() localVariable
212 let test_file = test_dir.path().join("test.img"); in unsigned_image_does_not_have_public_key()
229 let test_dir = TempDir::new().unwrap(); in signed_image_has_valid_vbmeta() localVariable
230 let test_file = test_dir.path().join("test.img"); in signed_image_has_valid_vbmeta()
247 let test_pubkey_file = test_dir.path().join("test.pubkey"); in signed_image_has_valid_vbmeta()
/packages/modules/Virtualization/zipfuse/src/
Dmain.rs546 let test_dir = tempfile::TempDir::new().unwrap(); in run_test_with_options() localVariable
547 let zip_path = test_dir.path().join("test.zip"); in run_test_with_options()
558 let mnt_path = test_dir.path().join("mnt"); in run_test_with_options()
563 let mnt_path = test_dir.path().join("mnt"); in run_test_with_options()
796 fn run_fuse_and_check_test_zip(test_dir: &Path, zip_path: &Path) { in run_fuse_and_check_test_zip()
797 let mnt_path = test_dir.join("mnt"); in run_fuse_and_check_test_zip()
815 let test_dir = tempfile::TempDir::new().unwrap(); in supports_deflate() localVariable
816 let zip_path = test_dir.path().join("test.zip"); in supports_deflate()
820 run_fuse_and_check_test_zip(test_dir.path(), &zip_path); in supports_deflate()
846 let test_dir = tempfile::TempDir::new().unwrap(); in supports_zip_on_block_device() localVariable
[all …]