Hi

> On 13 Sep 2022, at 03:34, HAO CHEN GUI via Gcc-patches 
> <gcc-patches@gcc.gnu.org> wrote:

> On 7/9/2022 上午 1:19, Segher Boessenkool wrote:
>> make -k -j60 check 
>> RUNTESTFLAGS="--target_board=unix'{-m64,-m32,-m32/-mpowerpc64}'"
>> 
>> It is fine to not test -m32/-mpowerpc64 so often, and certaionly not
>> something I will ask everyone to always do :-)
> 
> IMO, if we add "-mpowerpc64" into dg-options, the "-m32/-mpowerpc64" will be 
> tested
> automatically. It will increase the test coverage. So the concern is it 
> increases test
> time?

Do you mean for the powerpc-target tests, or for the entire suite?
 - 50% increase is pretty significant to the entire suite.  It would probably 
only be acceptable on
the newer powerful machines.

The stategy would need to be a little more subtle than adding it everywhere  - 
it is not applicable
to 32b targets running on 32b hardware - however, it *is* potentially 
applicable to 32b targets
running on 64b hardware (I have one of those).

====

There are tricks you can play with dejagnu to automate this for your setup… by 
pointing the 
DEJAGNU environment to a script (or by using .dejagnurc in your home directory).

You can add customisation in this way, even to set different parameters per 
host.  This saves
me from remembering to put the RUNTESTFLAGS=… extras for the target on each 
test line.

— so here’s an example as I use it..

I have an environment/script setup like this (which I use to control what is 
done across a range of
machines with capabilities that vary by at least a factor of 10):

DEJAGNU=/path/to/gcc-runtest-site.exp

gcc-runtest-site.exp:

global target_list
global tool_timeout

case "$target_triplet" in {
   { "*-*-darwin[5-8]*" } {
        set target_list { "unix" }
        set tool_timeout 240
        puts "tool timeout 3mins"
   }
   { "*-*-darwin9*" } {
        set target_list { "unix{-m32,-m64}" }
        set tool_timeout 240
   }
   { "i?86-*-darwin10*" } {
        set target_list { "unix" }
   }
   { "powerpc-*-darwin10*" } {
        set target_list { "unix" }
   }
   { "*-*-darwin1[01234567]*" } {
        set target_list { "unix{-m64,-m32}" }
        set tool_timeout 120
        puts "gcc-runtest-site : tool timeout 2 mins"
   }
   { "*-*-darwin1[89]*" } {
        set target_list { "unix" }
        set tool_timeout 60
        puts "gcc-runtest-site : tool timeout 1 min"
   }
   { "x86_64-*-linux-gnu" } {
        set target_list { "unix{-m32,-m64}" }
        set tool_timeout 60
   }

<SNIP - you get the idea, I am sure>

   default {
        # Works for most unixy things and for darwin < 9.
       set target_list { "unix" }
   }
}

- sometimes I override this with specific values (especially for timeout) in 
~/..dejagnurc on
  very slow boxes.

====

0.02GBP only,

cheers
Iain

Reply via email to