Mailinglist Archive: opensuse-buildservice (272 mails)

< Previous Next >
Re: [opensuse-buildservice] Running testsuite only on local build?
On 2012-04-06 16:56:45 +0200, Andreas Jaeger wrote:
On 04/06/2012 01:27 PM, Marcus Hüwe wrote:
On 2012-04-06 13:03:52 +0200, Andreas Jaeger wrote:
Is it possible to check in the spec file whether I'm building with
osc locally or in obs? Or whether it's in Factory or in my home
project?

The following did not work for me:
# Enable testsuite runs for local builds
%if 0%{?opensuse_bs}
%define run_testsuite 0
%else
%define run_testsuite 1
%endif

It disabled the testsuite with osc as well.

I want to run the testsuite for glibc not as part of
openSUSE:Factory but have it run e.g. locally. How can I achieve
this best?

Hmm you could define the "testsuite" macro when running a local build:
"osc build --define 'testsuite 1'" and in the spec just add something like
this:
%if 0%{?testsuite}
# run testsuite
%endif

Thanks - but is there no way that everybody running it locally - or
in the devel project - automatically gets to run the testsuite?

Of course you can also define this macro in your devel project (via
"osc meta prjconf <devel project>").


Marcus
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >