-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
device: fs: add vhost-user-fs e2e test
Add unit tests for vhost-user-fs device mount, verifying successful mounting of vhost-user fs device with sandbox abled. Test without sandbox is not prepared, since the vhost-user-fs device need to run as root. A new test scenario(mount_rw) has been added to e2e test. This scenario mounts virtiofs in the guest, then verifies data by reading from the host's shared directory. It also creates a file in the guest, writes data to it, and has the host verify the written data. This scenario is tested using both in-process virtiofs and vhost-user-fs devices. Additionally, the copy_file functionality has been refactored into a separate scenario that runs on both virtio-fs and vhost-user-fs devices. BUG=b:355159487 TEST=tools/dev_container tools/presubmit Change-Id: Icc09355fee1aae464b98fa153a98cbdd4a9e117d Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5746575 Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Commit-Queue: Yuan Yao <yuanyaogoog@chromium.org>
- Loading branch information
Showing
2 changed files
with
137 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters