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? Andreas -- Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg) GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126 -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org