Add testing to ioslaves
Originally from a discussion on !63 (comment 161138)
no unit test?
😢
My comment:
IMO a unit test is the wrong approach for fish (or ioslaves in general), an integration test would be easier and more telling as closer to actual use. Currently your example depends on internals like the protocol, which doesn't really matter in the end as long as server and client are happy with each other.
I imagine something like
KDE_FORK_SLAVES=true QT_PLUGIN_PATH=$builddir/bin:$QT_PLUGIN_PATH test
might work, then the test code itself could just doKIO::stat("fish://localhost/")
. Is there something like that in use anywhere already?