]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/testsuite/m32c/allinsn.exp
sim: testsuite: push $arch out to targets
[thirdparty/binutils-gdb.git] / sim / testsuite / m32c / allinsn.exp
CommitLineData
1bd1b714
MF
1# M32C simulator testsuite.
2# TODO: Add support for .c tests.
3
4if [istarget m32c*-*-*] {
b0dcd7d8
MF
5 # Used to locate the `run` program.
6 global arch
7 set arch "m32c"
8
1bd1b714
MF
9 # all machines
10 set all_machs "m32c"
11
12 foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.s]] {
13 # If we're only testing specific files and this isn't one of them,
14 # skip it.
15 if ![runtest_file_p $runtests $src] {
16 continue
17 }
18 run_sim_test $src $all_machs
19 }
20}