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

Re: Executing tests during package building?



* Kari Pahula [Mon, 28 Aug 2006 20:13:30 +0300]:

> On Mon, Aug 28, 2006 at 11:58:21PM +0900, Charles Plessy wrote:
> > Le Mon, Aug 28, 2006 at 05:04:40PM +0300, Kari Pahula a écrit :
> > > I don't know about a general policy, but I've myself set gecode to run
> > > its test suite in debian/rules, excluding some of the slower buildds.

> > Good idea, how do you do this?

> DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)

> ...

>         -if echo $(DEB_HOST_GNU_TYPE) | grep -vcE '^(arm|m68k|s390)' ; then $(MAKE) test && LD_LIBRARY_PATH=. test/test ; fi

Please use DEB_HOST_ARCH_CPU instead.

Also, in case somebody cares about doing it without shell:

-------------------------------------8<------------------------------
DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)

SKIP_TEST_CPUS := arm m68k s390

test:
ifeq (,$(filter $(DEB_HOST_ARCH_CPU),$(SKIP_TEST_CPUS)))
        test
else
        @echo "Slow-cpu arch detected, skipping test"
endif
-------------------------------------8<------------------------------


Cheers,

-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
The first step on the road to wisdom is the admission of ignorance. The
second step is realizing that you don't have to blab it to the world.



Reply to: