[PATCH libvirt 6/6] tests: add tests for MTP filesystem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Giuseppe Scrivano <gscrivan@xxxxxxxxxx>
---
 tests/domainconfdata/getfilesystem.xml | 4 ++++
 tests/domainconftest.c                 | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/tests/domainconfdata/getfilesystem.xml b/tests/domainconfdata/getfilesystem.xml
index 2ee78b4..efcd83b 100644
--- a/tests/domainconfdata/getfilesystem.xml
+++ b/tests/domainconfdata/getfilesystem.xml
@@ -21,6 +21,10 @@
       <source dir='/'/>
       <target dir='/dev'/>
     </filesystem>
+    <filesystem type='mtp'>
+      <source dir='/'/>
+      <target name='mtp share'/>
+    </filesystem>
     <console type='pty'>
       <target type='lxc' port='0'/>
     </console>
diff --git a/tests/domainconftest.c b/tests/domainconftest.c
index 3d6ebe1..eee3193 100644
--- a/tests/domainconftest.c
+++ b/tests/domainconftest.c
@@ -111,6 +111,8 @@ mymain(void)
     DO_TEST_GET_FS("/dev", true);
     DO_TEST_GET_FS("/dev/pts", false);
     DO_TEST_GET_FS("/doesnotexist", false);
+    DO_TEST_GET_FS("mtp share", true);
+    DO_TEST_GET_FS("mtp not existing share", false);
 
     virObjectUnref(caps);
     virObjectUnref(xmlopt);
-- 
1.9.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]