--===============0611988188== Content-Type: multipart/signed; boundary="nextPart1918319.ZnoqmKXeyG"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1918319.ZnoqmKXeyG Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Le Thursday 07 February 2008, Chris Gow a =E9crit : > Ideally, I would like to be able to do something like: > - For my unit test harness, instantiate a dummy device manager. This shou= ld > only affect the current running program, not replace the system solid > manager. > > - Feed the dummy manager test devices that implement the particular > interface it looks for. These test devices would be completely fake, but > should look and behave like real devices. All your dreams are already fullfilled. You just need to set the SOLID_FAKE= HW=20 environment variable to point to the file containing the data to feed the=20 fake backend. We have a pretty generic file to use with the fake backend: kdelibs/solid/solid/backends/fakehw/fakecomputer.xml I use that for all my tests. You might want to take a look at=20 kdelibs/solid/tests/* and kdelibs/kfile/tests/kfileplacesmodeltest.cpp Regards. =2D-=20 K=E9vin 'ervin' Ottens, http://ervin.ipsquad.net "Ni le ma=EEtre sans disciple, Ni le disciple sans ma=EEtre, Ne font reculer l'ignorance." --nextPart1918319.ZnoqmKXeyG Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQBHrzYzB0u7y43syeIRAv/mAKCoN0XDb1iCeAH1EW17DYzgEFFmFACggbgS VfoGeTu/CAJzPEh5u1+96b4= =57Ff -----END PGP SIGNATURE----- --nextPart1918319.ZnoqmKXeyG-- --===============0611988188== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kde-hardware-devel mailing list Kde-hardware-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-hardware-devel --===============0611988188==--