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.rs71 let test_dir = tempfile::TempDir::new().unwrap(); in test_wait_for_file() localVariable
72 let test_file = test_dir.path().join("test.txt"); in test_wait_for_file()
78 let test_file = test_dir.path().join("test.txt"); in test_wait_for_file()
88 let test_dir = tempfile::TempDir::new().unwrap(); in test_wait_for_file_fails() localVariable
89 let test_file = test_dir.path().join("test.txt"); in test_wait_for_file_fails()
/packages/modules/Virtualization/apkdmverity/src/
Dmain.rs186 fn prepare_inputs(test_dir: &Path, apk: &[u8], idsig: &[u8]) -> (PathBuf, PathBuf) { in prepare_inputs()
187 let apk_path = test_dir.join("test.apk"); in prepare_inputs()
188 let idsig_path = test_dir.join("test.apk.idsig"); in prepare_inputs()
208 let test_dir = tempfile::TempDir::new().unwrap(); in run_test_with_hash() localVariable
209 let (apk_path, idsig_path) = prepare_inputs(test_dir.path(), apk, idsig); in run_test_with_hash()
329 let test_dir = tempfile::TempDir::new().unwrap(); in inputs_are_block_devices() localVariable
330 let (apk_path, idsig_path) = prepare_inputs(test_dir.path(), apk, idsig); in inputs_are_block_devices()
/packages/modules/Virtualization/libs/vbmeta/src/
Dlib.rs206 let test_dir = TempDir::new().unwrap(); in unsigned_image_does_not_have_public_key() localVariable
207 let test_file = test_dir.path().join("test.img"); in unsigned_image_does_not_have_public_key()
224 let test_dir = TempDir::new().unwrap(); in signed_image_has_valid_vbmeta() localVariable
225 let test_file = test_dir.path().join("test.img"); in signed_image_has_valid_vbmeta()
242 let test_pubkey_file = test_dir.path().join("test.pubkey"); in signed_image_has_valid_vbmeta()
/packages/modules/Virtualization/libs/devicemapper/src/
Dlib.rs261 fn prepare_tmpfile(test_dir: &Path, filename: &str, sz: u64) -> PathBuf { in prepare_tmpfile()
262 let filepath = test_dir.join(filename); in prepare_tmpfile()
327 let test_dir = tempfile::TempDir::new().unwrap(); in mapping_again_keeps_data() localVariable
328 let backing_file = prepare_tmpfile(test_dir.path(), "storage", sz); in mapping_again_keeps_data()
370 let test_dir = tempfile::TempDir::new().unwrap(); in data_inaccessible_with_diff_key() localVariable
371 let backing_file = prepare_tmpfile(test_dir.path(), "storage", sz); in data_inaccessible_with_diff_key()
/packages/modules/Virtualization/zipfuse/src/
Dmain.rs544 let test_dir = tempfile::TempDir::new().unwrap(); in run_test_with_options() localVariable
545 let zip_path = test_dir.path().join("test.zip"); in run_test_with_options()
556 let mnt_path = test_dir.path().join("mnt"); in run_test_with_options()
561 let mnt_path = test_dir.path().join("mnt"); in run_test_with_options()
794 fn run_fuse_and_check_test_zip(test_dir: &Path, zip_path: &Path) { in run_fuse_and_check_test_zip()
795 let mnt_path = test_dir.join("mnt"); in run_fuse_and_check_test_zip()
813 let test_dir = tempfile::TempDir::new().unwrap(); in supports_deflate() localVariable
814 let zip_path = test_dir.path().join("test.zip"); in supports_deflate()
818 run_fuse_and_check_test_zip(test_dir.path(), &zip_path); in supports_deflate()
844 let test_dir = tempfile::TempDir::new().unwrap(); in supports_zip_on_block_device() localVariable
[all …]