Re: 'make check', those that require X, the others



El lun, 18-08-2008 a las 16:41 +0200, Frederic Peters escribió:
> John Carr wrote:
> 
> > Do we want to add xvfb to the bootstrap for slaves?
> 
> I feel it is enough to have a note asking buildslaves to run with a
> DISPLAY available.

Currently, all the slaves we have run the script below for the "make
check" stage, as you can see, we automatically run xvfb, but as you said
it would be enough if they set the DISPLAY variable. Also, for code
coverage reports, it is important that slaves reset the coverage
counters before running the tests.

---------- 8< ---------- 8< --------------- 8< ----------------

#!/bin/bash

#############################################################################
# Makefile checks execution
#############################################################################

# This is used to know if the "check" rule is available in this 
# directory Makefile.
unset NOCHECKTARGET
make -n -p -s -S --no-print-directory check > /dev/null 2> /dev/null ||
NOCHECKTARGET=1

# Resets coverage counters. This has to be done just before the tests.
lcov --directory . --zerocounters || true

# Run checks in a standard Makefile environment.
if [ $NOCHECKTARGET ]
then echo "No make check rule"
else
xvfb-run -n 22 make -k check
fi

#############################################################################
# Python checks execution
#############################################################################

if [ -f setup.py ]
then python setup.py check
fi






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