Add installed tests for gio-tool
The following discussions from !3336 (merged) should be addressed:
-
@3v1n0 started a discussion: Add unit tests for gio with gvfs
It would be useful to test that the gio
tool works, particularly with non-standard GVFS backends such as trash://
, as they exercise the GIO APIs more. However, we cannot add a hard dependency on GVFS in the GLib unit tests, as that would introduce a dependency cycle.
So, add some new installed-tests to GLib which call gio
in various ways. They can check the output when calling it for local files, but should not check the output when calling it for other GVFS backends if those backends are not available. (In that case, gio
will print “Operation not supported” or “The specified location is not supported”.)
Edited by Philip Withnall