aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/frv/allinsn-a-b.exp
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-11-27 02:01:03 -0500
committerMike Frysinger <vapier@gentoo.org>2021-12-04 12:52:35 -0500
commit3daaa003d26a0cf29e972bf0a16a7b4b58208d0a (patch)
treef2d6259710bc83755363d4fc00ad32aaefbf6943 /sim/testsuite/frv/allinsn-a-b.exp
parente34e391824570f822e0122503efd484fae8437ff (diff)
downloadgdb-3daaa003d26a0cf29e972bf0a16a7b4b58208d0a.zip
gdb-3daaa003d26a0cf29e972bf0a16a7b4b58208d0a.tar.gz
gdb-3daaa003d26a0cf29e972bf0a16a7b4b58208d0a.tar.bz2
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.
Diffstat (limited to 'sim/testsuite/frv/allinsn-a-b.exp')
-rw-r--r--sim/testsuite/frv/allinsn-a-b.exp17
1 files changed, 17 insertions, 0 deletions
diff --git a/sim/testsuite/frv/allinsn-a-b.exp b/sim/testsuite/frv/allinsn-a-b.exp
new file mode 100644
index 0000000..c24cd42
--- /dev/null
+++ b/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
+}