mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 09:14:14 +08:00
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.
This commit is contained in:
17
sim/testsuite/frv/allinsn-a-b.exp
Normal file
17
sim/testsuite/frv/allinsn-a-b.exp
Normal file
@ -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
Normal file
17
sim/testsuite/frv/allinsn-c.exp
Normal file
@ -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
Normal file
17
sim/testsuite/frv/allinsn-d-h.exp
Normal file
@ -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
Normal file
17
sim/testsuite/frv/allinsn-i-l.exp
Normal file
@ -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
Normal file
17
sim/testsuite/frv/allinsn-m.exp
Normal file
@ -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
Normal file
17
sim/testsuite/frv/allinsn-n.exp
Normal file
@ -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
Normal file
17
sim/testsuite/frv/allinsn-o-s.exp
Normal file
@ -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
Normal file
17
sim/testsuite/frv/allinsn-t-z.exp
Normal file
@ -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
|
||||
}
|
@ -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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user