Browse Source

sim: frv: split up testsuite a bit

Running frv's allinsn in serial is quite slow due to the sheer number
of tests it contains.  By splitting it up and running in parallel, the
execution time on my system goes from ~100sec to ~60sec.
binutils-2_38-branch
Mike Frysinger 4 years ago
parent
commit
3daaa003d2
  1. 17
      sim/testsuite/frv/allinsn-a-b.exp
  2. 17
      sim/testsuite/frv/allinsn-c.exp
  3. 17
      sim/testsuite/frv/allinsn-d-h.exp
  4. 17
      sim/testsuite/frv/allinsn-i-l.exp
  5. 17
      sim/testsuite/frv/allinsn-m.exp
  6. 17
      sim/testsuite/frv/allinsn-n.exp
  7. 17
      sim/testsuite/frv/allinsn-o-s.exp
  8. 17
      sim/testsuite/frv/allinsn-t-z.exp
  9. 19
      sim/testsuite/frv/allinsn.exp

17
sim/testsuite/frv/allinsn-a-b.exp

@ -0,0 +1,17 @@
# FRV simulator testsuite.
sim_init
# all machines
set all_machs "frv fr500 fr550 fr400 fr405 fr450"
set cpu_option -mcpu
# The .cgs suffix is for "cgen .s".
foreach src [lsort [glob -nocomplain $srcdir/$subdir/\[a-b\]*.cgs]] {
# If we're only testing specific files and this isn't one of them,
# skip it.
if ![runtest_file_p $runtests $src] {
continue
}
run_sim_test $src $all_machs
}

17
sim/testsuite/frv/allinsn-c.exp

@ -0,0 +1,17 @@
# FRV simulator testsuite.
sim_init
# all machines
set all_machs "frv fr500 fr550 fr400 fr405 fr450"
set cpu_option -mcpu
# The .cgs suffix is for "cgen .s".
foreach src [lsort [glob -nocomplain $srcdir/$subdir/\[c\]*.cgs]] {
# If we're only testing specific files and this isn't one of them,
# skip it.
if ![runtest_file_p $runtests $src] {
continue
}
run_sim_test $src $all_machs
}

17
sim/testsuite/frv/allinsn-d-h.exp

@ -0,0 +1,17 @@
# FRV simulator testsuite.
sim_init
# all machines
set all_machs "frv fr500 fr550 fr400 fr405 fr450"
set cpu_option -mcpu
# The .cgs suffix is for "cgen .s".
foreach src [lsort [glob -nocomplain $srcdir/$subdir/\[d-h\]*.cgs]] {
# If we're only testing specific files and this isn't one of them,
# skip it.
if ![runtest_file_p $runtests $src] {
continue
}
run_sim_test $src $all_machs
}

17
sim/testsuite/frv/allinsn-i-l.exp

@ -0,0 +1,17 @@
# FRV simulator testsuite.
sim_init
# all machines
set all_machs "frv fr500 fr550 fr400 fr405 fr450"
set cpu_option -mcpu
# The .cgs suffix is for "cgen .s".
foreach src [lsort [glob -nocomplain $srcdir/$subdir/\[i-l\]*.cgs]] {
# If we're only testing specific files and this isn't one of them,
# skip it.
if ![runtest_file_p $runtests $src] {
continue
}
run_sim_test $src $all_machs
}

17
sim/testsuite/frv/allinsn-m.exp

@ -0,0 +1,17 @@
# FRV simulator testsuite.
sim_init
# all machines
set all_machs "frv fr500 fr550 fr400 fr405 fr450"
set cpu_option -mcpu
# The .cgs suffix is for "cgen .s".
foreach src [lsort [glob -nocomplain $srcdir/$subdir/\[m\]*.cgs]] {
# If we're only testing specific files and this isn't one of them,
# skip it.
if ![runtest_file_p $runtests $src] {
continue
}
run_sim_test $src $all_machs
}

17
sim/testsuite/frv/allinsn-n.exp

@ -0,0 +1,17 @@
# FRV simulator testsuite.
sim_init
# all machines
set all_machs "frv fr500 fr550 fr400 fr405 fr450"
set cpu_option -mcpu
# The .cgs suffix is for "cgen .s".
foreach src [lsort [glob -nocomplain $srcdir/$subdir/\[n\]*.cgs]] {
# If we're only testing specific files and this isn't one of them,
# skip it.
if ![runtest_file_p $runtests $src] {
continue
}
run_sim_test $src $all_machs
}

17
sim/testsuite/frv/allinsn-o-s.exp

@ -0,0 +1,17 @@
# FRV simulator testsuite.
sim_init
# all machines
set all_machs "frv fr500 fr550 fr400 fr405 fr450"
set cpu_option -mcpu
# The .cgs suffix is for "cgen .s".
foreach src [lsort [glob -nocomplain $srcdir/$subdir/\[o-s\]*.cgs]] {
# If we're only testing specific files and this isn't one of them,
# skip it.
if ![runtest_file_p $runtests $src] {
continue
}
run_sim_test $src $all_machs
}

17
sim/testsuite/frv/allinsn-t-z.exp

@ -0,0 +1,17 @@
# FRV simulator testsuite.
sim_init
# all machines
set all_machs "frv fr500 fr550 fr400 fr405 fr450"
set cpu_option -mcpu
# The .cgs suffix is for "cgen .s".
foreach src [lsort [glob -nocomplain $srcdir/$subdir/\[t-z\]*.cgs]] {
# If we're only testing specific files and this isn't one of them,
# skip it.
if ![runtest_file_p $runtests $src] {
continue
}
run_sim_test $src $all_machs
}

19
sim/testsuite/frv/allinsn.exp

@ -1,19 +0,0 @@
# FRV simulator testsuite.
sim_init
if [istarget *] {
# all machines
set all_machs "frv fr500 fr550 fr400 fr405 fr450"
set cpu_option -mcpu
# The .cgs suffix is for "cgen .s".
foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.cgs]] {
# If we're only testing specific files and this isn't one of them,
# skip it.
if ![runtest_file_p $runtests $src] {
continue
}
run_sim_test $src $all_machs
}
}
Loading…
Cancel
Save