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

Re: Tests running as (real) root?

On 11 October 2014 17:27, Svante Signell <svante.signell@gmail.com> wrote:
> Hello,
> I have a question about how to run tests for a package needing root to
> run properly, fakeroot is not sufficient. I've made one of the packages
> to build properly with: sudo run_test and fixed the sudoers file. But
> how to fix that so the package can be built on a buildd?

No, you will not get root on buildds. Instead you should use the dep8
autopkgtest, declare your tests in debian/tests/control with
restriction that you require root.
They will not be run at build time, but rather separately on
ci.debian.net / jenkins.ubuntu.com.



Reply to: