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

Giuseppe Scrivano gscrivan at redhat.com
Thu Aug 7 14:10:36 UTC 2014


Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
---
 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




More information about the libvir-list mailing list