dejagnu
[Top][All Lists]
Advanced

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

Re: Parrllel Testing


From: Ben Elliston
Subject: Re: Parrllel Testing
Date: Wed, 13 Feb 2008 11:53:07 +1100
User-agent: Mutt/1.5.13 (2006-08-11)

Hi Tom

On Tue, Feb 12, 2008 at 05:36:27AM -0600, Tom Browder wrote:

> Is there any way currently to run a large testsuite, such as in GCC,
> using multiple processors or distributed processing?

As it happens, yes, but only because of GCC's own test harness, not
through any current capability of DejaGnu's.  This snippet in
gcc/Makefile.in tells you how to do this:

# The idea is to parallelize testing of multilibs, for example:
#   make -j3 check-gcc//sh-hms-sim/{-m1,-m2,-m3,-m3e,-m4}/{,-nofpu}
# will run 3 concurrent sessions of check-gcc, eventually testing
# all 10 combinations.  GNU make is required, as is a shell that expands
# alternations within braces.
lang_checks_parallel = $(lang_checks:=//%)
$(lang_checks_parallel): site.exp
        target=`echo "$@" | sed 's,//.*,,'`; \
        variant=`echo "$@" | sed 's,^[^/]*//,,'`; \
        vardots=`echo "$$variant" | sed 's,/,.,g'`; \
        $(MAKE) TESTSUITEDIR="testsuite.$$vardots" \
          RUNTESTFLAGS="--target_board=$$variant $(RUNTESTFLAGS)" \
          "$$target"

Cheers, Ben




reply via email to

[Prev in Thread] Current Thread [Next in Thread]