tests/9pfs: add local Tmkdir test
commit653daf38978d101d8810f96b9337ebc6b7b1423f
authorChristian Schoenebeck <qemu_oss@crudebyte.com>
Thu, 8 Oct 2020 18:34:56 +0000 (8 20:34 +0200)
committerChristian Schoenebeck <qemu_oss@crudebyte.com>
Mon, 19 Oct 2020 12:25:40 +0000 (19 14:25 +0200)
tree97140ff2ef864462f144ac068f50bd25ebc14854
parente55b178b5e139fc1b951ac8f56e48db716909006
tests/9pfs: add local Tmkdir test

This test case uses the 9pfs 'local' driver to create a directory
and then checks if the expected directory was actually created
(as real directory) on host side.

This patch introduces a custom split() implementation, because
the test code requires non empty array elements as result. For
that reason g_strsplit() would not be a good alternative, as
it would require additional filter code for reshuffling the
array, and the resulting code would be even more complex than
this split() function.

Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Message-Id: <be342f236842272275f65dbe05587f0a5409ad77.1602182956.git.qemu_oss@crudebyte.com>
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
tests/qtest/virtio-9p-test.c