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

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



Signed-off-by: Giuseppe Scrivano <gscrivan 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


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