Re: Writing tests for gvfs



Martin Pitt [2012-08-23 17:13 +0200]:
>  - For the reason above, because we need root for some things, and we
>    want to be able to test an actual install (daily ISO testing etc.)
>    we'll need a system integration suite. However, some parts of the
>    test should also work without root privs (see above); should these
>    get integrated into "make check", and we search for a way to run
>    gvfs out of the build tree?

For unit tests in "make check" we could also consider using something
like Bendy Bus or another method of mocking udisks on a (fake) system
D-BUS. For getpwent() and friends (sshd etc.) we could use a small
LD_PRELOAD library which diverts those calls from the real user to a
temporary home directory. This would all work without any extra
privileges then and be more suitable for continuous integration
testing (jhbuild build --check), but again would require a sane way of
running gvfs out of the build tree.

Are you interested in getting this to work? If so, I'm happy to spend
some time on this.

Thanks,

Martin


-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

Attachment: signature.asc
Description: Digital signature



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